cosapp.drivers.montecarlo¶
Classes
|
This driver execute a MonteCarlo simulation on its system. |
|
- class cosapp.drivers.montecarlo.MonteCarlo(name: str, owner: cosapp.systems.System | None = None, **kwargs)[source]¶
Bases:
AbstractSetOfCases
This driver execute a MonteCarlo simulation on its system.
- A: numpy.ndarray | None¶
- X0: numpy.ndarray | None¶
- Y0: numpy.ndarray | None¶
- add_random_variable(names: 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: 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: int¶
- linear: bool¶
- perturbations: numpy.ndarray | None¶
- random_variables: Dict[str, RandomVariable]¶
- reference_case_solution: Dict[str, float]¶
- responses: List[str]¶
- solver: AbstractSolver | None¶