I attached a working stripped example of what I try to achieve. Basically, with the code I posted, I expect to get one result with zero on all elements. But when the matrix is defined as :
IntVar[,] x = solver.MakeIntVarMatrix(2, 2, new int[] { 0, 1, 2 }, "x"); I get no solution.
When I declare matrix as :
IntVar[,] x = solver.MakeIntVarMatrix(2,2, new int[] {-2,0,1,2}, "x"); I get the desired solution
The issue I found, is that my constraint doesn't work when I test for first element of IntVar domain.
Thank you for your patience