2 Copyright (C) 2008-2024 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: ControledFunctionTest
25 .. _section_ref_algorithm_ControledFunctionTest:
27 Checking algorithm "*ControledFunctionTest*"
28 --------------------------------------------
30 .. ------------------------------------ ..
31 .. include:: snippets/Header2Algo01.rst
33 This verification algorithm allows to analyze in a simple way the stability of
34 an operator :math:`F` during its execution. The operator is any operator, so it
35 can be the observation operator :math:`\mathcal{H}` as well as the evolution
36 operator :math:`\mathcal{D}`, as long as it is provided in each case according
37 to the :ref:`section_ref_operator_requirements`. The operator :math:`F` is
38 considered as depending on a vector variable :math:`\mathbf{x}` and on a
39 control vector variable :math:`\mathbf{u}`, the two not necessarily being of
40 the same size, and returning another vector variable :math:`\mathbf{y}`.
42 The algorithm verifies that the operator is working correctly and that its call
43 is compatible with its usage in ADAO algorithms. In practice, it allows to call
44 one or several times the operator, activating or not the "debug" mode during
47 Statistics on :math:`\mathbf{x}` input and :math:`\mathbf{y}` output vectors
48 are given for each execution of operator, and an another global statistic is
49 given at the end. The precision of printed outputs can be controlled to
50 facilitate automatic tests of operator. It may also be useful to check the
51 entries themselves beforehand with the intended test
52 :ref:`section_ref_algorithm_InputValuesTest`.
54 .. ------------------------------------ ..
55 .. include:: snippets/Header2Algo12.rst
57 .. include:: snippets/FeaturePropDerivativeFree.rst
59 .. include:: snippets/FeaturePropParallelFree.rst
61 .. ------------------------------------ ..
62 .. include:: snippets/Header2Algo02.rst
64 .. include:: snippets/CheckingPoint.rst
66 .. include:: snippets/ObservationOperator.rst
68 .. include:: snippets/ControlInput.rst
70 .. ------------------------------------ ..
71 .. include:: snippets/Header2Algo03Chck.rst
73 .. include:: snippets/NumberOfPrintedDigits.rst
75 .. include:: snippets/NumberOfRepetition.rst
77 .. include:: snippets/SetDebug.rst
79 .. include:: snippets/ShowElementarySummary.rst
81 StoreSupplementaryCalculations
82 .. index:: single: StoreSupplementaryCalculations
84 *List of names*. This list indicates the names of the supplementary
85 variables, that can be available during or at the end of the algorithm, if
86 they are initially required by the user. Their availability involves,
87 potentially, costly calculations or memory consumptions. The default is then
88 a void list, none of these variables being calculated and stored by default
89 (excepted the unconditional variables). The possible names are in the
90 following list (the detailed description of each named variable is given in
91 the following part of this specific algorithmic documentation, in the
92 sub-section "*Information and variables available at the end of the
95 "SimulatedObservationAtCurrentState",
99 ``{"StoreSupplementaryCalculations":["CurrentState", "Residu"]}``
101 .. ------------------------------------ ..
102 .. include:: snippets/Header2Algo04.rst
104 .. include:: snippets/NoUnconditionalOutput.rst
106 .. ------------------------------------ ..
107 .. include:: snippets/Header2Algo05.rst
109 .. include:: snippets/CurrentState.rst
111 .. include:: snippets/SimulatedObservationAtCurrentState.rst
113 .. ------------------------------------ ..
114 .. _section_ref_algorithm_ControledFunctionTest_examples:
116 .. include:: snippets/Header2Algo09.rst
119 .. include:: scripts/simple_ControledFunctionTest1.rst
121 .. literalinclude:: scripts/simple_ControledFunctionTest1.py
123 .. include:: snippets/Header2Algo10.rst
125 .. literalinclude:: scripts/simple_ControledFunctionTest1.res
129 .. include:: scripts/simple_ControledFunctionTest2.rst
131 .. literalinclude:: scripts/simple_ControledFunctionTest2.py
133 .. include:: snippets/Header2Algo10.rst
135 .. literalinclude:: scripts/simple_ControledFunctionTest2.res
138 .. ------------------------------------ ..
139 .. include:: snippets/Header2Algo06.rst
141 - :ref:`section_ref_algorithm_InputValuesTest`
142 - :ref:`section_ref_algorithm_LinearityTest`
143 - :ref:`section_ref_algorithm_FunctionTest`
144 - :ref:`section_ref_algorithm_ParallelFunctionTest`