As mentioned in the title, how to use a linear constrain to ensure an integer n is staying out of (n1, n2), in which n,n1,n2 are all integers, and the interval is not [n1, n2].
I formulate the problem in GAMS as
n2 - n1 =l= abs(2*n - n2 - n1)
but the abs()
is not allowed in a MIP model.
THX