The ObjectiveFunction object defines the objective of the optimization.
import optimization mdb.models[name].optimizationTasks[name].objectiveFunctions[name]
This method creates an ObjectiveFunction object.
mdb.models[name].optimizationTasks[name].ObjectiveFunction
Required arguments
A String specifying the objective function repository key.
An OptimizationObjectiveArray object.
Optional argument
A SymbolicConstant specifying the target of the objective function. Possible values are MINIMIZE, MAXIMIZE, and MINIMIZE_MAXIMUM. The default value is MINIMIZE.
Return value
An ObjectiveFunction object.
Exceptions
InvalidNameError and RangeError.
This method modifies the ObjectiveFunction object.
Required arguments
Optional arguments
The optional arguments to setValues are the same as the arguments to the ObjectiveFunction method, except for the name argument.
Return value
Exceptions
RangeError.
The ObjectiveFunction object has members with the same names and descriptions as the arguments to the ObjectiveFunction method.