Evolutionary Algorithms for the Chance-Constrained Knapsack Problem

Yue Xie, Oscar Harper, Hirad Assimi, Aneta Neumann, Frank Neumann

Abstract

The Chance-Constrained Knapsack Problem (CCKP) extends the classic combinatorial optimization challenge by introducing stochastic item weights. In this setting, the goal is to maximize profit while ensuring the probability of exceeding capacity remains below a predefined threshold, $\alpha$. This paper evaluates the efficacy of Evolutionary Algorithms (EAs) using surrogate functions—specifically Chebyshev and Chernoff bounds—to navigate the risk-reward trade-off. Our findings indicate that multi-objective EAs, such as GSEMO, significantly outperform traditional exact methods in terms of scalability and solution quality for large-scale instances.

Introduction

The Knapsack Problem is a fundamental model in computer science, representing resource allocation under constraints. However, the deterministic assumption—that weights and capacities are fixed—often fails in real-world applications like logistics, task scheduling, and finance. The Chance-Constrained Knapsack Problem (CCKP) addresses this by treating item weights as random variables. The primary challenge lies in the "chance constraint": ensuring that the probability of a capacity violation is less than or equal to a small risk tolerance, $\alpha$.

Calculating the exact probability of violation is PSPACE-hard, making traditional optimization techniques computationally prohibitive for large datasets. This research explores the use of Evolutionary Algorithms (EAs) paired with mathematical surrogate functions to provide efficient, high-quality approximations.

Methodology and Surrogate Functions

To avoid the exhaustive computation of exact probabilities, the authors utilize tail inequalities as surrogate functions. These bounds provide an upper limit on the probability that the sum of random variables exceeds a certain value.

  1. Chebyshev’s Inequality: A general-purpose bound requiring only the mean and variance of the weight distributions. It is applicable to any distribution but tends to be less "tight" than more specific bounds.
  2. Chernoff Bounds: These provide sharper estimates for the sum of independent random variables. While more accurate, they are generally restricted to specific types of distributions or bounded variables.

The study compares several algorithmic approaches:

  • Exact and Heuristic Baselines: Integer Linear Programming (ILP), Dynamic Programming (DP), and a heuristic based on the Nemhauser-Ullmann algorithm.
  • Evolutionary Algorithms: A single-objective (1+1) EA and the Global Simple Evolutionary Multi-Objective Optimizer (GSEMO).

GSEMO treats the problem as a multi-objective optimization task, where the algorithm simultaneously maximizes profit and minimizes the probability of constraint violation. This approach allows the algorithm to maintain a diverse set of solutions (a Pareto front), preventing it from becoming trapped in local optima.

Experimental Framework

The researchers utilized standard knapsack benchmarks, modified to include stochasticity. Three weight distributions were tested:

  • Additive Uniform: Weights fluctuate by a fixed constant ($\pm \delta$).
  • Multiplicative Uniform: Weights fluctuate by a percentage of their mean ($\pm \beta$).
  • Normal Distribution: Weights follow a Gaussian distribution.

Tests were conducted on small-scale (100 items) and large-scale (500 items) instances to evaluate both accuracy and scalability.

Key Insights

The Multi-Objective Advantage

The transition from a single-objective (1+1) EA to the multi-objective GSEMO yielded significant performance gains. By treating the chance constraint as an objective rather than a rigid boundary, the algorithm explores the search space more effectively. This flexibility is crucial in stochastic environments where the boundary between "feasible" and "infeasible" is probabilistic.

Chebyshev vs. Chernoff

The choice of surrogate function depends heavily on the risk tolerance ($\alpha$). The experiments revealed that Chernoff bounds are superior when $\alpha$ is very small (e.g., 0.001), as they provide the precision needed for high-security constraints. Conversely, for higher risk tolerances (e.g., $\alpha = 0.1$), Chebyshev’s inequality often provides a more useful gradient for the evolutionary search, leading to better final solutions.

Scalability and Efficiency

A critical finding of this research is the "scalability wall" faced by exact methods. While Dynamic Programming can solve 100-item instances to optimality, it fails to produce results for 500-item instances within a 10-hour window. In contrast, EAs—specifically GSEMO—consistently found high-quality solutions for these larger problems in a fraction of the time, demonstrating their viability for real-world, large-scale stochastic optimization.

Conclusion

Evolutionary Algorithms, particularly multi-objective variants using surrogate risk functions, offer a robust alternative to exact methods for the Chance-Constrained Knapsack Problem. By balancing profit against probabilistic risk, these algorithms provide scalable solutions that traditional methods cannot reach. Future research may explore more complex EAs and the impact of correlated item weights, further bridging the gap between theoretical models and complex real-world systems.

Summary updated

BibTeX
@inproceedings{xie2019evolutionary,
  author = {Yue Xie and Oscar Harper and Hirad Assimi and Aneta Neumann and Frank Neumann},
  title = {{Evolutionary Algorithms for the Chance-Constrained Knapsack Problem}},
  booktitle = {GECCO},
  year = {2019},
  url = {https://openreview.net/forum?id=QwShcFknbr},
}
Figure