Description
We solve the trnsport model using the Gurobi remote server. The information about the server addresses, ports and password come through the environment variable GRBRS, and GRBRSPW.
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 server addresses, ports and password come
through the environment variable GRBRS, and GRBRSPW.
$Offtext
$onecho > gurobi.lic
COMPUTESERVER=%sysenv.GRBRS%
PASSWORD=%sysenv.GRBRSPW%
$offecho
$setenv GRB_LICENSE_FILE "%gams.workdir%gurobi.lic"
$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
$set gams_license ''
$if exist "%gams.sysdir%plicense.txt" $set gams_license license="%gams.sysdir%plicense.txt"
$call.checkErrorLevel gams trnsport solver=gurobi lo=2 %gams_license%