GAMS error 140

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…

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: https://forum.gamsworld.org/app.php/rules

-Michael