I have a model that includes (among other constraints) constraints v1-v3 below:
Code: Select all
v1(i,inp)$p1(i).. x(inp,i)=G=sum(p1,lambda1(i,p1)*x(inp,p1));
v2(i,inp)$p1(i).. x(inp,i))=G=sum(p1,lambda2(i,p1)*x(inp,p1));
v3(i,inp)$p1(i).. x(inp,i)=G=sum(p1,lambda3(i,p1)*x(inp,p1));
Code: Select all
inter(i,inp)$p1(i).. sum(p1,lambda1(i,p1)*x(inp,p1))=E=sum(p1,lambda2(i,p1)*x(inp,p1))=E=sum(p1,lambda3(i,p1)*x(inp,p1));
Error 409. Unrecognizable item - skip to find a new statement
looking for a ';' or a key word to get started again.
Is there a way to define such a three-way equality constraint in GAMS? If not, then will the solution be to use the transitivity rule and break down the above three-way equality constraint into two separate equalities as below?
Code: Select all
sum(p1,lambda1(i,p1)*x(inp,p1))=E=sum(p1,lambda2(i,p1)*x(inp,p1));
sum(p1,lambda2(i,p1)*x(inp,p1))=E=sum(p1,lambda3(i,p1)*x(inp,p1));
Teo