gemseo.problems.mdo.sellar.utils module#

Utils for the customizable Sellar MDO problem.

get_initial_data(names=(), n=1)[source]#

Generate an initial solution for the MDO problem.

Parameters:
  • names (Iterable[str]) --

    The names of the discipline inputs.

    By default it is set to ().

  • n (int) --

    The size of the local design variables and coupling variables

    By default it is set to 1.

Returns:

The default values of the discipline inputs.

Return type:

dict[str, RealArray]

get_y_opt(mda)[source]#

Return the optimal y array.

Parameters:

mda (BaseMDA) -- The mda.

Returns:

The optimal y array.

Return type:

ndarray