Balans: Multi-Armed Bandits-based Adaptive Large Neighborhood Search for Mixed-Integer Programming Problems
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 2566-2574.
https://doi.org/10.24963/ijcai.2025/286
Keywords
- Machine Learning: ML: Multi-armed bandits
- Constraint Satisfaction and Optimization: CSO: Mixed discrete and continuous optimization
- Constraint Satisfaction and Optimization: CSO: Solvers and tools
Abstract
Mixed-integer programming (MIP) is a powerful paradigm for modeling and solving various important combinatorial optimization problems. Recently, learning-based approaches have shown a potential to speed up MIP solving via offline training that then guides important design decisions during the search. However, a significant drawback of these methods is their heavy reliance on offline training, which requires collecting training datasets and computationally costly training epochs yet offering only limited generalization to unseen (larger) instances. In this paper, we propose Balans, an adaptive meta-solver for MIPs with online learning capability that does not require any supervision or apriori training. At its core, Balans is based on adaptive large-neighborhood search, operating on top of an MIP solver by successive applications of destroy and repair neighborhood operators. During the search, the selection among different neighborhood definitions is guided on the fly for the instance at hand via multi-armed bandit algorithms. Our extensive experiments on hard optimization instances show that Balans offers significant performance gains over the default MIP solver, is better than committing to any single best neighborhood, and improves over the state-of-the-art large-neighborhood search for MIPs. Finally, we release Balans as a highly configurable, MIP solver agnostic, open-source software.
- [Achterberg et al., 2012] Tobias Achterberg, Timo Berthold, and Gregor Hendel. Rounding and propagation heuristics for mixed integer programming. In Operations Research Proceedings 2011: Selected Papers of the International Conference on Operations Research (OR 2011), August 30-September 2, 2011, Zurich, Switzerland, pages 71-76. Springer, 2012.
- [Almeida et al., 2020] Carolina P Almeida, Richard A Gonc ¸alves, Sandra Venske, Ricardo Lüders, and Myriam Delgado. Hyper-heuristics using multi-armed bandit mod- els for multi-objective optimization. Applied Soft Comput- ing, 95:106520, 2020.
- [Attieh et al., 2019] Saad Attieh, Nguyen Dang, Christopher Jefferson, Ian Miguel, and Peter Nightingale. Athanor: high-level local search over abstract constraint specifica- tions in essence. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence (IJCAI-19). International Joint Conferences on Artificial Intelligence, 2019. IJCAI
- [Auer et al., 2002] Peter Auer, Nicolo Cesa-Bianchi, and Paul Fischer. Finite-time analysis of the multiarmed bandit problem. Machine learning, 47:235-256, 2002.
- [Bengio et al., 2021] Yoshua Bengio, Andrea Lodi, and An- toine Prouvost. Machine learning for combinatorial op- timization: A methodological tour d'horizon. European Journal of Operational Research, 290(2):405-421, 2021.
- [Berthold, 2006] Timo Berthold. Primal heuristics for mixed integer programs. PhD thesis, Zuse Institute Berlin (ZIB), 2006.
- [Berthold, 2014] Timo Berthold. Rens: the optimal round- ing. Mathematical Programming Computation, 6:33-54, 2014.
- [Bolusani et al., 2024] Suresh Bolusani, Mathieu Besanc ¸on, Ksenia Bestuzheva, Antonia Chmiela, João Dionísio, Tim Donkiewicz, Jasper van Doornmalen, Leon Eifler, Mo- hammed Ghannam, Ambros Gleixner, et al. The scip optimization suite 9.0. arXiv preprint arXiv:2402.17702, 2024.
- [Cai et al., 2024a] Junyang Cai, Taoan Huang, and Bistra Dilkina. Learning backdoors for mixed integer programs with contrastive learning. arXiv e-prints, pages arXiv- 2401, 2024.
- [Cai et al., 2024b] Junyang Cai, Taoan Huang, and Bis- tra Dilkina. Multi-task representation learning for mixed integer linear programming. arXiv preprint arXiv:2412.14409, 2024.
- [Cai et al., 2024c] Junyang Cai, Serdar Kadioglu, and Bis- tra Dilkina. Balans: Multi-armed bandits-based adap- tive large neighborhood search for mixed-integer program- ming problem. arXiv preprint arXiv:2412.14382, 2024.
- [Chmiela et al., 2021] Antonia Chmiela, Elias Khalil, Am- bros Gleixner, Andrea Lodi, and Sebastian Pokutta. Learn- ing to schedule heuristics in branch and bound. Advances in Neural Information Processing Systems, 34:24235- 24246, 2021.
- [Chmiela et al., 2023] Antonia Chmiela, Ambros Gleixner, Pawel Lichocki, and Sebastian Pokutta. Online learning for scheduling mip heuristics. In International Confer- ence on Integration of Constraint Programming, Artificial Intelligence, and Operations Research, pages 114-123. Springer, 2023.
- [Danna et al., 2005] Emilie Danna, Edward Rothberg, and Claude Le Pape. Exploring relaxation induced neighbor- hoods to improve mip solutions. Mathematical Program- ming, 102:71-90, 2005.
- [Ding et al., 2020] Jian-Ya Ding, Chao Zhang, Lei Shen, Shengyin Li, Bing Wang, Yinghui Xu, and Le Song. Ac- celerating primal solution findings for mixed integer pro- grams based on solution prediction. In Proceedings of the aaai conference on artificial intelligence, volume 34, pages 1452-1459, 2020.
- [Fischetti and Lodi, 2003] Matteo Fischetti and Andrea Lodi. Local branching. Mathematical programming, 98:23-47, 2003.
- [Fischetti and Monaci, 2014] Matteo Fischetti and Michele Monaci. Proximity search for 0-1 mixed-integer convex programming. Journal of Heuristics, 20:709-731, 2014.
- [Ghosh, 2007] Shubhashis Ghosh. Dins, a mip improvement heuristic. In International Conference on Integer Pro- gramming and Combinatorial Optimization, pages 310- 323. Springer, 2007.
- [Gleixner et al., 2021] Ambros Gleixner, Gregor Hendel, Gerald Gamrath, Tobias Achterberg, Michael Bastubbe, Timo Berthold, Philipp Christophel, Kati Jarck, Thorsten Koch, Jeff Linderoth, et al. Miplib 2017: data- driven compilation of the 6th mixed-integer program- ming library. Mathematical Programming Computation, 13(3):443-490, 2021.
- [Gurobi, 2024] Gurobi. Gurobi Optimizer Reference Man- ual, 2024. Accessed: 2024-08-10.
- [He et al., 2014] He He, Hal Daume III, and Jason M Eisner. Learning to search in branch and bound algorithms. In Z. Ghahramani, M. Welling, C. Cortes, N. Lawrence, and K.Q. Weinberger, editors, Advances in Neural Information Processing Systems, volume 27.
- Curran Associates, Inc., 2014.
- [Hendel, 2022] Gregor Hendel. Adaptive large neighbor- hood search for mixed integer programming. Mathemati- cal Programming Computation, 14(2):185-221, 2022.
- [Huang et al., 2023a] Taoan Huang, Aaron Ferber, Yuan- dong Tian, Bistra Dilkina, and Benoit Steiner. Local branching relaxation heuristics for integer linear programs. In International Conference on Integration of Constraint Programming, Artificial Intelligence, and Operations Re- search, pages 96-113. Springer, 2023.
- [Huang et al., 2023b] Taoan Huang, Aaron M Ferber, Yuan- dong Tian, Bistra Dilkina, and Benoit Steiner. Searching large neighborhoods for integer linear programs with con- trastive learning. In International Conference on Machine Learning, pages 13869-13890.
- PMLR, 2023.
- [Huang et al., 2024] Weimin Huang, Taoan Huang, Aaron M Ferber, and Bistra Dilkina. Distributional miplib: a multi- domain library for advancing ml-guided milp methods. arXiv preprint arXiv:2406.06954, 2024.
- [Kadioglu and Kleynhans, 2024] Serdar Kadioglu and Bernard Kleynhans. Building higher-order abstractions from the components of recommender systems. In
- Michael J. Wooldridge, Jennifer G. Dy, and Sriraam Natarajan, editors, Thirty-Eighth AAAI Conference on Ar- tificial Intelligence, AAAI 2024, Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence, IAAI 2024, Fourteenth Symposium on Educational Advances in Artificial Intelligence, EAAI 2014, February 20-27, 2024, Vancouver, Canada, pages 22998-23004. AAAI Press, 2024.
- [Kadioglu et al., 2011] Serdar Kadioglu, Yuri Malitsky, Ashish Sabharwal, Horst Samulowitz, and Meinolf Sell- mann. Algorithm selection and scheduling. In Jimmy Ho- Man Lee, editor, Principles and Practice of Constraint Programming -CP 2011 -17th International Conference, CP 2011, Perugia, Italy, September 12-16, 2011. Proceed- ings, volume 6876 of Lecture Notes in Computer Science, pages 454-469. Springer, 2011.
- [Khalil et al., 2016] Elias Khalil, Pierre Le Bodic, Le Song, George Nemhauser, and Bistra Dilkina. Learning to branch in mixed integer programming. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 30, 2016.
- [Khalil et al., 2017] Elias B Khalil, Bistra Dilkina, George L Nemhauser, Shabbir Ahmed, and Yufen Shao. Learning to run heuristics in tree search. In Ijcai, pages 659-666, 2017. IJCAI
- [Kuleshov and Precup, 2014] Volodymyr Kuleshov and Doina Precup. Algorithms for multi-armed bandit problems. CoRR, abs/1402.6028, 2014.
- Ailsa H Land and Alison G Doig. An automatic method for solving discrete programming prob- lems. Springer, 2010.
- [Lodi and Zarpellon, 2017] Andrea Lodi and Giulia Zarpel- lon. On learning and branching: a survey. Top, 25(2):207- 236, 2017.
- [Luce, 1977] R Duncan Luce. The choice axiom after twenty years. Journal of mathematical psychology, 15(3):215- 233, 1977.
- [Phan et al., 2024] Thomy Phan, Taoan Huang, Bistra Dilk- ina, and Sven Koenig. Adaptive anytime multi-agent path finding using bandit-based large neighborhood search. In Proceedings of the AAAI Conference on Artificial Intelli- gence, volume 38, pages 17514-17522, 2024.
- [Pisinger and Ropke, 2019] David Pisinger and Stefan Ropke. Large neighborhood search. Handbook of metaheuristics, pages 99-127, 2019.
- [Rothberg, 2007] Edward Rothberg. An evolutionary algo- rithm for polishing mixed integer programming solutions. INFORMS Journal on Computing, 19(4):534-541, 2007.
- [Schaul et al., 2019] Tom Schaul, Diana Borsa, David Ding, David Szepesvari, Georg Ostrovski, Will Dabney, and Si- mon Osindero. Adapting behaviour for learning progress. arXiv preprint arXiv:1912.06910, 2019.
- [Song et al., 2020] Jialin Song, Ravi Lanka, Yisong Yue, and Bistra Dilkina. A general large neighborhood search framework for solving integer programs. In Annual Conference on Neural Information Processing Systems (NeurIPS), 2020.
- [Sonnerat et al., 2021] Nicolas Sonnerat, Pengming Wang, Ira Ktena, Sergey Bartunov, and Vinod Nair. Learning a large neighborhood search algorithm for mixed integer programs. arXiv preprint arXiv:2107.10201, 2021.
- [Strong et al., 2019] Emily Strong, Bernard Kleynhans, and Serdar Kadioglu. Mabwiser: A parallelizable contextual multi-armed bandit library for python. In 31st IEEE Inter- national Conference on Tools with Artificial Intelligence, ICTAI 2019, Portland, OR, USA, November 4-6, 2019, pages 909-914. IEEE, 2019.
- [Strong et al., 2021] Emily Strong, Bernard Kleynhans, and Serdar Kadioglu. MABWiser: parallelizable contex- tual multi-armed bandits. Int. J. Artif. Intell. Tools, 30(4):2150021:1-2150021:19, 2021.
- [Thompson, 1933] William R Thompson. On the likelihood that one unknown probability exceeds another in view of the evidence of two samples. Biometrika, 25(3-4):285- 294, 1933.
- [Tong et al., 2024] Jiatai Tong, Junyang Cai, and Thiago Serra. Optimization over trained neural networks: Taking a relaxing walk. In International Conference on the Inte- gration of Constraint Programming, Artificial Intelligence, and Operations Research, pages 221-233. Springer, 2024.
- [Vermorel and Mohri, 2005] Joannes Vermorel and Mehryar Mohri. Multi-armed bandit algorithms and empirical eval- uation. In European conference on machine learning, pages 437-448. Springer, 2005.
- [Wouda and Lan, 2023] Niels A. Wouda and Leon Lan. ALNS: a Python implementation of the adaptive large neighbourhood search metaheuristic. Journal of Open Source Software, 8(81):5028, 2023.
- [Wu et al., 2021] Yaoxin Wu, Wen Song, Zhiguang Cao, and Jie Zhang. Learning large neighborhood search policy for integer programming. Advances in Neural Information Processing Systems, 34:30075-30087, 2021.
- [Zheng et al., 2022] Jiongzhi Zheng, Kun He, Jianrong Zhou, Yan Jin, Chu-Min Li, and Felip Manya. Band- maxsat: A local search maxsat solver with multi-armed bandit. arXiv preprint arXiv:2201.05544, 2022. IJCAI
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
Mixed-integer programming (MIP) can model many important combinatorial optimization problems, and hence, improving the efficiency of MIP solving is of great practical and theoretical interest. Broadly, solving MIPs falls under two main classes of algorithms: exact and meta-heuristic methods. For exact methods, branch-and-bound [Land and Doig, 2010], and its extensions, are at the core of solving MIPs to optimality. When proving optimality is beyond reach, metaheuristics, such as Large Neighborhood Search (LNS), offer an attractive alternative for finding good solutions and increasing scalability.
Incorporating learning-based methods into MIP solving has shown great potential to improve exact and heuristic methods. For exact branch-and-bound based methods, these include learning to branch [Bengio et al., 2021; Khalil et al., 2016; Lodi and Zarpellon, 2017; Cai et al., 2024a], and node selection [He et al., 2014]. For meta-heuristics, these include predicting and searching for solutions [Ding et al., 2020; Cai et al., 2024b], integrating machine learning into LNS on top of MIP solvers [Song et al., 2020; Huang et al., 2023b], and learning to schedule heuristics within the branch-andbound search tree [Khalil et al., 2017; Chmiela et al., 2021; Hendel, 2022].
The significant drawback of these learning-guided methods is their heavy dependency on offline training. Training is computationally costly, depends on carefully curating training datasets with desired properties and distributions, and has limited generalization. Moreover, training might even depend on using exact solvers in the first place to create the supervised datasets, which defeats the purpose of improving solving for very hard instances. Adapting offline learning-based methods to new distributions and domains remains a challenge, and hence, on-the-fly or online learning approaches to MIP solving are a much-needed alternative. This is exactly what we study in this paper.
In this paper, we focus on solving MIPs via online adaptive methods that do not depend on any offline training. Recent research has shown the potential of meta-solvers that embed a MIP solver within LNS [Song et al., 2020; Tong et al., 2024] and consequently achieve better performance than default MIP via LNS(MIP). The state-of-the-art in this line of research is based on a single neighborhood definition, referred to as local branching relaxation [Huang et al., 2023a]. However, the previous work showing that offline learning can improve LNS [Song et al., 2020; Huang et al., 2023b] suffers from the above-mentioned limitations. We take the idea of machine learning-guided LNS for MIP further and propose a meta-solver based on Adaptive LNS (ALNS) operating on a MIP solver, i.e., ALNS(MIP), composed of a diverse set of neighborhood definitions that are driven by multi-armed bandits online learning policy.
This is, however, non-trivial since online learning is hard, but given the significant drawbacks of offline learning, it must be tackled on the fly, adaptively for the specific instance at hand. We show how to cast this as a multi-armed bandit problem that treats adaptive neighborhoods as different arm choices with unknown reward distributions to be estimated during the search. Bringing these components together, we propose BALANS, an online meta-solver for MIPs using multi-armed Bandits-based Adaptive Large Neighborhood Search operating across a diverse set of neighborhoods.

