Hi,
I’m having a problem related to the inclusion of a GDX file…I wrote this code to produce the GDX file starting from an Excel spreadsheet:
Set r row labels;
Parameters Dt(r)
Ppv(r)
Pwt(r)
Pht(r);
$call GDXXRW.EXE Dt.xlsx Squeeze=N par=Dt rng=a1:b25 trace=3 rdim=1 cdim=1
$call GDXXRW.EXE Ppv.xlsx Squeeze=N par=Ppv rng=a1:b25 trace=3 rdim=1 cdim=1
$call GDXXRW.EXE Pwt.xlsx Squeeze=N par=Pwt rng=a1:c25 trace=3 rdim=1 cdim=1
$call GDXXRW.EXE Pht.xlsx Squeeze=N par=Pht rng=a1:c25 trace=3 rdim=1 cdim=1
$call gdxmerge Dt.gdx Ppv.gdx Pwt.gdx Pht.gdx
and the GDX file is formed without problems (you can find a screen of it attached). But then I want to include it in the algorithm I have to solve and I use this formulation:
$gdxin merged
$load Dt Ppv Pwt Pht
$gdxin
but I get “error 495:load dimension are different”(seems referred to Ppv) and I can’t understand why.
Thank you in advance,
Marina