Creates and returns an empty objective function
with the specified sense
and adds it to the invoking model.
Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
public virtual IObjective AddObjective( ObjectiveSense sense ) |
| Visual Basic |
|---|
Public Overridable Function AddObjective ( _ sense As ObjectiveSense _ ) As IObjective |
Parameters
- sense
- Type: ILOG.Concert..::..ObjectiveSense
Implements
IMPModeler..::..AddObjective(ObjectiveSense)
Remarks
Do not use this method in a callback to modify the model currently being optimized.