Bayesian Integer Programming — Probabilistic Prior-Guided Combinatorial Optimization

Decision Sciences
Introduced by
Baptiste, Lassagne, Nuijten and others in Bayesian optimization community
Year
1990s–2000s
Type
Probabilistic combinatorial optimization
Family
Simulation / optimization

What does it do?

Bayesian Integer Programming (BIP) applies Bayesian probabilistic reasoning to integer programs whose parameters are uncertain.

Uncertain coefficients receive prior distributions, which are updated to posteriors from observed data via Bayes' rule, and the integer program is then solved against the posterior rather than against fixed point estimates.

The intuition behind the method

A standard integer program minimizes c^T x subject to Ax <= b with x integer, and it assumes the coefficients c, A and b are known exactly. In practice these are often estimates from historical records or expert judgment. Bayesian integer programming treats the uncertain entries as random quantities with prior distributions, and it updates those distributions as observations arrive. The optimizer then chooses integer decisions according to a posterior-based objective, such as expected cost, so the solution reflects the remaining uncertainty and does not depend on a single assumed parameter value.

History

No single originating publication for Bayesian integer programming has been established, and the method is best understood as a combination of two older traditions: Bayesian inference for uncertain parameters and integer programming for discrete decisions. Work on Bayesian reasoning inside mixed integer programming has been published, and the general Bayesian optimization literature is a neighbouring field, but the formulation described here is not attributed to one named originator or year.

When to use it

Choose Bayesian integer programming when the decisions are integer or binary, when key parameters such as costs, demands or capacities are uncertain and can be described by probability distributions, and when prior knowledge should shape the result. It is especially suitable for iterative decisions in which data accumulate between rounds, so that the posterior can be updated after each round. The results depend on a correctly specified likelihood and prior family, so run a prior-sensitivity analysis and check whether the decision changes under reasonable alternative priors. Do not use it when all parameters are known with certainty, since a plain integer program is sufficient. When the prior is uninformative and data are abundant, the posterior is dominated by the likelihood, and a simpler stochastic or sample-based formulation may be a more practical choice. Robust programming is a better fit when worst-case guarantees are required. The method is also unsuitable when the problem is so large that recomputing the posterior and solving the integer program repeatedly is computationally prohibitive.

Limitations and considerations

  • Each uncertain coefficient needs a prior, and results can be sensitive to prior choice, particularly when the data for that coefficient are sparse.
  • Posterior computation through MCMC or variational approximation is added on top of the integer solve, and it must be repeated whenever the posterior changes.
  • The probabilistic objective couples posterior sampling with integer feasibility, so the solver must handle both; this is harder than solving a deterministic integer program of the same size.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • The uncertain coefficients c, A or b enter the model as random quantities, so the optimizer uses the full state of knowledge rather than a single estimate of each coefficient.
  • The posterior distribution p(parameters | data) shows how uncertain the optimal decision is, not only which decision is best.
  • In sequential problems the posterior from one round becomes the prior for the next, so new data are incorporated through Bayes' rule without rebuilding the model from scratch.
  • Prior information can temper the conservatism of a worst-case robust formulation, because the model weights scenarios by their posterior probability rather than assuming the worst case.

Applications

  • Capacity or lot-size decisions in which demand or cost parameters are estimated from historical records and revised as new records arrive.
  • Sequential resource allocation in which cost coefficients are re-estimated between decision rounds and the integer decisions are recomputed each time.
  • Selecting discrete configurations, such as integer hyperparameter settings, where each evaluation updates the belief about the objective.
  • Planning under uncertain activity durations or costs in which the integer decisions are scheduling or assignment variables.

How it works

How it works

1

Write the integer program as minimize c^T x subject to Ax <= b with x integer or binary. Identify which entries of c, A or b are uncertain and need a probabilistic treatment, since only those will carry priors. Decide at this stage how constraints that involve uncertain A or b are to be treated: they may be required to hold for all posterior draws, to hold with a stated probability (a chance constraint), or to hold in expectation.

2

Assign a prior distribution to each uncertain parameter, using expert judgment, historical data or a conjugate family such as Normal priors on cost coefficients or Dirichlet priors on proportional constraints. The prior records what is believed before the current data are observed. As a minimal example, take one uncertain cost coefficient c_j with a Normal prior of mean m0 and variance s0^2.

