formulations_factory module¶
A factory to instantiate a formulation or check its availability.
- class gemseo.formulations.formulations_factory.MDOFormulationsFactory[source]¶
Bases:
gemseo.core.base_formulation.BaseFormulationsFactory
A factory of
MDOFormulation
.- Return type
None
- create(formulation_name, disciplines, objective_name, design_space, **options)¶
Create a formulation.
- Parameters
formulation_name (str) – The name of a class implementing a formulation.
disciplines (Sequence[gemseo.core.discipline.MDODiscipline]) – The disciplines.
objective_name (str) – The name of the objective function.
design_space (gemseo.algos.design_space.DesignSpace) – The design space.
**options – The options for the creation of the formulation.
- Return type
- is_available(formulation_name)¶
Check the availability of a formulation.