cosapp.drivers.montecarlo¶
Classes
|
This driver execute a MonteCarlo simulation on its system. |
|
-
class
cosapp.drivers.montecarlo.MonteCarlo(name: str, owner: Optional[cosapp.systems.System] = None, **kwargs)[source]¶ Bases:
cosapp.drivers.abstractsetofcases.AbstractSetOfCasesThis driver execute a MonteCarlo simulation on its system.
-
A¶
-
X0¶
-
Y0¶
-
add_random_variable(names: Union[str, Iterable[str]]) → None[source]¶ Add variable to be perturbated.
The perturbation distribution is defined by the variable distribution details.
- Parameters
names (Union[str, Iterable[str]]) – List of variables to be perturbated
-
add_response(name: Union[str, Iterable[str]]) → None[source]¶ Add a variable for which the statistical response will be calculated.
- Parameters
name (Union[str, Iterable[str]]) – List of variable names to add
-
draws¶
-
linear¶
-
perturbations¶
-
random_variables¶
-
reference_case_solution¶
-
responses¶
-
solver¶
-
-
class
cosapp.drivers.montecarlo.RandomVariable(variable, distribution, connector)[source]¶ Bases:
NamedTuple-
connector: Optional[SystemConnector]¶ Alias for field number 2
-
distribution: cosapp.utils.distributions.distribution.Distribution¶ Alias for field number 1
-
variable: VariableReference¶ Alias for field number 0
-