Procedure GMP::Instance::SetMathematicalProgrammingType(GMP, MathematicalProgrammingType)

GMP::Instance::SetMathematicalProgrammingType

The procedure GMP::Instance::SetMathematicalProgrammingType changes the type of a generated mathematical program from MIP into RMIP (or vice versa), or from MINLP to RMINLP (or vice versa). Also the type can be changed from MIQP or MIQCP to RMINLP, or from MIP or LS to LP, but not vice versa.

GMP::Instance::SetMathematicalProgrammingType(
     GMP,                          ! (input) a generated mathematical program
     MathematicalProgrammingType   ! (input) a model type
     )

Arguments

GMP

An element in the set AllGeneratedMathematicalPrograms.

MathematicalProgrammingType

One of the elements LP, MIP, RMIP, MINLP or RMINLP (in the set AllMatrixManipulationProgrammingTypes).

Return Value

The procedure returns 1 on success, or 0 otherwise.