constraint.py¶
-
class
openmdao.components.constraint.
ConstraintComp
(expr, out='out')[source]¶ Bases:
openmdao.components.execcomp.ExecComp
A Component that represents an equality or inequality constraint.
Args: expr : str
Constraint expression containing an operator that is one of [‘<’, ‘>’, ‘<=’, ‘>=’, ‘=’].
outname : str, optional
Name of the output variable containing the result of the constraint equation. Default is ‘out’.