onmulti6.gms : Test merge with $onMulti and $gdxIn

Description

This tests AB01267: celmerge was called incorrectly

Contributor: Alex Meeraus


Small Model of Type : GAMS


Category : GAMS Test library


Main file : onmulti6.gms

$title 'Test merge with $onMulti and $gdxIn' (ONMULTI6,SEQ=338)

$onText
This tests AB01267: celmerge was called incorrectly

Contributor: Alex Meeraus
$offText

set       i / 1*10 /;
parameter a(i) / 1*5 2  /, b(i) / 6*10 3 /
          cab(i),cba(i),dab(i),dba(i);

$onMulti
parameter cab / 1*5  2 /, cab / 6*10 3 /
          cba / 6*10 3 /, cba / 1*5  2 /;
$offMulti
display cab,cba;
abort$sum(i, cab(i) <> cba(i)) '$onMulti with declaration failed';

$gdxOut g
$unLoad a b
$gdxOut

$onMulti
$gdxIn g
$load dab=a dab=b dba=b dba=a
$onMulti

display dab,dba;
abort$sum(i, dab(i) <> dba(i)) '$onMulti with $gdxIn failed';