Our main findings and contributions are as follows:
- We show that the performance of our bandit-based ALNS(MIP), carefully implemented in our BALANS solver, significantly improves the default MIP solver SCIP [Bolusani et al., 2024], outperforms LNS(MIP) that commits to any single neighborhood, and improves over the previous state-of-the-art LNS(MIP) approach on hard instances of optimization problems from different application domains.
- We show that our bandit-based ALNS(MIP) rarely depends on the single best neighborhood and instead improves the performance by exploring and sequencing other weaker neighborhoods.
- We perform ablation studies to show i) BALANS is solver agnostic by performing the same set of experiments on a different MIP solver Gurobi [Gurobi, 2024], and ii), BALANS is highly different from scheduling heuristics within the BnB tree [Hendel, 2022].
- Finally, we release BALANS 1 as an open-source metasolver for conducting ALNS(MIP) available to other researchers and practitioners with a one-liner from PyPI 2 .
More broadly, our BALANS solver subsumes the previous literature on LNS(MIP) when run with a single neighborhood while serving as a highly configurable, modular, and extensible integration technology at the intersection of adaptive search, meta-heuristics, multi-armed bandits, and mixedinteger programming.
1 https://github.com/skadio/balans
2 pip install balans
In the following, let us start with a brief background and present our approach, followed by experimental results, discussions, and related work.
2 Background
Mixed-Integer Programming (MIP): We deal with MIP solving that formulates optimization problems of the form:
where f(x) is the objective function, and A ∈ Rm×n , b ∈ Rm, c ∈ Rn , and the non-empty set I ⊆ 1, ..., n indexes the integer variables.
The Linear Programming (LP) relaxation of a MIP xlp is obtained by relaxing integer variables to continuous variables, i.e., by replacing the integer constraint xj ∈ Z ∀j ∈ I to xj ∈ R ∀j ∈ I. The LP relaxation is an essential part of the branch-and-bound (BnB) algorithm, and many destroy operators are used in large-neighborhood searches.
(Adaptive) Large-Neighborhood Search (LNS / ALNS): LNS is a meta-heuristic that starts with an initial solution and then iteratively destroys and repairs a part of the solution until hitting a stopping condition [Pisinger and Ropke, 2019]. When applied to MIPs, LNS(MIP), we first generate an initial solution, typically found by running BnB for a short time. This becomes the starting point of LNS. In iteration t ≥ 1, given the solution of the previous state, xt-1, a sub-MIP is created by a destroy heuristic. The re-optimized solution to this sub-MIP, xt, then becomes the candidate for the next state, decided by an accepted criterion. Adaptive LNS (ALNS) is defined by multiple destroy heuristics to choose from at each iteration, thereby extending LNS(MIP) to ALNS(MIP).
Multi-Armed Bandits (MAB): MAB algorithms [Vermorel and Mohri, 2005] is a class of reinforcement learning aimed at solving online sequential decision-making problems. In MAB, each arm defines a decision that an agent can make, generating either a deterministic or stochastic reward. At each step, the agent faces a decision whether to utilize an arm with the highest expected reward ("exploit") or to try out new arms to learn something new ("explore"). The agent's goal is to maximize the cumulative reward in the long run, for which it must balance exploration and exploitation. The reward of each arm is estimated from past decisions using a learning policy [Kuleshov and Precup, 2014].
3 BALANS: Online Meta-Solver for MIPs
As illustrated in Figure 1, our BALANS approach brings the complementary strengths of MIP, ALNS, and MAB together to create an online meta-solver for tackling hard combinatorial optimization problems.
Given an MIP instance as input, we first find an initial solution by running an MIP solver with a time limit to find the first feasible solution. This also allows filtering easy-to-solve instances up front. As part of this process, we instantiate a single underlying MIP model that we maintain throughout the entire search. Similarly, the LP relaxation at the root node is saved together with other information, such as the indexes of binary, discrete, and continuous variables. This incremental nature of BALANS solver is important for good performance, as shown later in our experiments.
The initial solution yields the current search state to start operating ALNS. As depicted in Figure 1, ALNS is a combination of LNS guided by MAB to adapt to diverse neighborhoods. For this purpose, we designed a diverse set of destroy operators and a single repair operator. The repair operator uses the MIP solver to re-optimize the instance resulting from the destroy operation. Next, we overview destroy operators.
3.1 Destroy Operators
We design eight built-in destroy operators in BALANS. These include Crossover [Rothberg, 2007], DINS [Ghosh, 2007], Local Branching [Fischetti and Lodi, 2003], Mutation [Rothberg, 2007], Proximity Search [Fischetti and Monaci, 2014], Random Objective, RENS [Berthold, 2014], and RINS [Danna et al., 2005].
Conceptually, destroying neighborhoods is aimed at creating a sub-MIP that is easier than the original problem. This is achieved by either altering the objective function, as done in Proximity Search and Random Objective, or by adding constraints based on a certain set of destroy variables, as done in other operators. We adapted the original definitions of these operators for the ALNS(MIP) context. The main idea behind our adaptations is to ensure that the operator does not attempt an identical neighborhood in subsequent iterations. For example, local branching is inherently deterministic, and we modify it by introducing a randomized destroy size in every iteration. We provide the precise definitions and details of the selection of destroy heuristics in Appendix B [Cai et al., 2024c].
Let us note that there are destroy neighborhood operators that are not implemented in BALANS. Most notable is the Local Branching Relaxation (lb-relax) from [Huang et al., 2023a]. This is the state-of-the-art LNS(MIP) approach. However, lb-relax has a hyper-parameter to control the destroy size that must be chosen carefully for each problem domain. In addition, the initial destroy size is then dynamically adjusted during the search according to a fixed schedule. The hybrid nature of lb relax combined with a tuned destroy size and its dynamic adjustment is key to its state-of-the-art LNS(MIP) performance.
In contrast, in BALANS, our destroy operators are not mixing different flavors together and are designed to be distinct to constitute a diverse portfolio. In principle, an effective online learning algorithm would be able to sequence these distinct operators in a way to obtain the desired hybrid behavior for the instance at hand. Some destroy operators such as DINS, Local Branching, and Proximity work only on specific MIP subfamilies, e.g. binary or integer only. When combined together in BALANS, we cover all subfamilies of MIPs. Moreover, notice that we do not need to tune for the destroy size, a common requirement of previous work. We simply introduce the same operator multiple times in our portfolio with varying destroy sizes, serving as different options to choose from during the search. The question then becomes how to learn effectively during search and choose among different options on the fly.
3.2 Online Learning
We identify two types of exploration that are crucial for effective online learning. The first exploration decision stems from state exploration, which decides whether the search should continue with the next state or discard the move. The second exploration decision stems from neighborhood exploration, which decides the destroy neighborhood operator to apply at each state. Distinguishing the two different needs of exploration and addressing them separately in a principled manner is a novelty of our approach and key to good performance.
State Exploration: As shown in Figure 1, the acceptance criterion governs the search space among states. We consider two complementary acceptance criteria: Hill Climbing (HC) and Simulated Annealing (SA). HC mostly exploits yet allows the search to progress to the next state when the objective value is the same. On the other hand, SA offers more exploration capacity and allows the search to move to worsening next states.
NeighborhoodExploration: We employmulti-armed bandits for choosing among different neighborhoods. To apply MAB, there are three important design decisions: the definition of arms, the reward mechanism, and the learning policy.
As shown in Figure 1, in BALANS, we treat every pair of destroy and repair operators as a single arm. When an arm is selected, the neighborhood operation is atomic; it destroys the current state and then immediately repairs it to obtain the next state. In this paper, given that we only have a single repair operator, which re-optimizes the sub-MIP obtained from applying to destroy, the list of arms can be treated identically with our destroy operators. If desired, users of BALANS can introduce additional repair operators.
Our reward mechanism for MAB is designed specifically for the ALNS(MIP) framework.
We consider four distinct rewards aligned to the possible outcomes of the acceptance criterion as part of state exploration. These four distinct outcomes are: the next state is the best solution found so far, the next state is better than the previous state, the next state is neither the best nor better, but it is accepted as a move, or the next state is rejected. Each outcome is associated with a specific reward value, as later listed in our experiments. Finally, MAB learns from historical arm choices associated with their observed rewards based on its learning policy.

