Procedure GMP::Instance::DeleteMultiObjectives(GMP)


The procedure GMP::Instance::DeleteMultiObjectives deletes all multi-objectives in a generated mathematical program.

     GMP             ! (input) a generated mathematical program



An element in the set AllGeneratedMathematicalPrograms.

Return Value

The procedure returns 1 on success, or 0 otherwise.


A column can be specified as a multi-objective by using the procedure GMP::Column::SetAsMultiObjective.


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.