gemseo_fmu / problems / disciplines / sellar

Show inherited members

sellar_system module

The system discipline of the Sellar use case.

class gemseo_fmu.problems.disciplines.sellar.sellar_system.FMUSellarSystem[source]

Bases: FMUDiscipline

The discipline to compute the objective and constraints of the Sellar problem.

Notes

The time series are interpolated at the time steps resulting from the union of their respective time steps. Then, between two time steps, the time series for the variables of causality “input” are linearly interpolated at the integration time steps while for the variables of causality “parameter”, the time series are considered as constant.

static compute_c_1(y_1)[source]

Evaluate the constraint \(c_1\).

Parameters:

y_1 (ndarray) – The coupling variable coming from the first discipline.

Returns:

The value of the constraint \(c_1\).

Return type:

float

static compute_c_2(y_2)[source]

Evaluate the constraint \(c_2\).

Parameters:

y_2 (ndarray) – The coupling variable coming from the second discipline.

Returns:

The value of the constraint \(c_2\).

Return type:

float

static compute_obj(x_local, x_shared, y_1, y_2)[source]

Evaluate the objective \(obj\).

Parameters:
  • x_local (ndarray) – The design variables local to the first discipline.

  • x_shared (ndarray) – The shared design variables.

  • y_1 (ndarray) – The coupling variable coming from the first discipline.

  • y_2 (ndarray) – The coupling variable coming from the second discipline.

Returns:

The value of the objective \(obj\).

Return type:

float

cache: AbstractCache | None

The cache containing one or several executions of the discipline according to the cache policy.

data_processor: DataProcessor

A tool to pre- and post-process discipline data.

exec_for_lin: bool

Whether the last execution was due to a linearization.

input_grammar: BaseGrammar

The input grammar.

jac: dict[str, dict[str, ndarray]]

The Jacobians of the outputs wrt inputs.

The structure is {output: {input: matrix}}.

name: str

The name of the discipline.

output_grammar: BaseGrammar

The output grammar.

re_exec_policy: ReExecutionPolicy

The policy to re-execute the same discipline.

residual_variables: Mapping[str, str]

The output variables mapping to their inputs, to be considered as residuals; they shall be equal to zero.

run_solves_residuals: bool

Whether the run method shall solve the residuals.