Learning to Optimize for Mixed-Integer Non-linear Programming with Feasibility Guarantees

Bo Tang, Elias Boutros Khalil, Jan DrgonaDiffCoALG @ NeurIPS 2025

TL;DR

This paper introduces a novel learning-to-optimize (L2O) framework for solving complex mixed-integer nonlinear programs (MINLPs), which are common in real-world applications but notoriously hard to solve. The key innovation is a data-driven approach that not only learns to find good solutions but also guarantees their feasibility and integrality, achieving significant speedups over traditional solvers.

What Problem Does This Paper Address?

Mixed-integer nonlinear programs (MINLPs) are a class of optimization problems that combine discrete decisions (like "yes/no" choices) with continuous variables and nonlinear relationships. These problems appear in critical areas such as energy system optimization, chemical process design, and financial portfolio management. However, solving MINLPs is computationally very challenging, especially for large-scale problems. Existing methods often struggle with either finding feasible solutions, ensuring integer constraints are met, or doing so efficiently. While machine learning has shown promise in accelerating optimization (learning-to-optimize or L2O), extending these techniques to MINLPs, which require strict adherence to both integer and nonlinear constraints, has been a significant hurdle. This paper aims to bridge this gap by developing an L2O framework that can handle these complexities and provide guaranteed feasible integer solutions.

Methods

The proposed framework is a "solver-free" L2O approach, meaning it doesn't rely on traditional optimization solvers during inference. It consists of two main components:

  1. Integer Correction Layers: These are novel neural network layers designed to handle the discrete nature of integer variables. They adaptively determine how to round continuous outputs from a relaxed solution mapping to produce integer values. Two variants are proposed:
  2. Rounding Classification (RC): Uses a probabilistic approach to decide rounding.
  3. Learnable Threshold (LT): Learns instance-specific thresholds to guide rounding. Both layers use techniques like the Straight-Through Estimator (STE) to allow gradients to flow through these discrete operations during training.

  4. Integer Feasibility Projection: Since the soft-constrained training objective might not always guarantee full feasibility, an iterative projection step is applied at inference time. This procedure refines an initial integer solution by alternating between applying the integer correction layers and using gradient-based updates to reduce constraint violations. This process is designed to be lightweight and efficient.

The entire framework is trained in a self-supervised manner, optimizing a loss function that balances objective value and constraint violations, without requiring optimal solutions as training data.

Datasets

The paper evaluates its framework on three families of benchmark problems:

  • Integer Quadratic Problems (IQPs): Standard problems with quadratic objectives and linear constraints, adapted for mixed-integer settings.
  • Integer Non-convex Problems (INPs): Similar to IQPs but with a non-convex objective function (using sine terms).
  • Mixed-Integer Rosenbrock Problems (MIRBs): A parametric family designed to scale to tens of thousands of variables, with parameters controlling the shape of the objective and the feasible region.

Additionally, the methods are evaluated on Binary Linear Programs (BLPs) from the MIP Workshop 2023 Computational Competition to assess performance beyond nonlinear settings.

Key Insights and Ideas

  • Guaranteed Feasibility and Integrality: The most significant insight is the development of an L2O method that guarantees both integer feasibility and constraint satisfaction, a major challenge in applying ML to optimization.
  • Learned Rounding: Moving beyond fixed rounding heuristics, the integer correction layers learn adaptive strategies for handling discrete variables, conditioned on the specific problem instance.
  • Efficient Inference-Time Projection: The feasibility projection is a lightweight, iterative process that significantly improves constraint satisfaction without the computational burden of traditional solvers.
  • Scalability to Large Problems: The framework demonstrates remarkable scalability, successfully handling MINLPs with tens of thousands of variables, a feat often intractable for traditional methods.

Key Results

  • Speedup: The proposed methods (RC-P and LT-P) achieve solutions within milliseconds, offering orders of magnitude speedup compared to exact solvers (EX) which can take thousands of seconds or fail to find solutions.
  • Feasibility: RC-P and LT-P achieve 100% feasibility across many benchmark instances, especially for larger and more complex problems where other methods struggle. For example, in MIRBs, RC and LT feasibility degrades at larger scales, but RC-P and LT-P maintain 100% feasibility.
  • Solution Quality: The learning-based methods often match or surpass the objective values of exact solvers, while significantly outperforming heuristic baselines in terms of both feasibility and solution quality.
  • Generalization: Trained models generalize well to unseen problem instances, making them ideal for parametric problems where the same model structure is solved repeatedly.

Limitations and Future Work

  • Theoretical Guarantees: The current theoretical guarantees apply primarily to inequality-constrained MINLPs and rely on specific regularity assumptions. Extending these guarantees to equality constraints and exploring more general assumptions is a future direction.
  • Hybrid Architectures: The authors suggest exploring hybrid approaches that combine their framework with differentiable optimization layers, variable completion techniques, or domain-specific architectures to further enhance feasibility and generalization.
  • Differentiable Projection: While the projection is applied at inference, the paper notes that differentiating through this projection could potentially be integrated into end-to-end training, though this presents significant technical challenges.
  • Non-isolated Critical Points: While the framework generally avoids infeasible critical points, the paper acknowledges that degenerate or flat saddles, though rare, remain an open challenge and might require additional techniques like randomness or second-order methods for guaranteed escape.

Summary updated

BibTeX
@inproceedings{tang2025learning,
  author = {Bo Tang and Elias Boutros Khalil and Jan Drgona},
  title = {{Learning to Optimize for Mixed-Integer Non-linear Programming with Feasibility Guarantees}},
  booktitle = {DiffCoALG @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=o8nHQRJU92},
}
Figure