3

Specify a likelihood p(data | parameters) that links the observed outcomes, such as observed costs or resource consumption, to the uncertain parameters. This term is what moves beliefs away from the prior as data accumulate. In the example, n observed costs are modelled as Normal with mean c_j and known variance s^2. Check that the likelihood is a reasonable description of the data, because a misspecified likelihood biases the posterior.

4

Compute the posterior with Bayes' rule, p(parameters | data) proportional to p(data | parameters) * p(parameters). For complex models the posterior is approximated by MCMC or variational inference; for conjugate pairs it is available in closed form. In the Normal-Normal example the posterior is Normal with precision 1/s0^2 + n/s^2 and a mean equal to the precision-weighted average of the prior mean and the sample mean.

5

Solve the integer program against a posterior-based objective. A common choice is to minimize the posterior expected cost E[c^T x | data] subject to Ax <= b, where the constraints are handled in one of the ways chosen at formulation: for all sampled draws of A and b, with a chance constraint, or in expectation. A sample-average approximation over posterior draws turns this into one larger deterministic integer program. The chosen objective and constraint treatment should be stated explicitly, because they determine what the solution optimizes and whether it is feasible across the posterior. Branch-and-bound can then solve the resulting deterministic integer program.

Common pitfalls

  • Replacing the posterior of c, A or b with its mean discards the variance that motivates the Bayesian treatment and can reproduce the fragility of a deterministic integer program.
  • Confusing this method with stochastic integer programming: the latter uses scenarios with probabilities specified before data are observed, whereas here the probabilities are posterior distributions updated from data.
  • Using flat priors where informative prior knowledge exists discards the information that the prior is meant to supply.
  • Applying branch-and-bound to a single instance built from posterior means, without stating this, can silently ignore the posterior. Likewise, a solution that is feasible for one posterior draw may be infeasible for others unless the constraint treatment is specified.
  • Reporting only the optimal decision hides decision risk. Report the distribution of the objective value across posterior draws, check whether the chosen solution is stable when the draws or priors change, and treat a large posterior variance on influential coefficients as a sign that the decision may change with more data.

Frequently asked questions

How does Bayesian integer programming differ from stochastic integer programming?

Stochastic integer programming typically uses a fixed probability distribution, often represented by scenarios, that is specified before data are observed. Bayesian integer programming treats the uncertain parameters as unknown quantities with prior distributions, which are updated to posteriors as data arrive. This makes learning over time part of the formulation.

Can a standard integer programming solver be used inside a Bayesian integer programming framework?

Yes, but only after the problem is reformulated as a deterministic integer program. For example, minimize the expected posterior cost, or use a sample-average approximation over posterior draws, with an explicit rule for the constraints: they hold for all draws, hold with a given probability, or hold in expectation. A standard branch-and-bound solver is then applied to that deterministic problem. Solving each sampled instance separately does not by itself give a decision that is feasible or optimal across the posterior.

When should I prefer robust optimization over Bayesian integer programming?

Robust optimization is preferable when meaningful priors cannot be specified or when worst-case guarantees are required. Bayesian integer programming is more suitable when historical data or expert knowledge can inform the parameter distributions and when expected performance under the posterior is the objective.

Is Bayesian integer programming the same as Bayesian optimization applied to integer problems?

The two are related but distinct. Bayesian optimization is a search strategy for expensive objective functions that is driven by an acquisition function and commonly uses Gaussian process surrogates. Bayesian integer programming, as described on this page, is a formulation in which the uncertain coefficients of an integer program have priors and posteriors. The two can be combined but are not identical.

How many posterior samples are needed?

The answer depends on the number of uncertain parameters and on how complex the posterior is. Higher-dimensional posteriors, and MCMC chains that mix slowly, generally need more samples. A practical check is to increase the number of samples and see whether the chosen decision and its estimated objective remain stable.

Related methods

Sources

  1. Baptiste, P., Lassagne, I., & Nuijten, W. (2001). Bayesian reasoning in mixed integer programming. European Journal of Operational Research, 130(2), 293–313.

    Open publication reference
  2. Bayesian optimization. Wikipedia.

    Open publication reference