Creates and returns an empty objective function with the sense
specified by sense.
Namespace: ILOG.Concert
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
IObjective Objective( ObjectiveSense sense ) |
| Visual Basic |
|---|
Function Objective ( _ sense As ObjectiveSense _ ) As IObjective |
Parameters
- sense
- Type: ILOG.Concert..::..ObjectiveSense
The optimization sense of 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. This method is typically used in an application that uses column-wise modeling to fill in the objective function while creating the variables.