Procedure GMP::Instance::Solve(GMP)


The procedure GMP::Instance::Solve starts up a solver session to solve a generated mathematical program. In addition, it copies the initial solution from the model identifiers via solution 1 in the solution repository and stores the final solution via solution 1 back in the model identifiers.

     GMP             ! (input) a generated mathematical program


Return Value

The procedure returns 1 on success, or 0 otherwise.


The procedure GMP::Instance::Solve automatically creates a solver session with the same name as the generated mathematical program in the set AllSolverSessions.