I have the following lines in my model:
binary variable x(i,j,k);
con(i,k)..sum((j)$(ord(j) ne ord(i)),x(i,j,k))=E= sum((j)$(ord(j) ne ord(i)),x(j,i,k)) ;
as you can see, I reversed the order of (i)&(j) in the variable x(i,j,k) to become x(j,i,k). for this constraint, I need to place (i) once in the first index for the first summation and in the second index for the second summation.
my question: is this syntax acceptable? in if not, what should I do to tackle this problem?
Problems with syntax of GAMS
2 posts • Page 1 of 1