Hello Experts !
Need your help & guidance.
I am a new user of GAMS. I am trying to read in data from EXCEL and error I am getting is 510 (GDX file not found) and 502 (unable to load data). My code is given below:
------ CODE START -----
Sets
g generators
t time-steps /1*96/
r regions /W, N, E, S, NE/
;
alias (r,r1);
Parameter RegIndex(r)
/
W 1
N 2
E 3
S 4
NE 5
/;
Parameters GenData(g,), ATC(r,r1,t), Schedule(g,t), ReserveRequirement(t,);
$Call GDXXRW I=D:\SCS\My_GAMS\Programs\Learning_Folder\Despatch_96Blocks\InputData.xls O=InputData.gdx set=g RDim=1 rng=GenData!a2:a10000 par=GenData RDim=1 CDim=1 rng=GenData!a1:R10000 par=ATC RDim=2 CDim=1 rng=ATC!a3:XY10000 par=Schedule RDim=1 CDim=1 rng=Schedule!a4:XY10000
$GDXIN InputData
$LOAD g
$LOAD GenData
$LOAD ATC
$LOAD Schedule
$GDXIN
display gendata, ATC, Schedule;
$Call GDXXRW I=D:\SCS\My_GAMS\Programs\Learning_Folder\Despatch_96Blocks\InputData.xls O=InputData.gdx par=ReserveRequirement RDim=1 CDim=1 rng=Reserve!a3:d10000
$GDXIN InputData
$LOAD ReserveRequirement
$GDXIN
------------------ CODE END -------------------
The Error is as follows: