Introduction: The Challenge of Nonlinear Optimization
In formal verification, Satisfiability Modulo Theories (SMT) determines if a set of constraints has a solution. Optimization Modulo Theories (OMT) extends this by searching for the optimal solution according to an objective function. When constraints involve nonlinear polynomials (e.g., $x^2 + y^2 = 1$), the problem becomes significantly more complex. The "perfect" answer might be an irrational number (like $-\sqrt{2}$) or a value infinitely close to a boundary (an infinitesimal).
Existing solvers, such as OptiMathSAT, typically rely on "incremental linearization," approximating curves with straight lines. While efficient, this approach is incomplete: it cannot precisely represent irrational optima and may enter infinite loops of rational approximations without ever reaching the exact target.
The CDCL(OCAC) Framework
To address these limitations, researchers developed CDCL(OCAC), which integrates a novel Optimization Cylindrical Algebraic Covering (OCAC) technique into the standard Conflict-Driven Clause Learning (CDCL) framework.
The algorithm employs several key technical components:
- Objective-to-Variable Transformation: The objective function is transformed into a new variable, $x_t$. The solver then prioritizes $x_t$ in its search order to drive optimization.
- Cylindrical Algebraic Covering (CAC): Unlike traditional, computationally expensive Cylindrical Algebraic Decomposition (CAD), CAC identifies specific "cells" or intervals in the search space that are satisfiable or unsatisfiable.
- Projection Operators: These tools define the exact boundaries of satisfiable regions as roots of polynomials, enabling the solver to handle irrational numbers precisely.
- Cutting Lemmas: When a temporary optimum is found, the solver generates a "cutting lemma" (e.g., $x_t < current\_best$) to prune the remaining search space globally.
Experimental Evaluation
Due to a lack of standardized OMT(NRA) benchmarks, the authors curated a dataset of 15,532 instances derived from the SMT-LIB (QF_NRA) library. They added five types of minimization functions (e.g., $x+y$, $x^2+y^2$) with variables selected randomly. The resulting test suite included instances with up to 29 variables, covering 92% of the original SMT-LIB satisfiable instances.
Key Results and Performance
The CDCL(OCAC) algorithm was integrated into the CVC5 solver and compared against OptiMathSAT and other variants. The results demonstrated a significant leap in both capability and precision.
Key findings include:
- Superior Coverage: CDCL(OCAC) solved 150% more instances than OptiMathSAT.
- Handling Irrationals: In cases where the optimum was a Real Algebraic Number (RAN), CDCL(OCAC) solved nearly 1,000 instances. In contrast, OptiMathSAT solved zero, as its linearization method cannot represent these values exactly.
- Scalability: While simpler solvers were faster on trivial problems, CDCL(OCAC) showed much better scalability as problem difficulty increased.
Conclusion
CDCL(OCAC) represents the first sound and complete algorithm for OMT(NRA). By treating optimization as a series of refined satisfiability checks driven by algebraic lemmas, it overcomes the precision barriers of previous approximation-based methods. Future work will focus on improving scalability beyond the current 30-variable limit and developing standardized community benchmarks for OMT.
Summary updated