CreateSolverSession(GMP, Name, Solver)¶
GMP::Instance::CreateSolverSession creates a new solver
session for a generated mathematical program.
GMP::Instance::CreateSolverSession( GMP, ! (input) a generated mathematical program [Name], ! (input, optional) a string expression [Solver] ! (input, optional) a solver )
The function returns an element in the set
GMP::Instance::CreateSolverSessionalso determines which solver is assigned to the solver session. After the solver session is created it is not possible to change the solver assigned to the solver session! The solver is determined by:
the Solver argument if it is specified (and not an empty string), else
the solver that was assigned to the GMP if procedure
GMP::Instance::SetSolverwas called before, else
the default solver in AIMMS for the GMP its model type.
If the Name argument is not specified, or if it is the empty string, the names of the symbolic mathematical program, the solver and the host (if any) are 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
AllSolverSessionsthen the corresponding solver session will first be deleted.