- Procedure GMP::Instance::SetSolver(GMP, solver)
GMP::Instance::SetSolver
The procedure GMP::Instance::SetSolver can be used to select for a
generated mathematical program the solver to be called in subsequent
calls to GMP::Instance::Solve.
GMP::Instance::SetSolver(
GMP, ! (input) a generated mathematical program
solver ! (input) a solver
)
Arguments
- GMP
An element in
AllGeneratedMathematicalPrograms.- solver
An element in the set
AllSolvers.
Return Value
The procedure returns 1 on success, or 0 otherwise.
Note
The solver set in this procedure will also be assigned to any solver
session created with the function GMP::Instance::CreateSolverSession
for the GMP, unless the Solver argument in the procedure
GMP::Instance::CreateSolverSession is specified. Note that the
procedure GMP::Instance::SetSolver cannot be used to change the
solver assigned to a solver session after
GMP::Instance::CreateSolverSession has been called.
See also