load9.gms : Domain projection load tests

Description

Contributor: M. Bussick, October 2013


Small Model of Type : GAMS


Category : GAMS Test library


Main file : load9.gms

$title 'Domain projection load tests' (LOAD9,SEQ=632)

$ontext
Contributor: M. Bussick, October 2013
$offtext


$onecho > one.gms
set i / 1,2 /
    ii(i,i) /1.2/;
$offecho
$call gams one gdx=one lo=0
$if errorlevel 1 $abort Could not run one. Check one.lst

$onecho > checkuel.gms
set i;
$gdxin one
$load i%domproject%ii
abort$(sum(i$sameas(i,'%uelexpected%'),1)=0) 'wrong uel. Expected: %uelexpected%', i;
$offecho

$call gams checkuel lo=0 --domproject="<=" --uelexpected=1
$if errorlevel 1 $abort Could not run checkuel with <=. Check checkuel.lst

$call gams checkuel lo=0 --domproject="<"  --uelexpected=2
$if errorlevel 1 $abort Could not run checkuel with <.  Check checkuel.lst