Creates and returns an instance of IObjective representing an objective to optimize the expression expr with respect to the optimization sense indicated by sense and added to the invoking model.

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

Syntax

C#
IObjective AddObjective(
	ObjectiveSense sense,
	INumExpr expr
)

Parameters

sense
Type: ILOG.Concert..::..ObjectiveSense
Optimization sense.
expr
Type: ILOG.Concert..::..INumExpr
Expression to maximize.

Return Value

An IObjective object representing the objective to maximize expr.

Remarks