I want to programm a formulation: sum(t, sum(j∈N & j≠i, P(i,j,t))). The code is as follows:
Code: Select all
set i / 1,2,3 / t / 1*24 /; alias(i,j); sum((t,j)$(t,j<>i), p(i,j,t))
148 Dimension different - The symbol is referenced with more/less indices as declared
Could someone can help me to correct it.