Originally posted by: SystemAdmin
[oussedik said:]
Hi,
You can also, if possible for you, use a linear approximation of X1*X2. First you need to set some bounds on X1 and X2
a < X1 < b with a > 0 and b > 0
c < X2 < d with c > 0 and d > 0
Then it is possible to replace X1*X2 by a new variable Z where Z satisfies the constraints
Z ââ°Â¤ aX2 + dX1 âËâ ad
Z ââ°Â¤ bX2 + cX1 âËâ bc
Z ââ°Â¥ aX2 + cX1 âËâ ac
Z ââ°Â¥ bX2 + dX1 âËâ bd
For bin packing problems, X1 and X2 are probably binaries in your model, then the linear transformation is exact. With Z binary, this makes:
Z ââ°Â¤ X1
Z ââ°Â¤ X2
Z ââ°Â¥ 0
Then, If X1 or X2 = 0 => Z= 0
Z ââ°Â¥ X2 + X1 âËâ 1
If both X1, X2 are at 1 then Z=1
Sofiane
#DecisionOptimization#MathematicalProgramming-General