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

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

Namespace: ILOG.Concert
Assembly: oplall (in oplall.dll)

Syntax

C#
IObjective AddObjective(
	ObjectiveSense sense
)

Parameters

sense
Type: ILOG.Concert..::..ObjectiveSense
The optimization sense of the new objective.

Return Value

The new zero objective.

See Also