Exact Continuous Reformulations of Logic Constraints in Nonlinear Optimization and Optimal Control Problems
Jad Wehbeh, Eric C. Kerrigan
TL;DR
The paper tackles the challenge of integrating discrete logic into nonlinear optimization and optimal control without relying on binary variables. It introduces an exact reformulation that transforms logic constraints into binary-free, differentiable expressions by converting to CNF, recasting as max-min constraints, and applying a smoothing step. This results in an NLP-ready formulation with $r$-differentiability and linear growth in constraint count, demonstrated on a quadrotor with obstacle logic and a two-tank system with temporal logic, where it outperforms traditional binary-based methods in success rate and speed. The approach facilitates direct use of standard nonlinear solvers for logic-constrained problems and highlights the trade-offs linked to the choice of logical representation and problem size, suggesting broad applicability to nonlinear OCPs with moderate logical complexity.
Abstract
Many nonlinear optimal control and optimization problems involve constraints that combine continuous dynamics with discrete logic conditions. Standard approaches typically rely on mixed-integer programming, which introduces scalability challenges and requires specialized solvers. This paper presents an exact reformulation of broad classes of logical constraints as binary-variable-free expressions whose differentiability properties coincide with those of the underlying predicates, enabling their direct integration into nonlinear programming models. Our approach rewrites arbitrary logical propositions into conjunctive normal form, converts them into equivalent max--min constraints, and applies a smoothing procedure that preserves the exact feasible set. The method is evaluated on two benchmark problems, a quadrotor trajectory optimization with obstacle avoidance and a hybrid two-tank system with temporal logic constraints, and is shown to obtain optimal solutions more consistently and efficiently than existing binary variable elimination techniques.
