DC3: A learning method for optimization with hard constraints
Priya L. Donti, David Rolnick, J. Zico Kolter
Abstract
Large optimization problems with hard constraints arise in many settings, yet classical solvers are often prohibitively slow, motivating the use of deep networks as cheap "approximate solvers." Unfortunately, naive deep learning approaches typically cannot enforce the hard constraints of such problems, leading to infeasible solutions. In this work, we present Deep Constraint Completion and Correction (DC3), an algorithm to address this challenge. Specifically, this method enforces feasibility via a differentiable procedure, which implicitly completes partial solutions to satisfy equality constraints and unrolls gradient-based corrections to satisfy inequality constraints. We demonstrate the effectiveness of DC3 in both synthetic optimization tasks and the real-world setting of AC optimal power flow, where hard constraints encode the physics of the electrical grid. In both cases, DC3 achieves near-optimal objective values while preserving feasibility.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
58 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
Cited by top-tier papers58
- Characterizing possible failure modes in physics-informed neural networksAditi S. Krishnapriyan, Amir Gholami, Shandian Zhe, Robert M. Kirby et al.NeurIPS 2021 · 1,421 citations
- Model-Based Domain GeneralizationAlexander Robey, George J. Pappas, Hamed HassaniNeurIPS 2021 · 167 citations
- On the Constrained Time-Series Generation ProblemAndrea Coletta, Sriram Gopalakrishnan, Daniel Borrajo, Svitlana VyetrenkoNeurIPS 2023 · 92 citations
- Self-Supervised Primal-Dual Learning for Constrained OptimizationSeonho Park, Pascal Van HentenryckAAAI 2023 · 81 citations
- Deep Equilibrium Approaches to Diffusion ModelsAshwini Pokle, Zhengyang Geng, J. Zico KolterNeurIPS 2022 · 61 citations
Builds on1
Related papers
- Ensuring DNN Solution Feasibility for Optimization Problems with Linear ConstraintsTianyu Zhao, Xiang Pan, Minghua Chen, Steven H. LowICLR 2023
- Neural Fields with Hard Constraints of Arbitrary Differential OrderFangcheng Zhong, Kyle Fogarty, Param Hanji, Tianhao Wu et al.NeurIPS 2023 · 10 citations
- Enforcing Hard Linear Constraints in Deep Learning Models with Decision RulesGonzalo E. Constante, Hao Chen, Can LiNeurIPS 2025 · 13 citations
- Predicting AC Optimal Power Flows: Combining Deep Learning and Lagrangian Dual MethodsFerdinando Fioretto, Terrence W. K. Mak, Pascal Van HentenryckAAAI 2020 · 250 citations
- Optimization Proxies using Limited Labeled Data and Training Time - A Semi-Supervised Bayesian Neural Network ApproachParikshit Pareek, Abhijith Jayakumar, Kaarthik Sundar, Sidhant Misra et al.ICML 2025
