Returns the IObjective object of the active model, or null if no IObjective object is currently in the active model.

Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0

Syntax

C#
public virtual IObjective GetObjective()
Visual Basic
Public Overridable Function GetObjective As IObjective

Return Value

The IObjective object in the active model, or null if there is no IObjective.

See Also