Search found 1 match

by e.a.alaboudi
5 years ago
Forum: Syntax
Topic: swapping indices in a variable
Replies: 1
Views: 1860

swapping indices in a variable

hello everyone, I have the following lines in my model: set i/1*400/; alias(i,j); 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 ...