Hybrid Quantum Benders’ Decomposition For Mixed-integer Linear Programming
Abstract
The Benders’ decomposition algorithm is a technique in mathematical programming for complex mixed-integer linear programming (MILP) problems with a particular block structure. The strategy of Benders’ decomposition can be described as a strategy of divide and conquer. The Benders’ decomposition algorithm has been employed in a variety of applications such as communication, networking, and machine learning. However, the master problem in Benders’ decomposition is still NP-hard, which motivates us to employ quantum computing. In the paper, we propose a hybrid quantum Benders’ decomposition algorithm. We transfer the Benders’ decomposition’s master problem into the quadratic unconstrained binary optimization (QUBO) model and solve it by the state-of-the-art quantum annealer. Then, we analyze the computational results and discuss the feasibility of the proposed algorithm. Due to our reformulation in the master problem in Benders’ decomposition, our hybrid algorithm, which takes advantage of both classical and quantum computers, can guarantee the solution quality for solving MILP problems.
Index Terms:
Benders’ Decomposition, Mixed-integer Linear Programming, Optimization, Quantum Computing, Communication, NetworkingI Introduction
In recent years, mixed-integer linear programming (MILP) is widely employed in many fields includes but is not limited to planning and scheduling [1], transportation and telecommunications [2], energy and resource management [3][4], network design [5], and vehicle routing [6]. However, because MILP is an NP-hard problem [7] [8], it is desirable to have powerful solutions to solve large-scale MILP problems.
Benders’ decomposition algorithm [9] provides an efficient way to solve the MILP problem. In recent years, the Benders’ decomposition method has become a popular algorithm. It exploits the structure of the MILP problem and successfully reduces the computation workload. Benders’ decomposition divides a MILP problem into a master problem and a subproblem. The subproblem is a linear programming model that has strong duality. During the iterative solving process, the optimality cuts and feasibility cuts obtained from the solution of the subproblem will be added to the master problem. The iterative process will stop when the gap between the upper bound provided by the master problem and the lower bound provided by the subproblem is sufficiently small. However, the master problem in Benders’ decomposition is still NP-hard, which motivates us to employ quantum computing.
Due to the characteristics of parallel computing, the quantum computer can simultaneously calculate the final result with every possible model input. Therefore, quantum computers are often considered to have surpassed the computational speed of traditional computers. The quantum advantage has been proved by quantum algorithms, including Deutch-Jozsa Algorithm [10], Grover’s Algorithm [11], Shor’s Algorithm [12]. In recent years, leading quantum computer companies such as D-Wave, IBM, Google, IonQ, Honeywell have made significant progress in hardware design. Normally, their quantum computers are in one of the two groups (i.e., analog quantum model, universal quantum gate model). D-Wave currently provides the quantum computer with the largest number of qubits on the market.
By deploying the Ising model, the D-Wave’s quantum annealer computer can solve the problem formulated by the quadratic unconstrained binary optimization (QUBO) model. It depicts the energy state with coupling qubits interaction and externally applied fields [13].
The power of quantum computers and challenges in MILP problems inspire us to design a hybrid quantum Benders’ decomposition algorithm by jointly using quantum computing and classical computing techniques. However, there are several obstacles when we try to use Benders’ composition to combine quantum and traditional computing. The first difficulty is how to convert the problem into an integer linear programming (ILP) problem recognized by the quantum computer. The Second difficulty is how to convert the NP-hard ILP problem into a QUBO model as an input to a quantum computer. In addition, the third difficulty is how to reformat the output of quantum computers from the binary solution to the decimal numeral system.
To overcome the above challenges, this paper reformulates the master problem as an ILP model in Benders’ decomposition under the MILP problem. We transfer the master problem, which is an ILP model, into a QUBO form. Although the master problem in the Benders’ decomposition is still NP-hard, we overcome this issue by proposing a hybrid Benders’ decomposition algorithm with the D-Wave hybrid quantum computer for the MILP problem. Finally, we study a simple case to evaluate the performance of the D-Wave hybrid solver in solving the MILP problem. The contributions of this paper are summarized as follows.
-
•
We propose a hybrid quantum Benders’ decomposition algorithm to find the solution for the MILP problem. Our hybrid quantum Benders’ decomposition algorithm converges and returns the correct final result as the classical algorithm does.
-
•
We propose an ILP model for the master problem in Benders’ decomposition for the MILP problem. We reformulate the ILP model as a QUBO model recognized by the quantum annealing machine.
-
•
We employ the quantum computer provided by D-Wave to solve the MILP problem by their Leap™ quantum cloud service. Our experiments show the possibility of using quantum computing to solve the MILP.
The rest of this paper is organized as follows. Section II introduces the basics about the MILP problem and the Benders’ decomposition. Section III illustrates our hybrid quantum Benders’ Decomposition algorithm. Section IV validates our algorithm by showing the corresponding simulation. Finally, Section V concludes the whole paper.
II MILP and Benders’ Decomposition Basics
II-A Mixed-integer Linear Programming
MILP has been widely adopted optimization problems that include but are not limited to communication and networks. In the field of communication, for instance, it has been employed to the resource allocation in wavelength division multiple access (WDMA) [14], multi-access edge computing (MEC) [15], offloading for fog computing [16], etc. Furthermore, it plays an essential role in the field of network research, such as minimizing the network delay [17], scheduling virtual network re-configurations [18], and improving the supply chain network [19]. Besides civilian applications, it is no doubt that MILP has been adopted for military purposes such as assisting military pilot training [20]. These demonstrate that MILP is a powerful tool for either classical problems or future popular topics such as communication networks and resource allocation. Consider a MILP model as follows:
(1) | ||||
s.t. | ||||
Here is a vector with binary variables and is its corresponding coefficient matrix in constraints. is a vector with non-negative continuous variables and is its corresponding coefficient matrix in constraints. is the coefficient vector of variable in the objective function and is the coefficient vector of variable in the objective function.

