|
Explicit element definition |
Top Previous Next |
|
Explicit element definition involves the types of statements as above composed of
set name of the set optional explanatory text / element names followed by optional explanatory text. between element names either a comma or a carriage return /.
In element definition, one may cause multiple elements to be defined in sequence by using notation such as r1*r4 which causes definition of r1,r2,r3,r4. One can also place the number in other positions using for example 1u*10u which would define 1u, 2u, 3u etc. up to 10u. Additionally one may assign members to a set in decreasing order. Examples: (sets.gms) SETs rj /x1,"x2 item",'x3*case'/ SET mPROCESS PROCESSES /X1,X2,X3/; SET mcommodities Commodities / corn in bushels Wheat in metric tons milk in pounds/ ; SET years items in decreasing order /bc2000*bc1,rr2009*rr0/; SET years2 decreasing /"-20"*"-1"/;
|