Dear GAMS friends,
My model runs smoothly before I give a shock from the 4th year. The error information is “** Domain error(s) in nonlinear functions. Check bounds on variables.” My shock is given as follows:
SET YR YEAR /2012*2045/;
LOOP(YR$(ORD(YR) LE 4),
IF(ORD(YR)=4,
TM('ANZ','KR',S)=0.4*TM('ANZ','KR',S);
TM('KR','ANZ',S)=0.4*TM('KR','ANZ',S);
TM('ANZ','JP',S)=0.4*TM('ANZ','JP',S);
TM('JP','ANZ',S)=0.4*TM('JP','ANZ',S);
);
OPTION RESLIM=10000;
SOLVE FDIHE_SIM1 MAXIMIZING U USING NLP;
);
I also tried with the $ selection method to insure the shock begins in the 4th year, but the same error occurs.
I also tried to move the shock to TM out of the Loop, i.e. as a shock to the basic model, no error occurs.
Many thanks,
Qiaomin