To summarize our overall algorithm, once the initial solution is found, the main ALNS loop starts, which is an interplay between LNS and MAB. First, MAB selects an arm among the different neighborhoods and provides it to LNS. Then, LNS applies the operation and observes the outcome. Based on the resulting state, its solution quality, and the acceptance criterion, LNS provides the reward feedback to MAB. MAB updates the reward estimate of the selected arm according to its learning policy. This process repeats until hitting the stopping condition, and at the end, the best solution found during the search is returned.
4 Experiments
What remains to be seen is the performance of BALANS in practice. For that purpose, our main research questions are:
- Q1: What is the performance comparison between the default MIP, LNS(MIP) that commits to a single neighborhood, the state-of-the-art LNS(MIP), and our ALNS(MIP) using BALANS? Can BALANS achieve good performance without any offline training and explore states and neighborhoods simultaneously by adapting to the instance at hand on the fly using bandits?
- Q2: How is arm selection among the portfolio of neighborhoods distributed in our bandit strategy? Does BALANS depend on the single best neighborhood, or can it improve over the single best by applying weaker operators sequentially in an adaptive fashion?
Datasets: In our experiments 3 , we use the recently introduced Distributional MIPLIB (D-MIPLIB) [Huang et al., 2024] and the commonly used MIPLIB2017-Hard (HMIPLIB) [Gleixner et al., 2021]. For the former, we randomly select 10 instances from Multiple Knapsack, Set Cover, Maximum Independent Set, Minimum Vertex Cover, and Generalized Independent Set Problem, yielding 50 instances. For the latter, we consider a subset that permits a feasible solution within 20 seconds, yielding 43 instances. SCIP and Gurobi cannot solve any of these instances to optimality within 1 hour, ensuring the hardness of our benchmarks.
Approaches: For comparison, we consider the following:
- -MIP: We use SCIP andGurobi, the state-of-the-art opensource and commercial MIP solvers with default settings running single thread [Bolusani et al., 2024; Gurobi, 2024].
- State-of-the-art LNS(MIP): We use lb-relax thanks to the original implementation from [Huang et al., 2023a]. This algorithm selects the neighborhood with the local branching relaxation heuristic as discussed earlier.
- Single NeighborhoodLNS(MIP): All eight operators are implemented and readily available in BALANS to serve in
3 https://huggingface.co/datasets/balans
| Distributional MIPLIB (D-MIPLIB) | MIPLIB Hard (H-MIPLIB) | |||||||
|---|---|---|---|---|---|---|---|---|
| Hill Climbing | Simulated Annealing | Hill Climbing | Simulated Annealing | |||||
| PG (%) ↓ | PI ↓ | PG (%) ↓ | PI ↓ | PG (%) ↓ | PI ↓ | PG (%)↓ | PI ↓ | |
| SCIP | 2.11±1.68 | 105±56.5 | N/A | N/A | 13.3±3.95 | 514±134 | N/A | N/A |
| lb relax | 5.72± 3.25 | 163±73.6 | N/A | N/A | 24.2±15.5 | 778±156 | N/A | N/A |
| local branching 25 | 2.80±2.27 | 110±81.2 | 2.77±2.03 | 115±77.4 | 9.73±2.11 | 485±95.9 | 11.4±2.34 | 502±93.0 |
| mutation 75 | 2.21±3.98 | 104±166 | 2.81±4.9 | 114±176 | 57.7±139 | 971±473 | 58.8±139 | 991±472 |
| proximity 15 | 29.6±27.8 | 771±253 | 29.6±27.8 | 771+254 | 16.9±25.6 | 583±88.4 | 15.6±23.7 | 562±86.0 |
| e-Greedy linear | 0.92±1.47 | 69.5±62.6 | 0.53±0.85 | 61.1±51.8 | 4.47±0.86 | 316±56.3 | 3.43±0.59 | 295±49.9 |
| e-Greedy exp | 0.84±1.15 | 71.1±63.6 | 0.65±1.01 | 73.9±86.0 | 6.01±1.01 | 361±61.5 | 3.74±0.64 | 294±49.4 |
| Softmax linear | 0.71±1.02 | 59.1±68.5 | 0.49±0.81 | 53.8±57 | 4.65±0.78 | 325±56.6 | 3.47±0.53 | 296±50.5 |
| Softmax exp | 0.94±1.39 | 127±285 | 0.55±0.91 | 111±241 | 4.5±0.77 | 277±44.6 | 3.53±0.63 | 307±51.4 |
| TS accept better | 0.88±1.51 | 73.2±94.4 | 0.54±0.91 | 59.4±77 | 5.45±0.92 | 341±56.9 | 4.09±0.72 | 284±47.5 |
| TS accept same | 1.19±2.02 | 84.2±111 | 0.75±1.25 | 69.6±86.9 | 6.11±1.30 | 340±63.2 | 2.94±0.55 | 244±39.5 |
LNS(MIP). That said, in our experiments, we found DINS and Random Objective to perform poorly, hence we focus on the remaining six destroy operators. By varying the parameters of these operators, we obtain 16 different destroy operators from 6 unique neighborhood definitions. These are: crossover, lb 10/25/50 (local branching), mutation 25/50/75, proximity 05/15/30, rens 25/50/75, and rins 25/50/75. For the accept criterion, we use Hill Climbing (HC) and Simulated Annealing (SA) with an initial temperature set to 20 and an end temperature set to 1 with a step size of 0.1.
- BALANS ALNS(MIP): Given the 16 different single destroy operators used in LNS(MIP), we build BALANS for ALNS(MIP) with a portfolio that includes all of the 16 operators. We again apply HC and SA as the acceptance criterion. For the learning policy, we use e-Greedy [Auer et al., 2002] and Softmax [Luce, 1977] with numeric rewards and Thompson Sampling (TS) [Thompson, 1933] with binary rewards. For numeric rewards, we use a linear ([3, 2, 1, 0]) and an exponential setting ([8, 4, 2, 1]) corresponding to best, better, accept, and reject outcomes. For binary rewards, we consider [1, 1, 0, 0], where accept reward is the same as reject, and [1, 1, 1, 0], where accept is better than reject.
Evaluation Metrics: 1) Primal Gap (PG) [Berthold, 2006] is the normalized difference between the primal bound v and a precomputed best known objective value v∗ and is defined as |v-v∗ | max(|v∗ |,ϵ) if v exists and vv∗ ≥ 0. We use ϵ = 10-8 to avoid zero division.
- Primal Integral (PI) [Achterberg et al., 2012] at time q is the integral on [0, q] of the primal gap as a function of runtime. PI captures the quality of and the speed at which solutions are found.
Setup: We conduct experiments on AWS EC2 Trn1 with 128 vCPUs and 512GB memory. BALANS solver integrates ALNS library [Wouda and Lan, 2023], MABWISER library [Strong et al., 2019; Strong et al., 2021] and SCIP(v9.0.0) [Bolusani et al., 2024] and GUROBI (v11.0.0) [Gurobi, 2024]. To find an initial solution, we run the solver for 20 seconds. Each LNS iteration is limited to 1 minute, except for Local Branching to 2.5 minutes, which solves larger sub-problems than other operators. The time limit to solve each instance is set to 1 hour.
4.1 Numerical Results
[Q1] Default MIP vs. LNS(MIP) vs. BALANS Figure 2 presents a detailed comparison of default MIP via SCIP, LNS(MIP) via single neighborhood operators including the state-of-the-art lb-relax [Huang et al., 2023a], and BALANS solver conducting ALNS(MIP).
Performance of LNS(MIP): On the left four plots, the immediate observation is the mixed performance of single neighborhood LNS, losing to SCIP (above the black line) in almost all cases. On D-MIPLIB, only Local Branching (lb) and Mutation get close to SCIP, but still worse. All others, including lb-relax, perform poorly above the primal gap cutoff. On H-MIPLIB, both Proximity and Local Branching are comparable to SCIP, with lb 25 surpassing SCIP. It is important to note that these are aggregate results across problems. As expected, the state-of-the-art lb relax performs comparable and even better than SCIP in some domains. Domainspecific results can be found in the supplemental material. Overall, when dealing with MIP instances from various distributions and mixed problem types, single neighborhood approaches, including lb relax, struggle. LNS(MIP) requires carefully chosen neighborhood sizes and cannot adapt to the diversity of mixed problem types, number of variables, constraints, and problem structure across instances.
| Crossover | Local Branching | Mutation | Proximity | RENS | RINS | |
|---|---|---|---|---|---|---|
| D-MIPLIB (Softmax linear SA) | 6.4% | 11% | 25% | 17.9% | 19.8% | 19.9% |
| H-MIPLIB (TS accept same SA) | 9.4% | 0.6% | 21% | 7.3% | 31% | 30.8% |
Performance of BALANS: Figure 2 shows that, contrary to LNS(MIP), the ALNS(MIP) approach of BALANS significantly outperforms SCIP (below the black line) in all cases on both datasets. In fact, it immediately starts performing better, diving into the lower optimality gap early in the search. This result is remarkable since BALANS uses the same 16 single neighborhoods from LNS(MIP), most of which do not even reach the gap cutoff when running standalone. An important insight is that the ranking of single LNS(MIP) operators varies considerably between datasets. For instance, Mutation performs the best on D-MIPLIB yet is absent in HMIPLIB, whereas Proximity exhibits the opposite behavior. This is exactly the motivation behind our diverse portfolio of destroy operators. Notice also how all bandit learning policies are consistently better than SCIP. Our online bandits are able to select the appropriate operator adaptively throughout the search for the instance at hand. Moreover, unlike single operators that require carefully tuned destroy parameters, in the absence of which they perform poorly, BALANS simply introduces parameter variations as additional arms driven by the learning policy.
Table 1 zooms further into the primal gap and primal integral achieved by the top performers. As in Figure 2, it is evident that any configuration of BALANS significantly outperforms SCIP, the state-of-the-art lb-relax, and any LNS. Overall, we reduce the primal gap of SCIP by 75+% and the primal integral of SCIP by 50+% across datasets. The best BALANS configuration is Softmax linear SA for D-MIPLIB and TS accept same SA for H-MIPLIB. Regardless, any BALANS configuration is better than the alternatives, revealing its robust out-of-the-box performance.
Figure 3 plots the primal gap performance of the best BALANS configuration within each dataset compared to SCIP on each instance. Above the diagonal is where SCIP wins, and below the diagonal is where BALANS wins. As clearly shown in Figure 3, BALANS achieves superior performance on a greater number of instances, particularly on those where SCIP struggles. This highlights the effectiveness of our approach in challenging instances.
Performance of Acceptance Criteria: For single operators in LNS(MIP), different acceptance criteria do not substantially change the performance. They can be considered too rigid to benefit from state exploration. In contrast, SA consistently outperforms HC for BALANS. The best BALANS performances are achieved with SA that allows navigating the search space even with worsening moves.
[Q2] Distribution of Arm Selection What is behind the operations of BALANS, and specifically, what neighborhoods does it depend on for its superior performance?
Table 2 shows the distribution of arm selection as percentages. Interestingly, the single best operator, local branching, is not a popular arm at all. Several worse operators are preferred within our bandit portfolio. In H-MIPLIB, BALANS utilizes local branching only 0.6% of the time, yet still, it outperforms local branching by a large margin. Likewise, in DMIPLIB, local branching is second to last in popularity.

