Randomized heuristic repair for large-scale multidimensional knapsack problem

Jean P. MartinsarXiv 2024 · DOI

TL;DR

This paper tackles the challenge of finding optimal solutions for the large-scale Multidimensional Knapsack Problem (MKP) by introducing a novel randomized heuristic repair strategy. By introducing controlled randomness into a previously deterministic repair method, the authors significantly improve search efficiency and solution quality, leading to faster convergence and better results compared to the original algorithm.

What Problem Does This Paper Address?

The Multidimensional Knapsack Problem (MKP) is a classic NP-hard optimization problem where the goal is to select a subset of items, each with a profit and multiple resource consumptions, to maximize total profit without exceeding any resource capacity. Due to its computational complexity, especially for large instances, metaheuristics are commonly employed. A critical component of these metaheuristics is the "heuristic repair" mechanism, which aims to fix infeasible solutions (those violating capacity constraints) by removing items. The seminal Chu and Beasley heuristic repair (1998) is effective but deterministic, leading to a lack of solution diversity and premature convergence in long runs. This paper addresses this limitation by proposing a randomized version of this heuristic repair to enhance exploration and discover better solutions.

Methods

The core innovation of this paper is an efficiency-based randomization strategy for the heuristic repair. The standard heuristic repair involves two phases: dropping items from an infeasible solution and then adding items. The effectiveness of this repair hinges on the ordering of items, typically based on their "efficiency" (profit relative to resource consumption).

The authors' approach introduces randomness by:

  1. Efficiency Groups: They group items with similar efficiencies, determined by rounding their efficiency values to a certain decimal place (d). Items within the same group are considered interchangeable without drastically harming solution quality.
  2. Randomized Operators: Two operators are proposed to randomize the order of items within these efficiency groups:
  3. Random-Group Swap (RG-SWAP): Randomly selects an efficiency group and swaps the positions of two items within it.
  4. Random-Group Shuffle (RG-SHUFFLE): Randomly selects an efficiency group and shuffles the positions of potentially all items within it.
  5. Adaptive Randomization: Randomization is triggered only when the search stagnates, i.e., when no improving solutions are found during a generation. This prevents excessive randomization from hindering initial progress.

The proposed randomized heuristic repair is integrated into a modified Chu & Beasley Genetic Algorithm (CBGA), referred to as CBGA with efficiency groups.

Datasets

The experiments were conducted on large-scale MKP instances from the OR-LIBRARY, specifically those provided by Chu and Beasley [1998]. These instances vary in the number of items (n ∈ {100, 150, 200, 500, 1500, 2500}) and dimensions (m ∈ {15, 25, 50, 100}). There are a total of 11 instances used for evaluation.

Key Insights and Ideas

  • Deterministic Repair is a Bottleneck: The deterministic nature of the original heuristic repair, while effective, limits the search space exploration, leading to premature convergence.
  • Efficiency Groups Enable Controlled Randomization: Grouping items by similar efficiencies is a clever way to introduce randomness without completely discarding valuable information. This allows for exploration of the ordering space in a more structured and less disruptive manner.
  • Adaptive Randomization is Key: Triggering randomization only when the search stalls is crucial for maintaining the algorithm's initial speed and effectiveness. This balances exploration with exploitation.
  • The Trade-off Between Group Size and Randomization Intensity: The parameter d (number of decimal places for rounding) controls the size of efficiency groups. Larger groups (smaller d) allow for more intense randomization, while smaller groups (larger d) restrict it. Similarly, RG-SHUFFLE is a more intense randomization than RG-SWAP.

Key Results

The paper reports that all four variants of the proposed randomized heuristic repair algorithms (two RG-SWAP variants with different d values, and two RG-SHUFFLE variants with different d values) outperformed the original CBGA. The improvements were observed in:

  • Considerably smaller running times: In some cases, the randomized algorithms were more than ten times faster.
  • Smaller average gap to the best-known solutions: Indicating better solution quality.
  • Ability to find solutions equivalent to the best known: In cases where the original CBGA failed to do so.

The results suggest that the randomized approaches are more effective at finding high-quality solutions for large-scale MKP instances.

Limitations and Future Work

The authors acknowledge that the quality of the results can depend on the specific randomization strategy chosen (RG-SWAP vs. RG-SHUFFLE) and the characteristics of the individual instance. They could not identify a clear pattern for when to prefer an aggressive strategy over a less disruptive one. There were also instances where the original CBGA still performed best.

Future work suggested includes:

  • Investigating the interaction between the rounding parameter d and the randomization strategies to develop more robust combinations.
  • Exploring the use of efficiency groups for improving local search procedures.
  • Developing instance-specific strategies for modifying item orderings.

Summary updated

BibTeX
@misc{martins2024randomized,
  author = {Jean P. Martins},
  title = {{Randomized heuristic repair for large-scale multidimensional knapsack problem}},
  year = {2024},
  eprint = {2405.15569},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.15569},
}
Figure