condition that involves variable (use $ or not)

Problems with syntax of GAMS
Post Reply
ZNSen
User
User
Posts: 9
Joined: 6 years ago

condition that involves variable (use $ or not)

Post by ZNSen »

Hi dear all,
I write the following in which Price is a variable. The model solves but doe not take the condition in to account.Is there any way I can use the $ if the condition is related to a variable? If not, is there any other way I can proceed?
Thanks

q_ginstock2(Yr,i) $ (PRICE.l(Yr,i) < pmin(i))..
GINSTOCK(Yr,i) =E=Stock_cap(i)/ PRICE.L(Yr,i);
ZNSen
User
User
Posts: 9
Joined: 6 years ago

Re: condition that involves variable (use $ or not)

Post by ZNSen »

Problem successfully solved. In case someone else have the same problem, the solution is in this document (see link) pp: 37-40
[url][/http://pdf.usaid.gov/pdf_docs/pnacj887.pdf]
Cheers
Zinsou
Post Reply