Disciplined geometric programming

Akshay Agrawal, Steven Diamond, Stephen P. Boyd

Geometric Programming (GP) has long been a secret weapon for engineers, particularly in circuit design and aerospace. It allows for the optimization of "power-law" relationships that aren't naturally convex but can be made so via a clever logarithmic transformation. However, the strict rules of traditional GP often feel like a straitjacket.

In this paper, Akshay Agrawal, Steven Diamond, and Stephen Boyd introduce Disciplined Geometric Programming (DGP). By providing a formal grammar and an expanded library of "atoms," they've made it possible to solve a much broader class of problems—log-log convex programs—with the same ease and reliability as standard convex optimization.

TL;DR

The authors introduce Disciplined Geometric Programming (DGP), a framework that generalizes Geometric Programming to a much larger class of "log-log convex" problems. By integrating this into CVXPY 1.0, they allow users to solve complex, non-convex problems involving matrix spectral radii and $p$-norms as easily as if they were standard convex programs.

What Problem Does This Paper Address?

Traditional Geometric Programming (GP) is limited to objective and constraint functions that are monomials or posynomials. While powerful, many functions encountered in practice—like the spectral radius of a matrix or certain entropy functions—are "log-log convex" (meaning they become convex after a logarithmic transformation of both the variables and the function value) but do not fit the strict posynomial template.

Before this paper, researchers had to manually perform transformations, verify convexity, and reformulate their problems to fit specific solver requirements. There was no "disciplined" way to build these models, leading to errors and limiting the adoption of these techniques in broader fields like machine learning or finance.

Methods

The authors propose a new class of problems called log-log convex programs (LLCPs).

  1. Log-log Transformation: They define a function $f$ as log-log convex if $F(u) = \log f(e^u)$ is convex.
  2. DGP Grammar: Similar to Disciplined Convex Programming (DCP), DGP relies on a specific "grammar." A problem is DGP-compliant if it is built from a library of "atoms" (functions with known log-log curvature) using a specific composition rule: a log-log convex function of log-log convex functions is itself log-log convex, provided certain monotonicity conditions are met.
  3. Canonicalization: The authors implemented a reduction in CVXPY 1.0 that automatically transforms a DGP problem into a standard convex problem. This involves replacing variables with their logs and functions with their log-log transformations, which the software then passes to a numerical solver.

Datasets

As a theoretical and software-focused paper, it does not use large-scale training datasets. Instead, it validates the approach using:

  • Synthetic Numerical Examples: Specifically, a Perron-Frobenius matrix completion problem where the goal is to fill in missing entries of a positive matrix to minimize its spectral radius.
  • Code Demonstrations: Small-scale "Hello World" optimization problems to illustrate the CVXPY syntax.

Key Insights and Ideas

  • The Hierarchy of Optimization: The paper clearly situates LLCPs in the optimization landscape: $LP \subset GP \subset GGP \subset LLCP$. This shows that DGP is a true superset of existing geometric programming methods.
  • Matrix Atoms: One of the most significant "aha" moments is the realization that several complex matrix functions are log-log convex. For example, the spectral radius ($\lambda_{pf}$) of a positive matrix and the eye-minus-inverse function $(I - X)^{-1}$ are log-log convex. This opens the door to new types of matrix optimization.
  • Automation of the "Log-Sum-Exp" Trick: In traditional GP, sums are handled via the log-sum-exp function. DGP automates this, allowing users to write x + y in their code while the backend handles the non-trivial convex transformation.
  • Extensibility: Because DGP is based on an atom library, it is not a closed system. As new functions are proven to be log-log convex, they can be added to the library to expand the framework's reach.

Key Results

  • Formalization: The paper provides the first formal mathematical framework for "disciplined" log-log convexity.
  • Software Integration: The primary result is the release of DGP support in CVXPY 1.0. This allows engineers to solve LLCPs using high-level, human-readable Python code.
  • Matrix Completion: The authors demonstrate that a $3 \times 3$ matrix completion problem, which is non-convex in its raw form, can be solved to global optimality in milliseconds using the DGP framework.

Limitations and Future Work

  • Positivity Constraint: LLCPs and DGP strictly require all variables to be positive ($x > 0$). This makes the framework unsuitable for problems where variables can be zero or negative without further transformation.
  • Atom Library Size: While the framework is extensible, its utility is currently limited by the number of pre-defined "atoms."
  • Future Directions: The authors suggest that future work could involve identifying more log-log convex atoms in fields like statistics and network theory, and improving the efficiency of the canonicalization process for very large-scale problems.

Summary updated

BibTeX
@article{agrawal2019disciplined,
  author = {Akshay Agrawal and Steven Diamond and Stephen P. Boyd},
  title = {{Disciplined geometric programming}},
  journal = {Optim. Lett.},
  year = {2019},
  doi = {10.1007/s11590-019-01422-z},
}
Figure