Error: rPower: FUNC DOMAIN: x**y, x=0,y<0

Problems with modeling
Post Reply
Estel
User
User
Posts: 3
Joined: 3 years ago

Error: rPower: FUNC DOMAIN: x**y, x=0,y<0

Post by Estel »

Hi all,

I'm testing a CGE model. It was based on an old SAM, so I replaced it with a new one.
Then I got this error message on the CET equation
Error: rPower: FUNC DOMAIN: x**y, x=0,y<0

Code: Select all

eqQD(i).. QD(i)=e=gammae(i)**(-sigmaex(i)-1)*(xid(i)*(1+taxp(i))*PX(i)/PD(i))**(-sigmaex(i))*QX(i);
I checked the equation and initial values of PX and PD, and set lower bounds for them. But it doesn't work.

Code: Select all

PX0(i)=1; PD0(i)=1;
PX.lo(i)=0.01; PD.lo(i)=0.01;
The model works well on the old SAM even without any bounds. I'm new to GAMS, this really confuses me.
Does anyone have an idea about this problem? What I did wrong or what I missed?

Thanks,
Estel
Estel
User
User
Posts: 3
Joined: 3 years ago

Re: Error: rPower: FUNC DOMAIN: x**y, x=0,y<0

Post by Estel »

Problem solved.
The new chart gives a really bad initial value of QE(i), we merged this sector with another one, then the model works just fine.
Post Reply