Michael: Thanks! How could I overlook the difference between compile phase and execution phase ?. Sorry !!!
Regards
Claudio
On Fri, Feb 5, 2016 at 11:42 AM, Michael Bussieck wrote:
Claudio,
$unload exports the symbol with the data from the declaration (the data between / /) at compile time, execute_unload exports the data after all execution time calculations (up to this point). Display shows the data at execution time. So in the following example:
set i /1*10/, ii(i) /2,4,6,8,10/;
ii(i) = mod(ord(i),2);
execute_unload ‘exec’, ii;
$gdxout comp
$unload ii
$gdxout
comp.gdx will have ii with all even i (2,4,6,8,10), while exec.gdx has an ii with all i with an odd ordinal number (1,3,5,7,9). So clearly there are situations as you describe.
Hope this helps,
Michael Bussieck - GAMSWorld Coordinator
On Friday, February 5, 2016 at 9:09:25 AM UTC-5, Claudio Delpino wrote:
Hi all: I may have come into contact with a bug:
In a file I run I’m experiencing the following:
$gdxout aGDXFile.gdx
$unload aSymbol anotherSymbol
$gdxout
Generates an erroneous gdx file which has some empty symbols. Previous displaying shows they are not empty, and when I do
execute_unload aGDXFile.gdx
The generated gdx has all symbols proper.
Is there any condition under which this could happen ?
Regards
Claudio
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.