Dear Gams users:
I am working on a problem that part of the solution of file A is the condition for file B. My intention is to run file A and unload the part of solution needed by file B. After that, file B will load the solution from file A. Regarding my intention, my code is as following:
File A,
variable x y z;
solve problem using lp;
execute_unload “x.gdx”, x=xsol;
execute_unload “y.gdx”, y=ysol;
execute_unload “z.gdx”, z=zsol;
File B,
variable x y z;
execute_load “x.gdx”, x=xsol;
execute_load “y.gdx”, y=ysol;
execute_load “z.gdx”, z=zsol;
When I run the file A, everything looks fine. However, there are errors when I run file B: cannot load/unload symbols with unknown dimension. Can anyone help me? Thank you very much. Besides, is there any way that I can execute an external file in GAMS? Thanks again.