Creates and returns an instance of IObjective
representing an objective to optimize the expression expr
with respect to the optimization sense indicated by sense,
assigned the name name, and
added to the invoking model.
Namespace: ILOG.Concert
Assembly: ILOG.Concert (in ILOG.Concert.dll) Version: 22.1.0.0
Syntax
| C# |
|---|
IObjective AddObjective( ObjectiveSense sense, INumExpr expr, string name ) |
| Visual Basic |
|---|
Function AddObjective ( _ sense As ObjectiveSense, _ expr As INumExpr, _ name As String _ ) As IObjective |
Parameters
- sense
- Type: ILOG.Concert..::..ObjectiveSense
Optimization sense.
- expr
- Type: ILOG.Concert..::..INumExpr
Expression to maximize.
- name
- Type: System..::..String
Name assigned to the new IObjective object.