gemseo.mda.base_mda_solver module#

The base class for MDA solvers.

class BaseMDASolver(disciplines, settings_model=None, **settings)[source]#

Bases: BaseMDA

The base class for MDA solvers.

Initialize self. See help(type(self)) for accurate signature.

Parameters:
  • disciplines (Sequence[Discipline]) -- The disciplines from which to compute the MDA.

  • settings_model (BaseMDASolverSettings | None) -- The MDA settings as a Pydantic model. If None, use **settings.

  • **settings (Any) -- The MDA settings. These arguments are ignored when settings_model is not None.

get_current_resolved_residual_vector()[source]#

Return the vector of residuals.

Return type:

ndarray

get_current_resolved_variables_vector()[source]#

Return the vector of resolved variables (couplings and state variables).

Return type:

ndarray

Settings: ClassVar[type[BaseMDASolverSettings]]#

The Pydantic model for the settings.

property acceleration_method: AccelerationMethod#

The acceleration method.

property over_relaxation_factor: float#

The over-relaxation factor.

settings: BaseMDASolverSettings#

The settings of the MDA.