condition that involves variable (use $ or not)

Problems with syntax of GAMS
ZNSen
User
User
Posts: 9
Joined: 5 months ago

condition that involves variable (use $ or not)

Postby ZNSen » 4 months ago

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: 5 months ago

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

Postby ZNSen » 4 months ago

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


Who is online

Users browsing this forum: No registered users and 1 guest