Salome HOME
Minor source update for OM compatibility
[modules/adao.git] / doc / fr / ref_algorithm_NonLinearLeastSquares.rst
1 ..
2    Copyright (C) 2008-2024 EDF R&D
3
4    This file is part of SALOME ADAO module.
5
6    This library is free software; you can redistribute it and/or
7    modify it under the terms of the GNU Lesser General Public
8    License as published by the Free Software Foundation; either
9    version 2.1 of the License, or (at your option) any later version.
10
11    This library is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14    Lesser General Public License for more details.
15
16    You should have received a copy of the GNU Lesser General Public
17    License along with this library; if not, write to the Free Software
18    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19
20    See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21
22    Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
23
24 .. index:: single: NonLinearLeastSquares
25 .. _section_ref_algorithm_NonLinearLeastSquares:
26
27 Algorithme de calcul "*NonLinearLeastSquares*"
28 ----------------------------------------------
29
30 .. ------------------------------------ ..
31 .. include:: snippets/Header2Algo01.rst
32
33 Cet algorithme réalise une estimation d'état par minimisation variationnelle de
34 la fonctionnelle :math:`J` d'écart classique de "Moindres Carrés" pondérés:
35
36 .. math:: J(\mathbf{x})=(\mathbf{y}^o-\mathbf{H}.\mathbf{x})^T.\mathbf{R}^{-1}.(\mathbf{y}^o-\mathbf{H}.\mathbf{x})
37
38 Il est similaire à un :ref:`section_ref_algorithm_3DVAR` privé de sa partie
39 ébauche. L'ébauche, requise dans l'interface, ne sert que de point initial pour
40 la minimisation variationnelle.
41
42 Cet algorithme d'optimisation mono-objectif est naturellement écrit pour une
43 estimation unique, sans notion dynamique ou itérative (il n'y a donc pas besoin
44 dans ce cas d'opérateur d'évolution incrémentale, ni de covariance d'erreurs
45 d'évolution). Dans ADAO, il peut aussi être utilisé sur une succession
46 d'observations, plaçant alors l'estimation dans un cadre récursif en partie
47 similaire à un filtre de Kalman. Une estimation standard est effectuée à chaque
48 pas d'observation sur l'état prévu par le modèle d'évolution incrémentale.
49
50 Dans tous les cas, il est recommandé de lui préférer un
51 :ref:`section_ref_algorithm_3DVAR` pour sa stabilité comme pour son
52 comportement lors de l'optimisation.
53
54 .. ------------------------------------ ..
55 .. include:: snippets/Header2Algo12.rst
56
57 .. include:: snippets/FeaturePropLocalOptimization.rst
58
59 .. include:: snippets/FeaturePropDerivativeNeeded.rst
60
61 .. include:: snippets/FeaturePropParallelDerivativesOnly.rst
62
63 .. include:: snippets/FeaturePropConvergenceOnBoth.rst
64
65 .. ------------------------------------ ..
66 .. include:: snippets/Header2Algo02.rst
67
68 .. include:: snippets/Background.rst
69
70 .. include:: snippets/Observation.rst
71
72 .. include:: snippets/ObservationError.rst
73
74 .. include:: snippets/ObservationOperator.rst
75
76 .. ------------------------------------ ..
77 .. include:: snippets/Header2Algo03AdOp.rst
78
79 .. include:: snippets/BoundsWithNone.rst
80
81 .. include:: snippets/CostDecrementTolerance.rst
82
83 .. include:: snippets/EstimationOf_Parameters.rst
84
85 .. include:: snippets/GradientNormTolerance.rst
86
87 .. include:: snippets/InitializationPoint.rst
88
89 .. include:: snippets/MaximumNumberOfIterations.rst
90
91 .. include:: snippets/Minimizer_xDVAR.rst
92
93 .. include:: snippets/ProjectedGradientTolerance.rst
94
95
96 StoreSupplementaryCalculations
97   .. index:: single: StoreSupplementaryCalculations
98
99   *Liste de noms*. Cette liste indique les noms des variables supplémentaires,
100   qui peuvent être disponibles au cours du déroulement ou à la fin de
101   l'algorithme, si elles sont initialement demandées par l'utilisateur. Leur
102   disponibilité implique, potentiellement, des calculs ou du stockage coûteux.
103   La valeur par défaut est donc une liste vide, aucune de ces variables n'étant
104   calculée et stockée par défaut (sauf les variables inconditionnelles). Les
105   noms possibles pour les variables supplémentaires sont dans la liste suivante
106   (la description détaillée de chaque variable nommée est donnée dans la suite
107   de cette documentation par algorithme spécifique, dans la sous-partie
108   "*Informations et variables disponibles à la fin de l'algorithme*") : [
109   "Analysis",
110   "BMA",
111   "CostFunctionJ",
112   "CostFunctionJAtCurrentOptimum",
113   "CostFunctionJb",
114   "CostFunctionJbAtCurrentOptimum",
115   "CostFunctionJo",
116   "CostFunctionJoAtCurrentOptimum",
117   "CurrentIterationNumber",
118   "CurrentOptimum",
119   "CurrentState",
120   "CurrentStepNumber",
121   "ForecastState",
122   "IndexOfOptimum",
123   "Innovation",
124   "InnovationAtCurrentAnalysis",
125   "InnovationAtCurrentState",
126   "OMA",
127   "OMB",
128   "SimulatedObservationAtBackground",
129   "SimulatedObservationAtCurrentOptimum",
130   "SimulatedObservationAtCurrentState",
131   "SimulatedObservationAtOptimum",
132   ].
133
134   Exemple :
135   ``{"StoreSupplementaryCalculations":["CurrentState", "Residu"]}``
136
137 *Astuce pour cet algorithme :*
138
139     Comme la commande *"BackgroundError"* est requise pour TOUS les algorithmes
140     de calcul dans l'interface graphique EFICAS d'ADAO, vous devez fournir une
141     valeur, malgré le fait que cette commande ne soit pas nécessaire pour cet
142     algorithme, et n'est donc pas utilisée. La manière la plus simple est de
143     donner "1" comme un STRING.
144
145 .. ------------------------------------ ..
146 .. include:: snippets/Header2Algo04.rst
147
148 .. include:: snippets/Analysis.rst
149
150 .. include:: snippets/CostFunctionJ.rst
151
152 .. include:: snippets/CostFunctionJb.rst
153
154 .. include:: snippets/CostFunctionJo.rst
155
156 .. ------------------------------------ ..
157 .. include:: snippets/Header2Algo05.rst
158
159 .. include:: snippets/Analysis.rst
160
161 .. include:: snippets/BMA.rst
162
163 .. include:: snippets/CostFunctionJ.rst
164
165 .. include:: snippets/CostFunctionJAtCurrentOptimum.rst
166
167 .. include:: snippets/CostFunctionJb.rst
168
169 .. include:: snippets/CostFunctionJbAtCurrentOptimum.rst
170
171 .. include:: snippets/CostFunctionJo.rst
172
173 .. include:: snippets/CostFunctionJoAtCurrentOptimum.rst
174
175 .. include:: snippets/CurrentIterationNumber.rst
176
177 .. include:: snippets/CurrentOptimum.rst
178
179 .. include:: snippets/CurrentState.rst
180
181 .. include:: snippets/CurrentStepNumber.rst
182
183 .. include:: snippets/ForecastState.rst
184
185 .. include:: snippets/IndexOfOptimum.rst
186
187 .. include:: snippets/Innovation.rst
188
189 .. include:: snippets/InnovationAtCurrentAnalysis.rst
190
191 .. include:: snippets/InnovationAtCurrentState.rst
192
193 .. include:: snippets/OMA.rst
194
195 .. include:: snippets/OMB.rst
196
197 .. include:: snippets/SimulatedObservationAtBackground.rst
198
199 .. include:: snippets/SimulatedObservationAtCurrentOptimum.rst
200
201 .. include:: snippets/SimulatedObservationAtCurrentState.rst
202
203 .. include:: snippets/SimulatedObservationAtOptimum.rst
204
205 .. ------------------------------------ ..
206 .. _section_ref_algorithm_NonLinearLeastSquares_examples:
207
208 .. include:: snippets/Header2Algo09.rst
209
210 .. include:: scripts/simple_NonLinearLeastSquares.rst
211
212 .. literalinclude:: scripts/simple_NonLinearLeastSquares.py
213
214 .. include:: snippets/Header2Algo10.rst
215
216 .. literalinclude:: scripts/simple_NonLinearLeastSquares.res
217     :language: none
218
219 .. include:: snippets/Header2Algo11.rst
220
221 .. _simple_NonLinearLeastSquares:
222 .. image:: scripts/simple_NonLinearLeastSquares.png
223   :align: center
224   :width: 90%
225
226 .. ------------------------------------ ..
227 .. include:: snippets/Header2Algo06.rst
228
229 - :ref:`section_ref_algorithm_LinearLeastSquares`
230 - :ref:`section_ref_algorithm_3DVAR`
231 - :ref:`section_ref_algorithm_LinearityTest`
232
233 .. ------------------------------------ ..
234 .. include:: snippets/Header2Algo07.rst
235
236 - [Byrd95]_
237 - [Morales11]_
238 - [Zhu97]_