|
Universal Set: * as a set identifier |
Top Previous Next |
|
Set references may be indefinite allowing any entries at all by referring to the universal set. This is done by either
In either case domain checking is suppressed and any entry whatsoever may be used without error. Examples: (sets.gms) Here I use the universal set in a number of places
Set knownset /p1*p4/; Alias (newuniverse,*); Set a1(newuniverse); Parameter dataitem(*) data without fixed set assignments / Newitem1 1, newitem2 3/; Parameter dd(newuniverse); Dd(knownset)=4; Dd("newone")=5; Dataitem("newitem4")=dataitem("newitem1")*dataitem("newitem2"); A1("boston")=yes;
where the blue and bolded items are all associated with universal sets and no domain checking is going on and new elements can be freely introduced. Notes:
|