Abstract: In this paper, we introduce disciplined convex-concave programming (DCCP), which combines the ideas of disciplined convex programming (DCP) with convex-concave programming (CCP). Convex-concave programming is an organized heuristic for solving nonconvex problems that involve objective and constraint functions that are a sum of a convex and a concave term. DCP is a structured way to define convex optimization problems, based on a family of basic convex and concave functions and a few rules for combining them. Problems expressed using DCP can be automatically converted to standard form and solved by a generic solver. We propose a framework that combines the two ideas and includes two improvements over previously published work on convex-concave programming: the handling of function domains and the issue of nondifferentiability on the boundary of those domains. We describe a Python implementation called DCCP, which extends CVXPY, and provide several examples.
Introduction
In the field of mathematical optimization, convex problems are considered tractable because reliable solvers can find global optima efficiently. However, many real-world applications—ranging from robotics collision avoidance to signal processing—are fundamentally nonconvex. A popular heuristic for these challenges is the Convex-Concave Procedure (CCP). CCP addresses "Difference of Convex" (DC) problems by linearizing concave components to create a sequence of convex approximations.
Despite its utility, standard CCP suffers from two major friction points: it requires significant manual effort to calculate gradients and manage iterations, and it is fragile. Specifically, standard CCP often fails if an intermediate step moves a variable outside the mathematical domain of a function (e.g., the log of a negative number) or encounters a point where the function is not differentiable.
The DCCP Framework
Disciplined Convex-Concave Programming (DCCP) bridges the gap between the ease of use of convex optimization and the power of nonconvex heuristics. By applying the "disciplined" modeling philosophy of CVXPY to nonconvex problems, DCCP automates the linearization process and introduces robust mechanisms to handle common failure modes.
Automatic Linearization
By leveraging a library of "atoms" (basic functions like sqrt, log, or norm) with known properties, the DCCP framework automatically generates the necessary linearizations. If the software identifies a function as concave, it can precisely bound it from above with a linear approximation without user intervention.
Domain-Restricted Linearization and Damped Steps
To prevent solver crashes, the authors incorporate the indicator function of a function's domain into the linearization. This ensures the solver does not step outside the valid domain of functions like log(x). Additionally, when the algorithm encounters a boundary where a gradient does not exist, it employs a "damped step"—a weighted average of current and previous points—to pull the iterate back into the interior of the domain where the mathematics remain well-behaved.
Penalty CCP
To handle infeasible starting points, DCCP utilizes a penalty method. This approach gradually increases the cost of violating constraints until a feasible solution is identified, making the heuristic more resilient to initialization.
Applications and Benchmarks
The DCCP framework was evaluated across a diverse set of simulated benchmarks and engineering problems:
- Sparse Recovery: Using a nonconvex $\ell_{1/2}$ "norm," DCCP demonstrated a significantly higher probability of successful signal recovery compared to the standard convex $\ell_1$ approach.
- Boolean Least Squares: DCCP achieved bit error rates nearly identical to global optimal solvers (such as MOSEK) but with substantially lower computational overhead.
- Path Planning and Control: The framework successfully navigated complex multi-agent trajectories and collision avoidance scenarios that are difficult to specify using standard convex programming.
- Circle Packing: The tool was used to arrange non-overlapping circles within a minimum-area square, demonstrating its utility in geometric optimization.
Conclusion
DCCP transforms a mathematically dense procedure into a user-friendly tool, allowing researchers to solve complex nonconvex problems with a single line of code: prob.solve(method='dccp'). While DCCP remains a heuristic that finds local rather than global optima, its domain awareness and automated linearization make it a robust and accessible choice for practical optimization. Future work may address the challenges of high-dimensional initialization and native support for complex variables.
Summary updated