rs01.gms : Solving a Transportation Problem using Cplex and Gurobi remote server

Description

We solve the trnsport model using the Gurobi remote server. The information about the compute server
addresses (using Gurobi's compute manager), ports and password come through the environment variable
GUROBI_CS_MANAGER, GUROBI_CS_USER and GUROBI_CS_PASSWORD.


Small Model of Type : GAMS


Category : GAMS Test library


Main file : rs01.gms

$title  Solving a Transportation Problem using Gurobi remote server (RS01,SEQ=611)
$onText

We solve the trnsport model using the Gurobi remote server. The information about the compute server
addresses (using Gurobi's compute manager), ports and password come through the environment variable
GUROBI_CS_MANAGER, GUROBI_CS_USER and GUROBI_CS_PASSWORD.

$offText

$onEcho > gurobi.lic
CSMANAGER=%sysenv.GUROBI_CS_MANAGER%
USERNAME=%sysenv.GUROBI_CS_USER%
PASSWORD=%sysenv.GUROBI_CS_PASSWORD%
$offEcho

$setEnv GRB_LICENSE_FILE "%gams.workdir%gurobi.lic"

$set gams_license ''
$if exist "%gams.sysdir%plicense.txt" $set gams_license license="%gams.sysdir%plicense.txt"

$call gamslib -q trnsport
$echo "abort$(transport.modelstat<>1 or transport.solvestat<>1) 'Bad model/solvestatus';" >> trnsport.gms
$echo "abort$(abs(z.l-153.675)>1e-4) 'Bad z.l';" >> trnsport.gms

$call.checkErrorLevel gams trnsport solver=gurobi lo=2 %gams_license%