- Procedure GMP::Instance::DeleteMultiObjectives(GMP)
GMP::Instance::DeleteMultiObjectives
The procedure GMP::Instance::DeleteMultiObjectives
deletes all
multi-objectives in a generated mathematical program.
GMP::Instance::DeleteMultiObjectives(
GMP ! (input) a generated mathematical program
)
Arguments
- GMP
An element in the set
AllGeneratedMathematicalPrograms
.
Return Value
The procedure returns 1 on success, or 0 otherwise.
Note
A column can be specified as a multi-objective by using the procedure
GMP::Column::SetAsMultiObjective
.
Example
In the example below two multi-objectives are specified after which a multi-objective optimization problem is solved. Next all multi-objectives are deleted by calling
GMP::Instance::CreateDual
and the model is solved once again, this time as an ordinary optimization problem with one objective (namely the one specified in the objective attribute of the mathematical programming).myGMP := GMP::Instance::Generate( MP ); GMP::Column::SetAsMultiObjective( myGMP, TotalDist, 2, 1.0, 0, 0.1 ); GMP::Column::SetAsMultiObjective( myGMP, TotalTime, 1, 1.0, 0, 0.0 ); GMP::Instance::Solve( myGMP ); GMP::Instance::DeleteMultiObjectives( myGMP ); GMP::Instance::Solve( myGMP );
See also
The procedure GMP::Column::SetAsMultiObjective
.