A simple effective heuristic for embedded mixed-integer quadratic programming

Reza Takapoui, Nicholas Moehle, Stephen P. Boyd, Alberto Bemporad

TL;DR

This paper introduces a fast and effective heuristic algorithm for solving a class of optimization problems called mixed-integer quadratic programs (MIQPs), which are notoriously difficult to solve exactly. Their method, based on a variation of the Alternating Direction Method of Multipliers (ADMM), is particularly well-suited for embedded applications where computational resources are limited and quick approximate solutions are sufficient.

What Problem Does This Paper Address?

The paper tackles the problem of minimizing convex quadratic functions subject to a combination of affine equality constraints and separable, potentially non-convex, real constraints. This problem class is a generalization of many NP-hard problems, including mixed-integer quadratic programming. While exact methods exist for these problems, they often suffer from non-polynomial worst-case runtimes and can be computationally burdensome, especially in resource-constrained environments like embedded systems. The challenge is to find a method that can deliver good quality solutions quickly, even if not globally optimal, to be practical for real-time applications.

Methods

The core of the paper is a novel heuristic algorithm based on the Alternating Direction Method of Multipliers (ADMM). ADMM is typically used for convex optimization problems, but the authors adapt it to handle the non-convexity introduced by the separable constraint sets $X_i$. Their approach involves:

  • Reformulating the problem: The original problem is rewritten to incorporate the indicator function of the constraint set $X$.
  • ADMM Iterations: The algorithm proceeds through a series of iterative steps involving:
  • Minimizing a strongly convex quadratic function.
  • Projecting onto the constraint set $X$. This projection is crucial and is handled by projecting onto each individual $X_i$ in parallel.
  • Updating dual variables.
  • Preconditioning: To improve convergence speed and robustness, the authors employ diagonal scaling as a preconditioning technique. This involves finding diagonal matrices $E$ and $F$ to rescale the problem.
  • Initialization and Iterations: The algorithm is run multiple times with different random initializations to increase the chances of finding a good solution. A fixed number of iterations ($N$) is used for each run.

Datasets

The paper does not introduce new datasets. Instead, it uses three example applications to demonstrate the effectiveness of their algorithm:

  • Randomly generated QP: A synthetic problem with mixed-Boolean and continuous variables.
  • Hybrid vehicle control: A problem simulating the power management of a hybrid electric vehicle.
  • Power converter control: A problem related to controlling switched-mode power converters.
  • Signal decoding: A problem from MIMO channel signal decoding.

These examples are used to compare their heuristic's performance against commercial solvers like MOSEK.

Key Insights and Ideas

  • ADMM as a Heuristic for Non-Convexity: The paper demonstrates that ADMM, while originally designed for convex problems, can serve as a surprisingly effective heuristic for non-convex MIQPs. This is a significant finding as it leverages a well-established optimization framework for a broader class of problems.
  • Importance of Projection: The ability to efficiently project onto the potentially non-convex sets $X_i$ is key to the algorithm's success. The paper highlights that for simple sets like intervals or integers, these projections are computationally inexpensive.
  • Trade-off between $\rho$ and Solution Quality: The parameter $\rho$ (step size) plays a crucial role. Smaller $\rho$ values can lead to better objective values but may struggle to find feasible points, while larger $\rho$ values tend to find feasible points faster but with potentially higher objective values.
  • Preconditioning for Speed and Robustness: Diagonal scaling (preconditioning) is shown to be vital for improving the convergence rate and the quality of the approximate solution, especially in the non-convex case.

Key Results

  • Computational Speed: The heuristic is significantly faster than commercial solvers like MOSEK for the tested problems. For instance, in the power converter control example, their method found an approximate solution in less than 2 seconds, while MOSEK took over 4 hours.
  • Solution Quality: While not guaranteed to find the global optimum, the heuristic often finds a feasible point with a reasonable objective value. In many cases, it successfully finds the global solution or a solution very close to it (e.g., 1.3% suboptimal for the randomly generated QP).
  • Effectiveness in Embedded Applications: The algorithm's speed and modest computational requirements make it highly suitable for embedded systems, where runtime and memory are critical constraints.

Limitations and Future Work

  • No Global Optimality Guarantee: The paper explicitly states that for non-convex problems, the algorithm is not guaranteed to find the global solution or even converge. This is an inherent limitation of heuristic approaches for NP-hard problems.
  • Parameter Tuning: The performance of the algorithm can be sensitive to parameter choices, particularly $\rho$. The paper suggests running the algorithm multiple times with different initializations and potentially different $\rho$ values to mitigate this.
  • Future Work: The authors mention solution refinement techniques like "polishing" (fixing non-convex variables and solving the resulting convex problem) and introducing "no-good cuts" for binary variables as potential avenues for further improvement. They also note that optimal parameter selection for ADMM is an active research area.

Summary updated

BibTeX
@inproceedings{takapoui2016simple,
  author = {Reza Takapoui and Nicholas Moehle and Stephen P. Boyd and Alberto Bemporad},
  title = {{A simple effective heuristic for embedded mixed-integer quadratic programming}},
  booktitle = {ACC},
  year = {2016},
  doi = {10.1109/acc.2016.7526551},
}
Figure