Creates and returns an empty objective function 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 AddMaximize()
Visual Basic
Public Overridable Function AddMaximize As IObjective

Implements

IMPModeler..::..AddMaximize()()()()

Remarks

Do not use this method in a callback to modify the model currently being optimized.

See Also