The OptimizationConstraint object constrains an optimization from making changes to the topology of the model.
import optimization mdb.models[name].optimizationTasks[name].optimizationConstraints[name]
This method creates an OptimizationConstraint object.
mdb.models[name].optimizationTasks[name].OptimizationConstraint
Required arguments
A String specifying the optimization constraint repository key.
A String specifying the name of the design response to constrain.
A Float specifying the value to which the design response should be constrained.
Optional argument
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.
This method modifies the OptimizationConstraint object.
Required arguments
Optional arguments
The optional arguments to setValues are the same as the arguments to the OptimizationConstraint method, except for the name argument.
Return value
Exceptions
RangeError.
The OptimizationConstraint object has members with the same names and descriptions as the arguments to the OptimizationConstraint method.