Constraint¶
-
class
pyoptsparse.pyOpt_constraint.
Constraint
(name, nCon, linear, wrt, jac, lower, upper, scale)[source]¶ Constraint Class Initialization
-
finalize
(self, variables, dvOffset, index)[source]¶ This function should not need to be called by the user
After the design variables have been finalized and the order is known we can check the constraint for consistency.
Parameters: - variables : Ordered Dict
The pyOpt variable list after they have been finalized.
- dvOffset : dict
Design variable offsets from pyOpt_optimization
- index : int
The starting index of this constraint in natural order
-