Procedure GMP::Solver::SetEnvironmentIntegerParameter(solver, parameter, value)

GMP::Solver::SetEnvironmentIntegerParameter

The procedure GMP::Solver::SetEnvironmentIntegerParameter can be used to set a integer-valued parameter to be used for starting a solver environment. This procedure is typically used for solvers running on a remote server or a cloud system.
GMP::Solver::SetEnvironmentIntegerParameter(
     solver,            ! (input) a solver
     parameter,         ! (input) a string expression
     value              ! (input) a numerical expression
     )

Arguments

solver

An element in the set AllSolvers.

parameter

The name of the parameter.

value

The desired value of the parameter.

Return Value

The procedure returns 1 on success, or 0 otherwise.

Note

  • This procedure is only supported by Gurobi, version 9.1 or higher. Typically it is only used in combination with a Gurobi link-only license.

  • This procedure cannot be called inside a solver callback procedure.

Parameters

This procedure and the procedures GMP::Solver::SetEnvironmentDoubleParameter and GMP::Solver::SetEnvironmentStringParameter can be used to set Gurobi Configuration Parameters. Typically these procedures are used to set Gurobi Parameters for Cloud, Compute Server, Cluster Manager or Token Server. Note that normally these parameters are set in the Gurobi license file.

Example

MIPSolver := 'Gurobi 10.0';

GMP::Solver::SetEnvironmentStringParameter( MIPSolver, "ComputeServer", "myserver1:61000" );
GMP::Solver::SetEnvironmentIntegerParameter( MIPSolver, "ServerTimeout", 30 );

GMP::Solver::InitializeEnvironment( MIPSolver );

solve MP1;

GMP::Solver::FreeEnvironment( MIPSolver );