- Procedure GMP::Solver::SetEnvironmentStringParameter(solver, parameter, value)
GMP::Solver::SetEnvironmentStringParameter
GMP::Solver::SetEnvironmentStringParameter
can be used to
set a string-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::SetEnvironmentStringParameter(
solver, ! (input) a solver
parameter, ! (input) a string expression
value ! (input) a string 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. 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
andGMP::Solver::SetEnvironmentIntegerParameter
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 12.0'; GMP::Solver::SetEnvironmentStringParameter( MIPSolver, "ComputeServer", "myserver1:61000" ); GMP::Solver::InitializeEnvironment( MIPSolver ); solve MP1; GMP::Solver::FreeEnvironment( MIPSolver );
See also
The procedures GMP::Solver::InitializeEnvironment
, GMP::Solver::SetEnvironmentDoubleParameter
and GMP::Solver::SetEnvironmentIntegerParameter
.