2 Copyright (C) 2008-2018 EDF R&D
4 This file is part of SALOME ADAO module.
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.
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.
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
20 See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
24 .. index:: single: 3DVAR
25 .. _section_ref_algorithm_3DVAR:
27 Calculation algorithm "*3DVAR*"
28 -------------------------------
33 This algorithm performs a state estimation by variational minimization of the
34 classical :math:`J` function in static data assimilation:
36 .. math:: J(\mathbf{x})=(\mathbf{x}-\mathbf{x}^b)^T.\mathbf{B}^{-1}.(\mathbf{x}-\mathbf{x}^b)+(\mathbf{y}^o-H(\mathbf{x}))^T.\mathbf{R}^{-1}.(\mathbf{y}^o-H(\mathbf{x}))
38 which is usually designed as the "*3D-VAR*" function (see for example
41 Optional and required commands
42 ++++++++++++++++++++++++++++++
44 The general required commands, available in the editing user interface, are the
47 .. include:: snippets/Background.rst
49 .. include:: snippets/BackgroundError.rst
51 .. include:: snippets/Observation.rst
53 .. include:: snippets/ObservationError.rst
55 .. include:: snippets/ObservationOperator.rst
57 The general optional commands, available in the editing user interface, are
58 indicated in :ref:`section_ref_assimilation_keywords`. Moreover, the parameters
59 of the command "*AlgorithmParameters*" allows to choose the specific options,
60 described hereafter, of the algorithm. See
61 :ref:`section_ref_options_Algorithm_Parameters` for the good use of this
64 The options of the algorithm are the following:
67 .. index:: single: Minimizer
69 This key allows to choose the optimization minimizer. The default choice is
70 "LBFGSB", and the possible ones are "LBFGSB" (nonlinear constrained
71 minimizer, see [Byrd95]_, [Morales11]_ and [Zhu97]_), "TNC" (nonlinear
72 constrained minimizer), "CG" (nonlinear unconstrained minimizer), "BFGS"
73 (nonlinear unconstrained minimizer), "NCG" (Newton CG minimizer). It is
74 strongly recommended to stay with the default.
77 ``{"Minimizer":"LBFGSB"}``
79 .. include:: snippets/BoundsWithNone.rst
81 .. include:: snippets/MaximumNumberOfSteps.rst
83 .. include:: snippets/CostDecrementTolerance.rst
85 .. include:: snippets/ProjectedGradientTolerance.rst
87 .. include:: snippets/GradientNormTolerance.rst
89 StoreSupplementaryCalculations
90 .. index:: single: StoreSupplementaryCalculations
92 This list indicates the names of the supplementary variables that can be
93 available at the end of the algorithm. It involves potentially costly
94 calculations or memory consumptions. The default is a void list, none of
95 these variables being calculated and stored by default. The possible names
96 are in the following list: ["APosterioriCorrelations",
97 "APosterioriCovariance", "APosterioriStandardDeviations",
98 "APosterioriVariances", "BMA", "CostFunctionJ", "CostFunctionJb",
99 "CostFunctionJo", "CostFunctionJAtCurrentOptimum",
100 "CostFunctionJbAtCurrentOptimum", "CostFunctionJoAtCurrentOptimum",
101 "CurrentOptimum", "CurrentState", "IndexOfOptimum", "Innovation",
102 "InnovationAtCurrentState", "MahalanobisConsistency", "OMA", "OMB",
103 "SigmaObs2", "SimulatedObservationAtBackground",
104 "SimulatedObservationAtCurrentOptimum",
105 "SimulatedObservationAtCurrentState", "SimulatedObservationAtOptimum",
106 "SimulationQuantiles"].
109 ``{"StoreSupplementaryCalculations":["BMA", "Innovation"]}``
111 .. include:: snippets/Quantiles.rst
113 .. include:: snippets/SetSeed.rst
115 .. include:: snippets/NumberOfSamplesForQuantiles.rst
117 .. include:: snippets/SimulationForQuantiles.rst
119 Information and variables available at the end of the algorithm
120 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
122 At the output, after executing the algorithm, there are variables and
123 information originating from the calculation. The description of
124 :ref:`section_ref_output_variables` show the way to obtain them by the method
125 named ``get`` of the variable "*ADD*" of the post-processing. The input
126 variables, available to the user at the output in order to facilitate the
127 writing of post-processing procedures, are described in the
128 :ref:`subsection_r_o_v_Inventaire`.
130 The unconditional outputs of the algorithm are the following:
132 .. include:: snippets/Analysis.rst
134 .. include:: snippets/CostFunctionJ.rst
136 .. include:: snippets/CostFunctionJb.rst
138 .. include:: snippets/CostFunctionJo.rst
140 The conditional outputs of the algorithm are the following:
142 .. include:: snippets/APosterioriCorrelations.rst
144 .. include:: snippets/APosterioriCovariance.rst
146 .. include:: snippets/APosterioriStandardDeviations.rst
148 .. include:: snippets/APosterioriVariances.rst
150 .. include:: snippets/BMA.rst
152 .. include:: snippets/CostFunctionJAtCurrentOptimum.rst
154 .. include:: snippets/CostFunctionJbAtCurrentOptimum.rst
156 .. include:: snippets/CostFunctionJoAtCurrentOptimum.rst
158 .. include:: snippets/CurrentOptimum.rst
160 .. include:: snippets/CurrentState.rst
162 .. include:: snippets/IndexOfOptimum.rst
164 .. include:: snippets/Innovation.rst
166 .. include:: snippets/InnovationAtCurrentState.rst
168 .. include:: snippets/MahalanobisConsistency.rst
170 .. include:: snippets/OMA.rst
172 .. include:: snippets/OMB.rst
174 .. include:: snippets/SigmaObs2.rst
176 .. include:: snippets/SimulatedObservationAtBackground.rst
178 .. include:: snippets/SimulatedObservationAtCurrentOptimum.rst
180 .. include:: snippets/SimulatedObservationAtCurrentState.rst
182 .. include:: snippets/SimulatedObservationAtOptimum.rst
184 .. include:: snippets/SimulationQuantiles.rst
189 References to other sections:
190 - :ref:`section_ref_algorithm_Blue`
191 - :ref:`section_ref_algorithm_ExtendedBlue`
192 - :ref:`section_ref_algorithm_LinearityTest`
194 Bibliographical references: