Disciplined quasiconvex programming

Akshay Agrawal, Stephen P. BoydOptim. Lett 2020

Abstract

While convex optimization has become a standard tool in various engineering and scientific fields due to its efficiency and reliability, many practical problems fall into the broader category of quasiconvex optimization. Historically, these problems required bespoke solution methods or manual transformations. This paper introduces Disciplined Quasiconvex Programming (DQCP), a formal grammar and set of composition rules that allow for the automated specification and solution of quasiconvex problems. By extending the Disciplined Convex Programming (DCP) framework, the authors provide a systematic way to verify quasiconvexity and solve these problems using a bisection-based approach, now natively supported in CVXPY 1.0.

Introduction

In mathematical optimization, convex problems are highly desirable because any local optimum is guaranteed to be a global optimum, and they can be solved efficiently using interior-point methods. Domain-specific languages (DSLs) like CVXPY have democratized access to these techniques by employing Disciplined Convex Programming (DCP). DCP is a grammar that ensures a problem is convex by construction, allowing the software to automatically transform the problem into a standard form for solvers.

However, a significant class of problems—including those involving efficiency ratios, generalized eigenvalues, and certain discrete-like functions—are not convex but quasiconvex. A function is quasiconvex if its sublevel sets (the sets where the function value is less than or equal to a constant) are convex. While quasiconvex programs (QCPs) are technically non-convex, they retain many of the beneficial properties of convex programs. This paper bridges the gap between the theoretical solvability of QCPs and the practical need for automated software tools.

The DQCP Framework

The core contribution of this work is the formalization of DQCP, which consists of three primary components: a composition theorem, a recursive grammar, and a solution algorithm.

1. Composition Theorem and Grammar

The authors establish a formal rule for determining when the composition of a quasiconvex function with other functions remains quasiconvex. This depends on the monotonicity of the outer function and the curvature (convex, concave, or affine) of the inner functions.

Similar to DCP, the DQCP grammar starts with a library of "atoms"—base functions such as exp, sqrt, or ratio. By applying the composition rules recursively, users can build complex expressions. If an expression follows these rules, it is "DQCP-compliant," providing a mathematical guarantee that the resulting problem is a QCP.

2. Automated Bisection

To solve DQCP-compliant problems, the authors utilize a bisection algorithm. This method leverages the property that the sublevel sets of a quasiconvex function are convex. To minimize a quasiconvex objective $f(x)$, the algorithm checks the feasibility of the constraint $f(x) \leq t$ for various values of $t$. Because this constraint defines a convex set, each check is a standard convex feasibility problem. By iteratively adjusting $t$ using a bisection search, the algorithm converges to the global optimum.

3. Software Implementation

These rules are implemented as a "reduction" layer in CVXPY 1.0. This makes CVXPY the first DSL to support quasiconvex programming natively, allowing users to solve QCPs by simply passing a flag: problem.solve(qcp=True).

Key Insights and Applications

DQCP is designed as a superset of DCP. Every convex problem is inherently quasiconvex, meaning DQCP extends the capabilities of existing tools without replacing them. This allows users to mix convex and quasiconvex expressions seamlessly within the same model.

One of the most significant insights of the paper is the ability to handle functions that appear discrete or non-smooth. For example, the "length" of a vector (defined as the index of the last non-zero element) is a quasiconvex function. DQCP can solve problems involving such functions, which were previously difficult to handle in a continuous optimization framework.

Practical applications demonstrated in the paper include:

  • Ratio Optimization: Minimizing the ratio of a convex function to a concave function, a common requirement in economics and fractional programming.
  • Generalized Eigenvalue Problems: Solving matrix completion problems where the objective involves minimizing the maximum generalized eigenvalue of a matrix pair.
  • Minimum Length Least Squares: Finding the "shortest" vector in terms of its index that satisfies specific residual constraints.

Limitations and Future Work

While DQCP significantly expands the reach of automated optimization, it has limitations. Like DCP, the DQCP grammar provides a sufficient but not necessary condition for quasiconvexity; some valid QCPs may not be recognized if they are not formulated according to the specific grammar rules.

Furthermore, the bisection method is computationally more expensive than solving a single convex problem, typically requiring 10 to 30 iterations of a convex solver. The method also requires an initial interval $[\alpha, \beta]$ known to contain the optimal value. While the authors provide heuristics for finding these bounds, poorly scaled or unbounded problems may still pose challenges. Future research may focus on developing specialized solvers that can handle QCPs more directly, potentially bypassing the need for iterative bisection.

Summary updated

BibTeX
@article{agrawal2020disciplined,
  author = {Akshay Agrawal and Stephen P. Boyd},
  title = {{Disciplined quasiconvex programming}},
  journal = {Optim. Lett.},
  year = {2020},
  doi = {10.1007/s11590-020-01561-8},
}
Figure