- Introduced by
- Baptista, R. & Poloczek, M. (formal Bayesian-BO-MIP formulation); mixed-integer programming roots in Gomory (1958)
- Year
- 2018 (surrogate-BO-MIP synthesis); MIP foundations 1958
- Type
- Surrogate-assisted combinatorial optimization
- Family
- Simulation / optimization
What does it do?
Bayesian Mixed-Integer Programming (BO-MIP) couples a probabilistic surrogate model — typically a Gaussian process — with a mixed-integer programming solver to efficiently optimize expensive black-box objectives defined over spaces that contain both continuous and discrete or integer-valued decision variables.
It is especially valuable when each function evaluation is costly and exhaustive search is infeasible.
The intuition behind the method
Imagine tuning an industrial process where some controls must take whole-number values (number of machines, batch sizes) while others are continuous (temperatures, flow rates), and running a single experiment costs hours. Bayesian MIP builds a statistical model of the objective from past evaluations and then solves a cheaper MIP subproblem — the acquisition function — to decide where to experiment next. This surrogate acts as an inexpensive stand-in for reality, steering the search toward promising integer-feasible solutions while quantifying uncertainty about unexplored regions.
History
Mixed-integer programming traces to Gomory's cutting-plane method (1958) and the Land–Doig branch-and-bound method (1960). Bayesian optimization of continuous expensive functions developed in the decades before the 2010s. Applying Bayesian surrogates to combinatorial and mixed-integer spaces is a more recent development; the ICML 2018 paper by Baptista and Poloczek on Bayesian optimization of combinatorial structures is a representative reference. That paper addresses combinatorial structures and should not be read as a definitive formulation of the combined method described here.
When to use it
Use Bayesian MIP when the objective function is expensive to evaluate (each query costs significant time or money), the search space contains integer or categorical variables alongside continuous ones, and the total evaluation budget is small (tens to low hundreds of runs). It suits hyperparameter optimization in machine learning, chemical process design, facility layout, and experimental design with discrete factors. Do NOT use it when the objective is cheap to evaluate and thousands of calls are affordable — classical MIP solvers or evolutionary methods will be faster. Avoid it when the search space has very high dimensionality (>30 variables) and the surrogate becomes unreliable, or when strong problem structure (linearity, convexity) makes deterministic MIP directly tractable.
Limitations and considerations
- Scalability: GP fitting scales cubically with the number of observations; performance degrades in high-dimensional spaces and with large evaluation budgets.
- Acquisition subproblem complexity: maximizing a GP-based acquisition over a mixed-integer domain is generally nonlinear, so standard MIP solvers may not reach proven optimality on it, and the inner optimization can become the bottleneck.
- Surrogate misspecification: if the GP kernel is poorly chosen, the surrogate may be an inaccurate proxy, leading to suboptimal exploration.
- Requires careful hyperparameter tuning of the surrogate (kernel, noise level) and acquisition function parameters.
- Limited theoretical guarantees for general non-convex integer domains compared to continuous Bayesian optimization.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Sample efficiency: achieves good solutions with far fewer objective evaluations than evolutionary or random methods, making it ideal for expensive black-box problems.
- Principled uncertainty quantification: the GP surrogate provides credible intervals around predictions, supporting informed stopping and risk assessment.
- Handles mixed-integer domains natively without requiring continuous relaxation or rounding heuristics.
- Flexible acquisition functions allow explicit incorporation of constraints, multi-fidelity information, and batch parallelism.
- Works with noisy observations by modeling noise variance in the GP likelihood.
Applications
- Machine learning hyperparameter tuning with integer and categorical parameters (number of layers, batch size, optimizer choice).
- Chemical and pharmaceutical process optimization where reactor counts, feed stages, and temperatures are co-optimized.
- Facility location and network design with discrete infrastructure choices and continuous capacity allocations.
- Resource scheduling in manufacturing where machine assignments (integer) and processing times (continuous) are jointly optimized.
- Experimental design in materials science: selecting discrete compositions and continuous synthesis temperatures with limited experimental runs.
- Energy systems planning: optimal placement (integer) and sizing (continuous) of renewable generators under uncertainty.
How it works
How it works
Define the optimization problem: specify the objective function f(x), the mixed-integer domain (continuous variables x_c in R^n, integer variables x_i in Z^m), any linear or nonlinear constraints, and a budget of allowed evaluations N_max. Identify whether f is black-box (no analytic gradient) or gray-box. State the assumptions the surrogate will rely on: how smooth f is expected to be, whether observations are noisy, and how integer or categorical variables will be encoded as GP inputs.
Initialize with a small set of evaluated points (Latin hypercube or random sampling). Fit a probabilistic surrogate, commonly a Gaussian process (GP), to the observed (input, output) pairs. The GP provides a posterior mean prediction and an uncertainty estimate at any candidate point, including integer-valued points of the domain. The kernel encodes assumptions about smoothness and correlation. Integer variables may be rounded inside the kernel, one-hot encoded (categorical), or handled with a kernel suited to discrete inputs. If these assumptions fail, the surrogate can be misleading.
Construct an acquisition function (e.g., Expected Improvement, Upper Confidence Bound) that trades off exploiting regions the surrogate predicts to be good against exploring regions where it is uncertain. Maximizing this function over the mixed-integer domain is a subproblem solved in place of evaluating f, because the surrogate is cheap to query. For a GP with EI or UCB, the acquisition value is generally nonlinear in the inputs, so whether the subproblem takes a MIP form depends on the surrogate and acquisition chosen.
Solve the acquisition subproblem with an optimizer that handles integer variables. A branch-and-bound or branch-and-cut MIP solver (e.g., CPLEX, Gurobi, SCIP) applies only when the subproblem has MIP structure, for example with a linear or piecewise-linear surrogate or a suitable reformulation. For a standard GP with EI or UCB the subproblem is nonlinear, and an integer-aware nonlinear or heuristic search is needed, in which case global optimality is not guaranteed. The output is the candidate x* with the best acquisition value found over integer-feasible points.
Evaluate the true objective f(x*) by running the actual experiment, simulation, or query. Add the new observation to the dataset and refit (or update) the GP surrogate. The posterior narrows around observed points, redirecting future search.
Check stopping criteria: budget exhaustion (evaluations reaching N_max), improvement falling below a tolerance, or posterior variance falling below a tolerance. The tolerances depend on the problem and should be chosen accordingly. If not converged, return to the acquisition-optimization step. Report the best feasible integer solution found and the surrogate's predicted confidence interval at that point.
Common pitfalls
- Applying BO-MIP when the problem is actually cheap to evaluate: the overhead of surrogate fitting and acquisition solving is then unjustified.
- Ignoring integer feasibility in the acquisition solver: rounding continuous optima to integers can violate constraints and give misleading candidates.
- Using a very small initial design: a common rule of thumb is about max(5, 2d) points (d = number of decision variables), scaled to the total budget. With too few points the surrogate is poorly initialized and early exploration can be erratic.
- Treating all integer variables as continuous in the GP input space without an appropriate encoding or distance metric, which distorts the surrogate's correlation structure.
- Stopping too early on a tight budget without checking posterior variance: the best observed point may lie in a poorly explored region.
Frequently asked questions
How is Bayesian MIP different from stochastic MIP?
Stochastic MIP models explicit probabilistic uncertainty in problem parameters (demands, costs) and optimizes expected or robust objectives over scenarios. Bayesian MIP uses a Bayesian surrogate to approximate an expensive black-box objective function and guides which integer-feasible points to evaluate next. The uncertainty in Bayesian MIP is epistemic (about the function value), not aleatoric uncertainty in problem data.
Can Bayesian MIP handle constraints beyond integrality?
Yes. Linear constraints can be encoded directly in the acquisition subproblem. Unknown black-box constraints can be handled by fitting separate surrogate models for each constraint and incorporating constraint satisfaction probability into the acquisition function (constrained Bayesian optimization).
How many initial evaluations are typically needed before Bayesian MIP reliably guides search?
A common rule of thumb is about max(5, 2d) initial points, where d is the number of decision variables; this is a heuristic, not an established result. In practice 10–20 random or Latin hypercube samples are often used before the acquisition loop begins. Choose the size in proportion to the total budget, leaving most evaluations for the guided search.
Which acquisition function works best for mixed-integer problems?
Expected Improvement (EI) is the most widely used baseline and a common starting point. For noisy evaluations or batch evaluation, Knowledge Gradient and Thompson Sampling are often considered as alternatives. No single choice is best across problems, so check the options empirically on a small test problem, taking into account the noise level, the cost of the acquisition subproblem, and whether batch evaluations are needed.
Is Bayesian MIP suitable for very large integer programs with thousands of binary variables?
Generally no. Both the GP surrogate and the acquisition subproblem become intractable at very high dimension. For large-scale combinatorial problems, decomposition methods, graph neural network surrogates, or learning-to-branch approaches are more appropriate alternatives.
Related methods
Sources
Baptista, R., Poloczek, M. (2018). Bayesian Optimization of Combinatorial Structures. Proceedings of the 35th International Conference on Machine Learning (ICML), PMLR 80:462–471.
Open publication referenceBonami, P., Biegler, L. T., Conn, A. R., Cornuejols, G., Grossmann, I. E., Laird, C. D., Lee, J., Lodi, A., Margot, F., Sawaya, N., Wächter, A. (2008). An algorithmic framework for convex mixed integer nonlinear programs. Discrete Optimization, 5(2), 186–204.
Open DOI reference