Description
This test ensures that a domain set that was increased by multiple declarations is not just partly used when loading data from GDX. Contributor: Lutz Westermann, March 2021
Small Model of Type : GAMS
Category : GAMS Test library
Main file : decla3.gms
$title 'Test correct loading after multi declaration of domain set' (DECLA3,SEQ=855)
$onText
This test ensures that a domain set that was increased by multiple
declarations is not just partly used when loading data from GDX.
Contributor: Lutz Westermann, March 2021
$offText
$onEcho > data.gms
Set i /1*10/;
Parameter p(i) / #i 2 /;
$offEcho
$call.checkErrorLevel gams data.gms lo=%GAMS.lo% gdx=data
Set i / 1*5 /
j;
Parameter q(i);
$gdxIn data
$load j=i q=p
$onMulti
Set i / 1*10 /;
Parameter p(i);
$load p
abort$(card(p)<>card(q)*2) 'Missing elements for p', p, q;