lib_scipy_ode module¶
Wrappers for SciPy’s ODE solvers.
ODE stands for ordinary differential equation.
- class gemseo.algos.ode.lib_scipy_ode.ScipyODEAlgos[source]¶
Bases:
ODESolverLib
Wrapper for SciPy’s ODE solvers.
ODE stands for ordinary differential equation.
- driver_has_option(option_name)¶
Check the existence of an option.
- execute(problem, algo_name=None, **options)¶
Execute the driver.
- Parameters:
problem (BaseProblem) – The problem to be solved.
algo_name (str | None) – The name of the algorithm. If
None
, usealgo_name
attribute which may have been set by the factory.**options (Any) – The algorithm options.
- Return type:
None
- filter_adapted_algorithms(problem)¶
Filter the algorithms capable of solving the problem.
- init_options_grammar(algo_name)¶
Initialize the options’ grammar.
- Parameters:
algo_name (str) – The name of the algorithm.
- Return type:
- classmethod is_algorithm_suited(algorithm_description, problem)¶
Check if an algorithm is suited to a problem according to its description.
- Parameters:
algorithm_description (AlgorithmDescription) – The description of the algorithm.
problem (Any) – The problem to be solved.
- Returns:
Whether the algorithm is suited to the problem.
- Return type:
- OPTIONS_DIR: ClassVar[str | Path] = 'options'¶
The name of the directory containing the files of the grammars of the options.
- OPTIONS_MAP: ClassVar[dict[str, str]] = {}¶
The names of the options in GEMSEO mapping to those in the wrapped library.
- descriptions: dict[str, AlgorithmDescription]¶
The description of the algorithms contained in the library.
- internal_algo_name: str | None¶
The internal name of the algorithm used currently.
It typically corresponds to the name of the algorithm in the wrapped library if any.
- opt_grammar: JSONGrammar | None¶
The grammar defining the options of the current algorithm.
- problem: ODEProblem = None¶
The problem to be solved.