utils03.gms : test MPS2GMS for reading the second range entry on a line

Description

In this model we:
   1. create an MPS file with $onEcho
   2. run mps2gms on the MPS file, checking the return code

Contributor: Alex Meeraus


Small Model of Type : GAMS


Category : GAMS Test library


Main file : utils03.gms

$title test MPS2GMS for reading the second range entry on a line (UTILS03,SEQ=480)

$onText
In this model we:
   1. create an MPS file with $onEcho
   2. run mps2gms on the MPS file, checking the return code

Contributor: Alex Meeraus

$offText

$onEcho > range.mps
NAME          Error
ROWS
 N  obj
 E  goaludel
 E  goalsmth
 E  71015862
 E  70545863
 E  70545864
COLUMNS
    x1        obj                  1
    x1        goaludel             1
    x1        goalsmth             1
    x1        71015862             1
    x1        70545863             1
    x1        70545864             1
RHS
    RHS       goaludel   8386337.24223 goalsmth   17884205.7388
RANGES
    RANGE     71015862   21059966.5415 70545863   26755037.3683
    RANGE     70545864   18320048.6913 goaludel   16789.4639484
    RANGE     goalsmth   35804.2156933
ENDATA
$offEcho

$call mps2gms range.mps > %system.nullfile%
$if errorlevel 1 $abort bad return code