Creates and returns an empty maximization objective function
with the specified name and adds it to the invoking
model.
Namespace: ILOG.Concert
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
IObjective AddMaximize( string name ) |
| Visual Basic |
|---|
Function AddMaximize ( _ name As String _ ) As IObjective |
Parameters
- name
- Type: System..::..String
The name assigned to the new objective.
Return Value
The new zero maximization objective.
Remarks
This method creates and returns an IObjective object representing a maximization objective function with a zero expression. 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.