II-B Benders’ Decomposition for MILP
We first provide a brief introduction of the Benders’ Decomposition. In the MILP problem (1), for each possible choice of , we find the best choice for by solving a linear program. So we regard as a function of . Then we replace the contribution of to the objective with a scalar variable representing the value of the best choice for a given . We start with a crude approximation to the contribution of and then generate a sequence of dual solutions to tighten up the approximation. Hence, the original MILP problem in (1) can be written equivalently to a master problem as follows.
(2) | ||||
s.t. | ||||
We denote and as the extreme points and extreme rays of the dual polyhedron generated by the linear programming’s duality, which is called the subproblem. The subproblem is as follows.
(3) | ||||
s.t. | ||||
In the subproblem, if the inner product between and any dual ray is negative then . Equivalently, in this situation, the dual problem of Problem (3) is infeasible. Then, does not allow a feasible solution to the original mixed-integer problem (1). Thus, we have a new feasibility cut, i.e.,
(4) |
If satisfies (4), then we yield an extreme point and the value of is given by
(5) |
Thus, problem (1) is written equivalently as problem (2) by denoting as a continuous real number variable . Equation (5) posts a new optimality cut in master problem. In addition to the extreme points and extreme rays, we use and to denote the current known extreme points and extreme rays of , respectively, where and .
III Hybrid Quantum Benders’ Decomposition
Quantum computer is a powerful tool to solve NP-hard integer problems. Accordingly, we introduce the quantum computer to solve the master problem in (2) since it has a special formulation that can convert to an ILP problem. The subproblem is a linear programming model which can be solved well on the classical computer. As Fig. 1 shows, we design a hybrid algorithm in which the master problem is solved by the quantum computing techniques and the subproblem is solved by the classical computing techniques. The two different computers are communicating with each other. The subproblem returns new optimality and feasibility cuts to tighten the bounds of the master problem. The integer solution returned from the master problem gives the subproblem a direction to find new optimality and feasibility cuts.
Constraint | Equivalent Penalty |
---|---|
III-A Quantum Formulation
Quantum annealers are able to solve the optimization problem in a QUBO formulation. To leverage state-of-art quantum annealers provided by D-Wave, the ILP problem has to be converted to the corresponding QUBO formulation. The definition of QUBO are (6) and (7). Let : be a quadratic polynomial over binary variables of length and is corresponding cost coefficient of . We get equation (6)
(6) |
The QUBO problem consists of finding a binary vector that is minimal with respect to among all other binary vectors, namely,
(7) |
Here is a vector of binary variables where the length of , and is either an upper-diagonal matrix or a symmetric matrix. Since (6) is an unconstrained optimization model, we need to reformulate our constrained ILP as unconstrained QUBO by using penalties. Next, we get the optimal solution by finding the best penalty coefficients of the constraints. The principles of transforming classical constraints to their equivalent penalties are displayed in the TABLE I. Here , and are binary variables. is a binary slack variable. is the coefficient for the corresponding slack variable. is a constant. is a user-defined penalty coefficient.
III-B Variable Representation
Now consider problem (2), the initial binary decision variables make up the vector with length of . . In order to reformulate the master problem into the QUBO formulation, we needs to represent the continuous variable using binary bits. We use a binary vector with length of bits to replace continuous variable . In general, requires the binary numeral system assigning bits to replace continuous variable . Then we can recover the by
(8) | ||||
In (8), is the number of bits that assigned to represent positive integer part, is the number of bits assigned to represent the positive decimal part, and is the number of bits that represent the negative integer part.
III-C QUBO Setup
Let’s reconsider problem (2) and replace in (8). The new problem is only depend on binary decision variables and . Then, the new master problem is
(9) | ||||
s.t. | ||||
Then we create a new binary decision variable collection to set up our QUBO matrix, where the length of the binary vector is . According to the rule of setting up QUBO, we will transfer our objective and constraints one by one to be a symmetric matrix.
III-C1 Objective Function
Because the quantum computer only accepts a quadratic polynomial over binary variables. Following the principle of the QUBO formulation, we convert the objective function to be a QUBO matrix as follows.
(10) | ||||
III-C2 Optimality Cuts
Similarly, following the principle of constraint-penalty pairs in TABLE I, we not only introduce the penalty but also convert the optimality cuts constraint to be a QUBO matrix as follow.
where |
III-C3 Feasibility Cuts
Similarly, following the principle of constraint-penalty pairs in TABLE I, we convert the feasibility cuts constraint to be a QUBO matrix with penalties as follows:
where |
III-D Proposed Algorithm
We deploy the D-Wave solver in our proposed heuristic algorithm to solve the model. In addition, we need to carefully tune the penalties for a decent QUBO model. An extremely large penalty may cause quantum annealer malfunctioning since it will explode the coefficients. Similarly, a soft penalty may make quantum annealer ignore the corresponding constraints. As long as the penalty is well-tuned, the quantum solver will give the right answer with a relatively high probability. Therefore, we summarize our proposed hybrid quantum Benders’ decomposition algorithm as Algorithm 1.
IV NUMERICAL VALIDATION
We validate the proposed algorithm by running on a hybrid D-Wave quantum processing unit (QPU). Because the input of interest to practice is too large to fit onto current-model QPUs and be solved directly by quantum annealing. We choose to use the hybrid model instead of the pure QPU. The reason for using the hybrid model is that the hybrid solver overcomes a lot of input size barriers and allows the QPU to accept a large input. More details can be found in [21]. We accessed the D-Wave system by Leap™ quantum cloud service.
IV-A Example Setup
In our simulation, we consider a simple problem to test our proposed quantum algorithm, where , , ,
IV-B Result
Fig. 2 shows how our proposed hybrid quantum Benders’ decomposition algorithm adds optimality and feasibility cuts to get the solution and corresponding . In the example, the algorithm takes 4 rounds to let converge. Four cuts are added iteratively in the space and tighten the feasible region. The algorithm can find the optimal solution in each round. Therefore, Fig. 2 demonstrates that our algorithm is reliable and efficient. In Fig. LABEL:fig:tutl, the hidden dashed line denotes that the lower bound in the corresponding round is negative infinity. As we can see in the graph, the upper bound and lower bound converge. Our algorithm only takes two rounds to find the non-negative infinity lower bound. This result proves that our proposed algorithm is mathematically consistent with the classic Benders’ decomposition algorithm. In other words, as long as the classic Benders’ decomposition algorithm can solve it, our algorithm can at least achieve the same.

