Salome HOME
Documentation update with features and review corrections
[modules/adao.git] / doc / en / ref_algorithm_EnsembleOfSimulationGenerationTask.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: EnsembleOfSimulationGenerationTask
25 .. index:: single: Génération d'ensemble de simulations
26 .. index:: single: Ensemble of simulations
27 .. index:: single: Ensemble of snapshots
28 .. index:: single: Simulations (Ensemble)
29 .. index:: single: Snapshots (Ensemble)
30 .. _section_ref_algorithm_EnsembleOfSimulationGenerationTask:
31
32 Task algorithm "*EnsembleOfSimulationGenerationTask*"
33 -----------------------------------------------------
34
35 .. ------------------------------------ ..
36 .. include:: snippets/Header2Algo00.rst
37
38 .. ------------------------------------ ..
39 .. include:: snippets/Header2Algo01.rst
40
41 This algorithm allows to generate a set of physical results, of simulation or
42 observation type, using the :math:`H` operator for a design of experiment of
43 the :math:`\mathbf{x}` parametric state space. The result of this algorithm is
44 a homogeneous collection of simulated vectors :math:`\mathbf{y}` (available
45 using the storable variable "*EnsembleOfSimulations*") corresponding directly
46 to the chosen homogeneous collection of state vectors :math:`\mathbf{x}`
47 (available using the storable variable "*EnsembleOfStates*").
48
49 The sampling of the states :math:`\mathbf{x}` can be given explicitly or under
50 form of hypercubes, explicit or sampled according to classic distributions, or
51 using Latin hypercube sampling (LHS) or Sobol sequences. The computations are
52 optimized according to the computer resources available and the options
53 requested by the user. You can refer to the
54 :ref:`section_ref_sampling_requirements` for an illustration of sampling.
55 Beware of the size of the hypercube (and then to the number of computations)
56 that can be reached, it can grow quickly to be quite large. When a state is not
57 observable, a *"NaN"* value is returned.
58
59 To be visible by the user while reducing the risk of storage difficulties, the
60 results of sampling or simulations has to be **explicitly** asked for using the
61 required variable.
62
63 The results obtained with this algorithm can be used to feed an
64 :ref:`section_ref_algorithm_MeasurementsOptimalPositioningTask`. In a
65 complementary way, and if the goal is to evaluate the calculation-measurement
66 error, an :ref:`section_ref_algorithm_SamplingTest` uses the same sampling
67 commands to establish a set of error functional values :math:`J` from
68 observations :math:`\mathbf{y}^o`.
69
70 .. ------------------------------------ ..
71 .. include:: snippets/Header2Algo12.rst
72
73 .. include:: snippets/FeaturePropDerivativeFree.rst
74
75 .. include:: snippets/FeaturePropParallelAlgorithm.rst
76
77 .. ------------------------------------ ..
78 .. include:: snippets/Header2Algo02.rst
79
80 .. include:: snippets/CheckingPoint.rst
81
82 .. include:: snippets/ObservationOperator.rst
83
84 .. ------------------------------------ ..
85 .. include:: snippets/Header2Algo03Task.rst
86
87 .. include:: snippets/SampleAsExplicitHyperCube.rst
88
89 .. include:: snippets/SampleAsIndependantRandomVariables.rst
90
91 .. include:: snippets/SampleAsMinMaxLatinHyperCube.rst
92
93 .. include:: snippets/SampleAsMinMaxSobolSequence.rst
94
95 .. include:: snippets/SampleAsMinMaxStepHyperCube.rst
96
97 .. include:: snippets/SampleAsnUplet.rst
98
99 .. include:: snippets/SetDebug.rst
100
101 .. include:: snippets/SetSeed.rst
102
103 StoreSupplementaryCalculations
104   .. index:: single: StoreSupplementaryCalculations
105
106   *List of names*. This list indicates the names of the supplementary
107   variables, that can be available during or at the end of the algorithm, if
108   they are initially required by the user. Their availability involves,
109   potentially, costly calculations or memory consumptions. The default is then
110   a void list, none of these variables being calculated and stored by default
111   (excepted the unconditional variables). The possible names are in the
112   following list (the detailed description of each named variable is given in
113   the following part of this specific algorithmic documentation, in the
114   sub-section "*Information and variables available at the end of the
115   algorithm*"): [
116   "EnsembleOfSimulations",
117   "EnsembleOfStates",
118   ].
119
120   Example :
121   ``{"StoreSupplementaryCalculations":["CurrentState", "Residu"]}``
122
123 .. ------------------------------------ ..
124 .. include:: snippets/Header2Algo04.rst
125
126 .. include:: snippets/EnsembleOfSimulations.rst
127
128 .. ------------------------------------ ..
129 .. include:: snippets/Header2Algo05.rst
130
131 .. include:: snippets/EnsembleOfSimulations.rst
132
133 .. include:: snippets/EnsembleOfStates.rst
134
135 .. ------------------------------------ ..
136 .. _section_ref_algorithm_EnsembleOfSimulationGenerationTask_examples:
137
138 .. include:: snippets/Header2Algo06.rst
139
140 - :ref:`section_ref_algorithm_FunctionTest`
141 - :ref:`section_ref_algorithm_ParallelFunctionTest`
142 - :ref:`section_ref_algorithm_MeasurementsOptimalPositioningTask`
143