gemseo / formulations

formulations_factory module

A factory to instantiate a formulation or check its availability.

Classes:

MDOFormulationsFactory()

MDO Formulations factory to create the formulation from a name or a class.

class gemseo.formulations.formulations_factory.MDOFormulationsFactory[source]

Bases: object

MDO Formulations factory to create the formulation from a name or a class.

Scan the directories to search for subclasses of MDOFormulation.

Searches in “GEMSEO_PATH” and gemseo.formulations

Methods:

create(formulation_name, disciplines, ...)

Create a formulation.

is_available(formulation_name)

Check the availability of a formulation.

Attributes:

formulations

The available formulations.

Return type

None

create(formulation_name, disciplines, objective_name, design_space, **options)[source]

Create a formulation.

Parameters
Return type

gemseo.core.formulation.MDOFormulation

property formulations

The available formulations.

is_available(formulation_name)[source]

Check the availability of a formulation.

Parameters
  • available. (True if the formulation is) –

  • formulation_name (str) –

Return type

bool