GAMS [ Home | Support | Sales | Solvers | Documentation | Model Libraries | Search | Contact Us ]

set8.gms : Test the set.id set#id #id data macros


In 23.0 and older, we got bad data structures when using these
'macros' in table statements.  This resulted in not being able to
write gdx files and bad workfiles that could not be read.  Another
problem was that these 'macros' could not be in the first row or first
column.

Contributor: Alex

Small Model of Type: GAMS
$TITLE Test the set.id set#id #id data macros (SET8,SEQ=437) $ontext In 23.0 and older, we got bad data structures when using these 'macros' in table statements. This resulted in not being able to write gdx files and bad workfiles that could not be read. Another problem was that these 'macros' could not be in the first row or first column. Contributor: Alex $offtext set i /1*2 /, j / a,b / j1 / set.j / j2 / #j / j3 / set#j /; table x(*,*) #j d set.i #i 1 1 10 3 3 4 system.modeltypes 5 6 set.j 7 8 parameter b; set table xx(*,i,*) d #j set#j.1 3 4 xx.#i 1 2 * This has failed on 23.0 and older execute_unload 'alx';