Import GDX in a new GAMS file

Hi,

I’m a new user of GAMS and I want to do the following:

  • I want to use the parameters and solved variables of my first file “UC” as input to a second file “Balancing”. I did this by making a GDX file after the solve command of “UC”.
    I did this by following command:
    execute_unload ‘UC’ “,here all my parameters and variables”;

  • Afterwards, I try to import these data in my “Balancing” file but I get a lot of errors like “identifier expected” and " unknown symbol".
    I did this by following command:
    execute_load ‘UC’ ,“here all my parameters and variables I unloaded in UC” ;


    I did all this as explained in “http://www.gams.com/mccarl/gdxuseage.htm” but still doesn’t work. Anyone a suggestion or another help file?

Thanks in advance!


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/e9fporg1PMUJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Have you defined the sets/parameters/etc in your Balancing file?

In other words, does your code look something like:

set i;
parameter my_i(i);

execute_load ‘UC’, i, my_i;




On Friday, October 26, 2012 3:19:36 AM UTC+13, Philippe Delaruelle wrote:

Hi,

I’m a new user of GAMS and I want to do the following:

  • I want to use the parameters and solved variables of my first file “UC” as input to a second file “Balancing”. I did this by making a GDX file after the solve command of “UC”.
    I did this by following command:
    execute_unload ‘UC’ “,here all my parameters and variables”;

  • Afterwards, I try to import these data in my “Balancing” file but I get a lot of errors like “identifier expected” and " unknown symbol".
    I did this by following command:
    execute_load ‘UC’ ,“here all my parameters and variables I unloaded in UC” ;


    I did all this as explained in “http://www.gams.com/mccarl/gdxuseage.htm” but still doesn’t work. Anyone a suggestion or another help file?

Thanks in advance!


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/LYtQmh9PaaAJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Hi,

That was my fault indeed! Thanks for the tip:)


Op donderdag 25 oktober 2012 16:19:36 UTC+2 schreef Philippe Delaruelle het volgende:

Hi,

I’m a new user of GAMS and I want to do the following:

  • I want to use the parameters and solved variables of my first file “UC” as input to a second file “Balancing”. I did this by making a GDX file after the solve command of “UC”.
    I did this by following command:
    execute_unload ‘UC’ “,here all my parameters and variables”;

  • Afterwards, I try to import these data in my “Balancing” file but I get a lot of errors like “identifier expected” and " unknown symbol".
    I did this by following command:
    execute_load ‘UC’ ,“here all my parameters and variables I unloaded in UC” ;


    I did all this as explained in “http://www.gams.com/mccarl/gdxuseage.htm” but still doesn’t work. Anyone a suggestion or another help file?

Thanks in advance!


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/dMdO0eS2I_oJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.