
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

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