![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/3408ea49-fb3f-4957-9045-a8733cb98ae8.png)
I need to fill the 6*6 matrix as shown in the above.
Here (i,j) is from 0 to 6
So I used below code to achieve the matrix as shown above
![](https://uploads-eu-west-1.insided.com/aimms-en/attachment/15169393-4a00-40c3-9562-cc172171d346.png)
Here my question is I am trying to achieve this constraint x(i,j)=1 if either i or j =0 or 6
Is there a better way to use Index domain to achieve that
Best answer by gdiepen
View original