vardat03.gms : test var/equ data statements with $onEmpty

Description

Contributor: Alex Meeraus


Small Model of Type : GAMS


Category : GAMS Test library


Main file : vardat03.gms

$title 'test var/equ data statements with $onEmpty' (VARDAT03,SEQ=376)

$onText
Contributor: Alex Meeraus
$offText

$if not gamsversion 227 $exit

set i / 1*3 /, j /a*c/;
$onEmpty
variable x(i,j) / /, y;
$onMulti
variable x(i,j) / 1.(a 1,b 2, c 3).l  /, y / l 30 /;
display x.l,x.up,x.lo,x.m,y.l;

abort$(y.l <> 30 ) y.l;
abort$sum(j, x.l('1',j) <> ord(j)) x.l;