Good evening,
here's my mod file:
param dim;
param c integer;
set I := 1..dim by 1;
set J := 1..dim by 1;
var x{I,J} integer := 0;
var y{I,J} integer := 0;
minimize touch:
sum{i in I, j in J} x[i,j];
s.t. con1{i in I, j in J}:
y[i,j]=c-1;
s.t. con2{i in I, j in J}:
y[i,j] <= x[i,j] mod c;
where dim and c are defined and initialized in the dat file.
I am getting the error "Constraint _scon[1] is a nonquadratic nonlinear constraint.", I suppose for the mod operator. The same thing happens when, instead of mod, I use this equivalent expression: x[i,j]-(c*(x[i,j] div c)).
Are the mod and div operators non-linear?
Thanks in advance!