GAMS error 140

Problems with modeling
Post Reply
cosmisena
User
User
Posts: 5
Joined: 1 year ago

GAMS error 140

Post by cosmisena »

I could not find my mistake. Please, help me :cry:

obj.. z=e=sum((i,j,s),FC(i,j,s)*Y(i,j,s))+sum((i,j,s),v(i,j,s)*P(i,j,s))+sum((i,s),cp(i,s)*CO(i,s))+sum((i,s,c),t(i,s,c)*supply(i,s,c))+sum((i,s),h(i,s)*inventory(i,s))+sum((i,s),ss(i,s)*I_D(i,s))+sum((i,c),m(i,c)*I_S(i,c))+sum((i,s),BC(i,s)*B(i,s))
**** $140
**** 140 Unknown symbol


There is a 140 error at the z part...
User avatar
bussieck
Moderator
Moderator
Posts: 1033
Joined: 7 years ago

Re: GAMS error 140

Post by bussieck »

The error says "unknow symbol", so you probably have not declared z. Errors often have something to do with context. So it really helps to send the entire model file if you expect help as spelled out in the forum rules: app.php/rules

-Michael
Post Reply