GMP::Instance::Copy( GMP, ! (input) a generated mathematical program name ! (input) a string expression )
An element in the set
A string that contains the name for the copy of the generated mathematical program.
A new element in the set
AllGeneratedMathematicalProgramswith the name as specified by the name argument.
The name argument should be different from the name of the original generated mathematical program.
If an element with name specified by the name argument is already present in the set
AllGeneratedMathematicalProgramsthen the corresponding generated mathematical program will be replaced (or updated in case the same symbolic mathematical program is involved).
All solutions in the solution repository of the generated mathematical program are also copied.
The solver selection as specified by
GMP::Instance::SetSolver(if any) will not be copied.