Thank you for your valuable insights on handling binary-continuous variable products in CPLEX. I would like to share additional information based on my own experience.
I am using CPLEX Studio v22.1, and when I attempt to solve my model with this version, after applying linearization, I encounter an optimality gap of 160% within the 10-hour time limit. In contrast, when I run the same model with Gurobi (using Gurobipy), it reaches a gap of approximately 60%, without the need for linearization.
Could you provide any insights into why Gurobi performs better without linearization? Additionally, what methods or techniques does Gurobi employ that might explain this discrepancy in performance?
I would greatly appreciate any advice or suggestions you can offer.
Thank you again for your assistance!
Best regards,
Aysan
------------------------------
icw suni
------------------------------
Original Message:
Sent: Wed April 16, 2025 04:51 AM
From: PhR
Subject: Issue with Solving Equality Constraint Involving Product of Continuous and Binary Variables in CPLEX
The general case can be formulated this way :
Assume L <= x < = U and b in {0, 1}, the formulation of u = x * b is
L (1-b) <= x - u <= U (1-b)
Lb <= u <= Ub
This formulation is tight: it gives the convex hull.
I assumed the variable u is a brand new one introduced for this product.