OptimizationConstraint(...)
This method creates an OptimizationConstraint object.
Path
mdb.models[name].optimizationTasks[name].OptimizationConstraint
Required arguments
- name
A String specifying the optimization constraint repository key.
- designResponse
A String specifying the name of the design response to constrain.
- restrictionValue
A Float specifying the value to which the design response should be constrained.
Optional arguments
- restrictionMethod
A SymbolicConstant specifying the method used to constrain the design response. Possible values are ABSOLUTE_EQUAL, ABSOLUTE_GREATER_THAN_EQUAL, ABSOLUTE_LESS_THAN_EQUAL, RELATIVE_EQUAL, RELATIVE_GREATER_THAN_EQUAL, and RELATIVE_LESS_THAN_EQUAL. The default value is ABSOLUTE_EQUAL.
Return value
An OptimizationConstraint object.
Exceptions
InvalidNameError and RangeError.