Conformal Mixed-Integer Constraint Learning with Feasibility Guarantees

Daniel Ovalle, Lorenz T. Biegler, Ignacio E Grossmann, Carl D Laird, Mateo Dulce Rubio

Abstract

Mixed-Integer Constraint Learning (MICL) integrates machine learning models directly into mathematical optimization problems to represent constraints that lack explicit analytical forms. However, optimization solvers are inherently adversarial, often identifying "optimal" solutions that exploit model errors and are infeasible in practice. We introduce Conformal Mixed-Integer Constraint Learning (C-MICL), a novel framework that applies Conformal Prediction to provide rigorous probabilistic feasibility guarantees. C-MICL ensures that solutions satisfy ground-truth constraints with a user-specified probability (e.g., $1-\alpha = 0.95$) while remaining computationally efficient and compatible with standard solvers like Gurobi.

Introduction

In many real-world optimization scenarios, the governing constraints are too complex to model analytically or are only accessible through historical data. This has led to the development of Mixed-Integer Constraint Learning (MICL), where models such as neural networks or tree-based ensembles are embedded as constraints within a Mixed-Integer Program (MIP).

A significant challenge in MICL is the "adversarial" nature of optimization solvers. Solvers systematically search for extreme points, frequently landing in regions where the ML model's predictions are inaccurate. This results in solutions that appear feasible to the model but fail against the ground truth. Existing solutions, such as ensemble-based heuristics (e.g., W-MICL), attempt to mitigate this by requiring consensus among multiple models. However, these methods are computationally expensive, scale poorly, and lack formal statistical guarantees.

Methodology

C-MICL addresses these shortcomings by integrating Conformal Prediction (CP) directly into the optimization constraints. The framework is model-agnostic and supports any architecture representable as a MIP, including ReLU neural networks and gradient-boosted trees.

Regression and Classification Frameworks

For regression tasks, C-MICL employs a two-step approach:

  1. Prediction: A primary model predicts the constraint value.
  2. Uncertainty Estimation: A secondary "residual" model estimates prediction error.
  3. Calibration: Using a calibration dataset, the framework determines a "conformal quantile" or safety margin. The optimization constraint is then reformulated to require that the entire confidence interval around the prediction remains within the feasible region.

For classification tasks, C-MICL operates in the logit space. It defines a conformal score to ensure that only classes meeting a high-probability threshold are included in the feasible set.

MIP Compatibility

Crucially, these conformal constraints are formulated as linear inequalities using "Big-M" reformulations. This ensures that the resulting problem remains a standard MIP, allowing practitioners to leverage the efficiency of modern solvers without significant overhead.

Results and Evaluation

The framework was evaluated on two real-world benchmarks: a chemical engineering problem (Membrane Reactor Design) and a humanitarian logistics problem (Food Basket Design).

Ground-truth feasibility rates across different constraint learning methods. C-MICL (rightmost) consistently meets the target $1-\alpha$ threshold (red line) for various model architectures, unlike baseline MICL and ensemble-based W-MICL methods.

As shown in the figure above, C-MICL consistently achieves the target feasibility rate ($1-\alpha$) across different model types, including ReLU NNs and Gradient Boosting. In contrast, standard MICL and weighted ensemble methods (W-MICL) frequently fail to provide reliable solutions, especially as the solver exploits model weaknesses.

Key findings include:

  • Guaranteed Feasibility: C-MICL met or exceeded target feasibility rates in all tests.
  • Computational Efficiency: In the reactor design study, C-MICL was two orders of magnitude faster than the state-of-the-art W-MICL ensemble heuristic because it requires only one or two models rather than dozens.
  • Performance Trade-off: The cost of reliability is modest; objective values (e.g., total cost) increased by only 7-8% compared to "risky" heuristic methods.

Discussion and Conclusion

C-MICL transforms a model's uncertainty into a statistical "shield" that prevents solvers from exploiting inaccuracies. By moving the computational burden of reliability to an offline calibration step, the framework provides a principled way to trade off optimality for reliability. While C-MICL offers strong guarantees, its performance is still tied to underlying model quality; extremely poor models may lead to overly conservative safety margins. Future work will explore extending this framework to "predict-then-optimize" pipelines and handling multiple simultaneous learned constraints.

Paper Citation: Ovalle, D., Biegler, L. T., Grossmann, I. E., Laird, C. D., & Rubio, M. D. (2025). Conformal Mixed-Integer Constraint Learning with Feasibility Guarantees. arXiv:2506.03531v1 [cs.LG].

Summary updated

BibTeX
@inproceedings{ovalle2025conformal,
  author = {Daniel Ovalle and Lorenz T. Biegler and Ignacio E Grossmann and Carl D Laird and Mateo Dulce Rubio},
  title = {{Conformal Mixed-Integer Constraint Learning with Feasibility Guarantees}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=ZvUZvT8tgg},
}
Figure