The RENS and RINS operators, which are not even visible in Figure 2 due to their poor performance above the primal gap cutoff, account for ∼40% and ∼60% of the distributions in Table 2 on these datasets. This shows that BALANS outperforms MIP and any single best LNS(MIP) out-of-the-box with almost no tuning by using weaker operators sequentially and carefully balancing the exploitation-exploration trade-off via online learning.
4.2 Ablation Studies
To demonstrate that BALANS is solver-agnostic, we conducted the same experiments using Gurobi [Gurobi, 2024], a state-of-the-art commercial solver.
Figure 4 compares the performance of default Gurobi, the Single Neighborhood LNS approach, and BALANS. The results show that BALANS outperforms both default Gurobi and LNS(Gurobi) with any single neighborhood approach significantly on D-MIPLIB. On H-MIPLIB, where Gurobi perform much better than any LNS methods, our BALANS can significantly reduce the gap from single LNS to Gurobi. This confirms that our findings and conclusions derived from experiments with the SCIP solver carry over when switched to another solver. By conducting experiments with state-of-theart open-source and commercial solvers, we demonstrate that BALANS can be seamlessly applied as a meta-solver on top of a MIP solver, significantly improving their performance over single neighborhood LNS.
Next, it is important to note that the default configuration of SCIP applies ALNS as an internal heuristic within the Branch-and-Bound search, as discussed in [Hendel, 2022]. That means when we use the default SCIP, BALANS essentially conducts ALNS(MIP(ALNS)), which outperforms the default SCIP conducting MIP(ALNS). This raises the question: how much of the good performance of BALANS on these instances is due to the internal ALNS of SCIP? To explore this, we conduct another ablation study with SCIP's internal ALNS enabled and disabled, comparing MIP vs. MIP(ALNS). Our results show that the internal ALNS of SCIP conducted within the BnB search led to performance improvement in only 8 out of 94 instances, with negligible improvements of less than 0.2% in the primal gap. Contrarily, our novel bandit-based ALNS approach, conducted on top of the BnB search, improves 79 out of 94 instances (Figure 3) and reduces the primal gap by 75+% (Table1).

