Search found 3 matches

by scholar.furquan
2 years ago
Forum: Syntax
Topic: values of sets in binary variable
Replies: 6
Views: 10074

Re: values of sets in binary variable

Thank you for your valuable reply.

This code is not of mine, but i was learning how to debug the GAMS for various errors (like the ones above).TQ
by scholar.furquan
2 years ago
Forum: Syntax
Topic: values of sets in binary variable
Replies: 6
Views: 10074

Re: values of sets in binary variable

sets i /i1*i10/ j /j1*j10/ m /1*12/ t /t0*t100/; parameters v(m) coordinate i vaalue of machine m / 1 1 2 6 3 2 4 2 5 2 6 8 7 4 8 7 9 3 10 3 11 3 12 8 / h(m) coordinate j vaalue of machine m / 1 10 2 1 3 2 4 10 5 9 6 3 7 5 8 1 9 7 10 8 11 8 12 8 /; variable Z; binary variable x(i,j,t) if cell (i.j) ...
by scholar.furquan
2 years ago
Forum: Syntax
Topic: values of sets in binary variable
Replies: 6
Views: 10074

Re: values of sets in binary variable

c1(i, j, m)$((ord(i)=v(m)) and (ord(j) = h(m))).. sum(t,x(v(m),h(m),t)) =e= 1;

This equation is showing an error after following the said modificaitons !!