Generate NXN Matrix must following rules
sum of 1st raw is 0.
sum of 1st column is 0.
sum of diagonal is 0.
//* code
constraint cons1 {foreach(dyn[i,j])
{ (dyn[0][j]) -> dyn[i].sum == 0;
(dyn[i][0]) -> dyn[i]+dyn[j]==0;
}
}
*//
I tried this constraint but this not working.