ILOG CPLEX .NET Reference Manual

CplexModeler.GetObjective Method 

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

public virtual IObjective GetObjective();

Return Value

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

See Also

CplexModeler Class | ILOG.CPLEX Namespace