V Conclusion
In this paper, we not only reformulate the master problem of Benders’ decomposition for the MILP problem as an ILP model but also successfully convert it to a QUBO model. our hybrid quantum Benders’ decomposition algorithm converges and returns the correct final result as the classical algorithm does. In addition to that, our algorithm also guarantees the solution quality for solving the MILP problem. In our simulation, we solved an NP-hard MILP problem by using the hybrid quantum computer provided by D-Wave. Therefore, we can conclude that the quantum computer can potentially replace the classical computer in solving the NP-hard master problem of Benders’ decomposition algorithm in MILP problems.
References
- [1] S. P. Canto, “Application of Benders’ decomposition to power plant preventive maintenance scheduling,” European Journal of Operational Research, vol. 184, no. 2, pp. 759–777, Jan. 2008.
- [2] A. M. Costa, “A survey on benders decomposition applied to fixed-charge network design problems,” Computers & Operations Research, vol. 32, no. 6, pp. 1429–1450, Jun. 2005.
- [3] X. Cai, D. C. McKinney, L. S. Lasdon, and D. W. Watkins, “Solving large nonconvex water resources management models using generalized benders decomposition,” Operations Research, vol. 49, no. 2, pp. 235–245, Apr. 2001.
- [4] J. L. Zhang and K. Ponnambalam, “Hydro energy management optimization in a deregulated electricity market,” Optimization and Engineering, vol. 7, no. 1, pp. 47–61, Mar. 2006.
- [5] B. Fortz and M. Poss, “An improved Benders decomposition applied to a multi-layer network design problem,” Operations Research Letters, vol. 37, no. 5, pp. 359–364, Sep. 2009.
- [6] A. I. Corréa, A. Langevin, and L.-M. Rousseau, “Scheduling and routing of automated guided vehicles: A hybrid approach,” Computers & Operations Research, vol. 34, no. 6, pp. 1688–1707, Jun. 2007.
- [7] A. Bulut and T. K. Ralphs, “On the complexity of inverse mixed integer linear optimization,” arXiv:2104.09002 [cs, math], Apr. 2021, arXiv: 2104.09002. [Online]. Available: http://arxiv.org/abs/2104.09002
- [8] C. H. Papadimitriou and M. Yannakakis, “The complexity of facets (and some facets of complexity),” in Proceedings of the fourteenth annual ACM symposium on Theory of computing, ser. STOC ’82. New York, NY: ACM, May 1982, pp. 255–260.
- [9] A. M. Geoffrion, “Generalized benders decomposition,” Journal of Optimization Theory and Applications, vol. 10, no. 4, pp. 237–260, Oct. 1972.
- [10] D. Deutsch and R. Jozsa, “Rapid solution of problems by quantum computation,” Proceedings of the Royal Society of London. Series A: Mathematical and Physical Sciences, vol. 439, no. 1907, pp. 553–558, Dec. 1992.
- [11] L. K. Grover, “A fast quantum mechanical algorithm for database search,” in Proceedings of the Twenty-Eighth Annual ACM Symposium on Theory of Computing, ser. STOC ’96. New York, NY: ACM, Jul. 1996, p. 212–219.
- [12] P. W. Shor, “Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer,” SIAM Journal on Computing, vol. 26, no. 5, pp. 1484–1509, Oct. 1997.
- [13] E. Ising, “Beitrag zur Theorie des Ferromagnetismus,” Zeitschrift für Physik, vol. 31, no. 1, pp. 253–258, Feb. 1925.
- [14] A. S. Elgamal, O. Z. Alsulami, A. A. Qidan, T. E. H. El-Gorashi, and J. M. H. Elmirghani, “Q-learning algorithm for resource allocation in WDMA-based optical wireless communication networks,” arXiv:2105.10729 [cs, eess], May 2021, arXiv: 2105.10729. [Online]. Available: http://arxiv.org/abs/2105.10729
- [15] Y. Yu, X. Bu, K. Yang, H. Yang, X. Gao, and Z. Han, “UAV-Aided Low Latency Multi-Access Edge Computing,” IEEE Transactions on Vehicular Technology, vol. 70, no. 5, pp. 4955–4967, May 2021.
- [16] Z. Wu, B. Li, Z. Fei, Z. Zheng, B. Li, and Z. Han, “Energy-Efficient Robust Computation Offloading for Fog-IoT Systems,” IEEE Transactions on Vehicular Technology, vol. 69, no. 4, pp. 4417–4425, Apr. 2020.
- [17] W. Xuan, Z. Zhao, L. Fan, and Z. Han, “Minimizing Delay in Network Function Visualization with Quantum Computing,” arXiv:2106.10707 [cs, eess, math], Jun. 2021, arXiv: 2106.10707. [Online]. Available: http://arxiv.org/abs/2106.10707
- [18] X. Pan, S. Zhao, H. Yang, S. Tang, and Z. Zhu, “Scheduling Virtual Network Reconfigurations in Parallel in Hybrid Optical/Electrical Datacenter Networks,” Journal of Lightwave Technology, vol. 39, no. 17, pp. 5371–5382, Sep. 2021.
- [19] P. Santander, F. A. Cruz Sanchez, H. Boudaoud, and M. Camargo, “Closed loop supply chain network for local and distributed plastic recycling for 3D printing: a MILP-based optimization approach,” Resources, Conservation and Recycling, vol. 154, p. 104531, Mar. 2020.
- [20] V. Mak-Hau, B. Hill, D. Kirszenblat, B. Moran, V. Nguyen, and A. Novak, “A simultaneous sequencing and allocation problem for military pilot training: Integer programming approaches,” Computers & Industrial Engineering, vol. 154, p. 107161, Apr. 2021.
- [21] “D-Wave Hybrid Solver Service: An Overview.” [Online]. Available: https://www.dwavesys.com/resources/white-paper/d-wave-hybrid-solver-service-an-overview/