$setglobal m 2
$setglobal n 3
$if exist matglobs.gms $include matglobs.gms

set i /1*%m%/,
    j /1*%n%/;

alias (j1,j);

parameter Q(j,j1) /
1 .1 1.0
2 .2 1.0
3 .3 1.0
/,
A(i,j) /
1 .1 1.0
1 .2 1.0
1 .3 1.0
2 .1 -1.0
2 .3 1.0
/,
b(i) /
1 1.0
2 1.0
/
c(j) /
1 2.0
/;

$if exist matdata.gms $include matdata.gms

$libinclude matout Q J J1
$libinclude matout J
$libinclude matout A I J