ILOG CPLEX .NET Reference Manual

IMPModeler.AddObjective Method (ObjectiveSense, String)

Creates and returns an empty objective function with the specified name and with the specified sense and adds it to the invoking model.

IObjective AddObjective(
   ObjectiveSense sense,
   string name
);

Parameters

sense
The optimization sense of the new objective.
name
The name assigned to the new objective.

Return Value

The new zero objective.

Remarks

This method creates and returns an IObjective object with a zero expression and the specified optimization sense. The new IObjective object is assigned name as its name and added to the invoking model. This method is typically used in an application that applies column-wise modeling to fill in the objective function while creating the variables.

See Also

IMPModeler Interface | ILOG.Concert Namespace | IMPModeler.AddObjective Overload List