### Need help to programm j≠i

Posted:

**Wed Jul 03, 2019 2:37 am**Hello all,

I want to programm a formulation: sum(t, sum(j∈N & j≠i, P(i,j,t))). The code is as follows:
However, the programm repor some errors:

148 Dimension different - The symbol is referenced with more/less indices as declared

Could someone can help me to correct it.

Thanks.

Li

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.

Thanks.

Li