- Function GMP::Instance::Generate(MP, name)
GMP::Instance::Generate generates a mathematical
program instance from a symbolic mathematical program.
GMP::Instance::Generate( MP, ! (input) a symbolic mathematical program [name] ! (optional) a string expression )
A symbolic mathematical program in the set
AllMathematicalPrograms. The mathematical program should have model type LP, MIP, QP, MIQP, QCP, MIQCP, NLP, MINLP, RMIP or RMINLP.
A string that holds the name for the mathematical program to be generated.
A new element in the set
AllGeneratedMathematicalProgramswith the name as specified by the name argument.
If the second argument is not specified, or if it is the empty string, the name of the symbolic mathematical program is used to create a new element in the set
If an element with name specified by the name argument is already present in the set
AllGeneratedMathematicalProgramsthe corresponding generated mathematical program will be replaced (or updated in case the same symbolic mathematical program is involved). In that case all existing solver sessions created for the generated mathematical program will be deleted.
A callback procedure should be installed using the appropriate GMP procedure, (e.g.,
GMP::Instance::SetCallbackIterations) instead of using a suffix of the mathematical program (e.g., suffix
If an error occurs during the execution of
GMP::Instance::Generate, e.g., if one of the constraints appears to be empty and infeasible, then the program status of the mathematical program will be set to
Infeasibleand the solver status to