Description
We solve the cube model using the Gurobi distributed algorithm The information about the server addresses, ports and password come through the environment variable GRBRS and GRBRSPW. Distributed MIP
Small Model of Type : GAMS
Category : GAMS Test library
Main file : rs02.gms
$Title Solving Three-dimensional Noughts and Crosses using Gurobi distributed algorithm (RS02,SEQ=676)
$Ontext
We solve the cube model using the Gurobi distributed algorithm The information
about the server addresses, ports and password come through the environment
variable GRBRS and GRBRSPW.
$Offtext
* Distributed MIP
$onecho > gurobi.opt
workerpool %sysenv.GRBRS%
workerpassword %sysenv.GRBRSPW%
DistributedMIPJobs 2
$offecho
$call gamslib -q cube
$echo "abort$(cube.modelstat<>1 or cube.solvestat<>1) 'Bad model/solvestatus';" >> cube.gms
$call.checkErrorLevel gams cube solver=gurobi lo=2 optfile=1
* Distributed Tuning
$onecho > gurobi.opt
workerpool %sysenv.GRBRS%
workerpassword %sysenv.GRBRSPW%
tuning 1
tunejobs 2
tunetimelimit 5
$offecho
$call gamslib -q cube
$echo "abort$(cube.modelstat<>14 or cube.solvestat<>1) 'Bad model/solvestatus';" >> cube.gms
$call.checkErrorLevel gams cube solver=gurobi lo=2 optfile=1