gemseo / core / mdofunctions

Show inherited members

consistency_constraint module

The MDOFunction consistency constraint subclass to support formulations.

class gemseo.core.mdofunctions.consistency_constraint.ConsistencyCstr(output_couplings, formulation)[source]

Bases: LinearCandidateFunction

An MDOFunction object to compute the consistency constraints.

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

Parameters:
  • output_couplings (Sequence[str]) – The names of the output couplings.

  • formulation (MDOFormulation) – The IDF formulation of the problem.

force_real: bool

Whether to cast the results to real value.

has_default_name: bool

Whether the name has been set with a default value.

property input_dimension: int | None

The input variable dimension, needed for linear candidates.

If None this cannot be determined nor by MDODiscipline default inputs nor by MDODisciplineAdapter.__input_names_to_sizes.

last_eval: OutputType | None

The value of the function output at the last evaluation.

None if it has not yet been evaluated.

property linear_candidate: bool

Whether the final MDOFunction could be linear.

special_repr: str

The string representation of the function overloading its default string ones.