uncontrolled set as a constant error

Hi All,

sets
i /14/
j /1
8/
id(i) /4/
ir(i) /1*3/
jd(j) /3,6/
jr(j) /1,2,4,5,7,8/

location…z=e=sum((ir,jr), t(ir,jr)*(k(ir)/c(ir)))*d(jr);

In this equation gams give error “Uncontrolled set as a constant” How can I fix it ?

location…z=e=sum**((ir,jr), t(ir,jr)*(k(ir)/c(ir)))***d(jr);

Your summation ends before the multiplication with d(jr) (and Z does not have an index). Not sure what you want to achieve with your function, but changing to:
location…z=e=sum**((ir,jr), t(ir,jr)*(k(ir)/c(ir))*d(jr))**;
should solve the error.

GFA

Thanks,ıt works now. I try to write dynamic model for product assignment.