consistency_constraint module¶
The MDOFunction consistency constraint subclass to support formulations.
- class gemseo.core.mdofunctions.consistency_constraint.ConsistencyCstr(output_couplings, formulation)[source]
Bases:
MDOFunction
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.
- last_eval: OutputType | None
The value of the function output at the last evaluation.
None
if it has not yet been evaluated.
- special_repr: str
The string representation of the function overloading its default string ones.