Procedure GMP::Instance::Solve(GMP)

GMP::Instance::Solve

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::Instance::Solve(
     GMP             ! (input) a generated mathematical program
     )

Arguments

Return Value

The procedure returns 1 on success, or 0 otherwise.

Note

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