Is there a way to rewrite the following constraint set in one row?
for i in set_i
for ii in set_i
if parameter[ii] >= parameter[i]
@constraint( model, x[i] - y[ii] <= 0 );
end
end
end
Something like this:
@constraint( model, constrname[i in set_i, ii in set_i],
x[i] - y[ii] <= 0 if parameter[ii] >= parameter[i] );