GMP::Solver::FreeEnvironmentcan be used to free a solver environment. By using the procedure
GMP::Solver::InitializeEnvironmentyou can initialize a solver environment; by using this procedure you can free it again.
GMP::Solver::FreeEnvironmentcan be used to initialize and free a solver environment multiple times inside one AIMMS sesstion. Both procedures are typically used for solvers running on a remote server or a cloud system.
GMP::Solver::FreeEnvironment( solver ! (input) a solver )
The procedure returns 1 on success, or 0 otherwise.
This procedure can be used in combination with a normal solve statement.
This procedure is only supported by GUROBI.
This procedure cannot be called inside a solver callback procedure.
This procedure cannot be called if one of the solver sessions is asynchronous executing.
GMP::Solver::InitializeEnvironment( 'Gurobi 9.0' ); solve MP1; GMP::Solver::FreeEnvironment( 'Gurobi 9.0' ); GMP::Solver::InitializeEnvironment( 'Gurobi 9.0' ); mgGMP := GMP::Instance::Generate( MP2 ); GMP::Instance::Solve( myGMP ); GMP::Solver::FreeEnvironment( 'Gurobi 9.0' );