5 RelatedWork
Primal heuristics are crucial in rapidly discovering feasible solutions to improve the primal bound. As such, there is a rich literature on learning-based methods for improving heuristics. Examples in this line of research include IL-LNS [Sonnerat et al., 2021], which learns to select variables by imitating LB, RL-LNS [Wu et al., 2021], which uses a similar framework but trained with reinforcement learning, and CLLNS [Huang et al., 2023b] uses contrastive learning to learn to predict variables. Our work complements these approaches as an online method that does not require any offline training to generate good quality solutions on challenging optimization instances, as shown in our experiments.
There is also a body of work that focuses on primal heuristic operations of BnB within-the-solver. These include offline learning methods, such as [Khalil et al., 2017], which builds a mapping between BnB nodes and a binary decision for running a given primal heuristic, and [Chmiela et al., 2021], which constructs a schedule that assigns priority and computational budget to each heuristic.
When considering online methods [Attieh et al., 2019; Hendel, 2022; Chmiela et al., 2023] are the closest to our work. As in our paper, both are examples of online learning, focus on LNS neighborhoods, use SCIP, and are based on multi-armed bandits. The crucial difference is that BALANS is a meta-solver that operates on top of a MIP solver in a solver-agnostic manner, whereas the previous work only works as a heuristic that operates within the BnB search of SCIP, where LNS is invoked at internal search nodes. As a result, these works remain specific extensions of SCIP and are white-box, i.e., require access to solver internals. Contrarily, BALANS is an integration technology that offers a modular architecture to leverage best-in-class open-source software dedicated to their specific domain. We leverage MABWISER [Strong et al., 2019; Strong et al., 2021] for bandits, ALNS library [Wouda and Lan, 2023] for adaptive largeneighborhood search, and SCIP [Bolusani et al., 2024] and GUROBI [Gurobi, 2024] for MIP solving. Future advances in these distinct fields, realized independently within each software, propagate to our meta-solver with compounding effects. This unique integration makes BALANS highly configurable. Beyond this paper, many more configurations are available through parameterization of ALNS and MABWiser.
Finally, let us acknowledge other successful MAB applications. Among those, [Phan et al., 2024] uses MAB with ALNS for multi-agent pathfinding, [Almeida et al., 2020] uses MAB with hyper-heuristics for multi-objective flow shop problems, and [Zheng et al., 2022] uses MAB for MaxSAT. Beyond combinatorial problems, MAB is heavily used in recommender systems [Kadioglu and Kleynhans, 2024] and game-playing agents [Schaul et al., 2019].
6 Conclusions
In this paper, we proposed BALANS, a multi-armed Banditsbased Adaptive Large Neighborhood Search for mixedinteger programming. Our experiments have shown that all configurations of our online approach, without any offline training and almost zero tuning, significantly improve over 1) the default BnB solver, and 2) any single large neighborhood search, including the state-of-the-art, on hard optimization problems. We release BALANS solver as open-source software with its high-level interface, modular and extendable architecture, and configurable design.
For future work, we would like to improve the performance of BALANS further by careful algorithm configuration and portfolio construction [Kadioglu et al., 2011], and explore hybrid ALNS(MIP), where existing offline training methods are introduced as additional arms in our portfolio.
Acknowledgments
This paper reports on research conducted while Junyang Cai was interned at AI Center of Excellence, Fidelity. The research at the University of Southern California was supported by NSF under grant number 2112533:NSF Artificial Intelligence Research Institute for Advances in Optimization (AI4OPT).
@inproceedings{ijcai2025p286,
title = {Balans: Multi-Armed Bandits-based Adaptive Large Neighborhood Search for Mixed-Integer Programming Problems},
author = {Cai, Junyang and Kadioğlu, Serdar and Dilkina, Bistra},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {2566--2574},
year = {2025},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2025/286},
url = {https://doi.org/10.24963/ijcai.2025/286},
}
TY - CPAPER TI - Balans: Multi-Armed Bandits-based Adaptive Large Neighborhood Search for Mixed-Integer Programming Problems AU - Cai, Junyang AU - Kadioğlu, Serdar AU - Dilkina, Bistra T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 2566 EP - 2574 DO - 10.24963/ijcai.2025/286 UR - https://doi.org/10.24963/ijcai.2025/286 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: