Study on Ant System for the 0-1 Multiple Knapsack Problem with Knapsack Dependent Values

Yue Zhang, Xing-Ye Dong, Youfang Lin2016 · DOI

Abstract

The values of items of the classic knapsack problems are independent of knapsacks. Inspired from some practical problems, a 0-1 multiple knapsack problems with knapsack dependent item values are proposed. A Greedy heuristic is proposed to provide a feasible solution and a basis for further comparison, and then three ant system algorithms are proposed. To relieve the stagnant phenomenon of the AS and MMAS, MMAS2 is developed with the newly proposed method by mapping the objective periodically for the purpose of adjusting the importance of the pheromone trails, in which the max-min pheromone limitation is also applied. And it has a more chance to find better solutions. Experimental results on randomly generated instances show that the proposed MMAS2 surpasses the MMAS significantly in performance.

Introduction

The classic Knapsack Problem (KP) involves selecting a subset of items with fixed weights and values to maximize total value within a weight constraint. The Multiple Knapsack Problem (MKP) extends this to multiple containers. However, real-world scenarios—such as assigning a bus fleet to specific stations in public transit—often involve values that vary depending on the specific assignment. This paper formalizes the 0-1 Multiple Knapsack Problem with Knapsack Dependent Values, where the value of item $j$ in knapsack $i$ is a unique variable $v_{ij}$. This model bridges the gap between traditional knapsack problems and assignment problems, making it highly relevant for logistics and transportation scheduling.

Methodology

The researchers evaluated four distinct algorithmic approaches to solve this complex optimization problem:

  1. Greedy Heuristic: Serves as a baseline, iteratively assigning items based on the highest unit value ($v_{ij}/w_j$) until capacity is reached.
  2. Ant System (AS): A standard metaheuristic where artificial ants construct solutions guided by pheromone trails (historical success) and heuristic information (local greedy choice).
  3. Max-Min Ant System (MMAS): An improvement over AS that bounds pheromone levels within $[\tau_{min}, \tau_{max}]$ to prevent premature convergence to sub-optimal solutions.
  4. MMAS2 (Proposed): Addressing the "stagnation trap" where pheromone influence overwhelms heuristic data, MMAS2 introduces a periodic objective mapping function. By periodically scaling the objective value to a smaller range, the algorithm reduces the disparity between pheromone trails, effectively "resetting" exploration and allowing ants to discover superior global optima.

Experimental Setup

The study utilized 150 randomly generated instances across 15 groups, varying the number of knapsacks (4 to 30) and items (20 to 500). Small-scale instances were benchmarked against CPLEX, an exact mathematical solver, to establish ground-truth optima. Large-scale instances, which are computationally infeasible for CPLEX, were used to compare the relative performance of the ant-based metaheuristics against the Greedy baseline.

Key Results

The experimental results demonstrate the clear superiority of the MMAS2 algorithm, particularly as problem complexity increases.

Evaluation process of AS, MMAS, and MMAS2 showing the superior convergence of MMAS2 on large instances.

As shown in Figure 1, while all ant systems significantly outperform the Greedy heuristic, MMAS2 consistently finds higher total values than both AS and the standard MMAS. Statistical analysis via a paired sample t-test confirmed this improvement, yielding a p-value of 0.003. In small instances, both MMAS and MMAS2 successfully reached the exact optimal solutions identified by CPLEX in every trial. While MMAS2 requires more computational time than the Greedy approach (e.g., ~535 seconds vs. <2ms for the largest instances), the substantial gains in total value justify the overhead for high-stakes industrial applications.

Conclusion and Future Work

The proposed MMAS2 effectively mitigates pheromone stagnation through periodic objective mapping, offering a robust solution for the 0-1 Multiple Knapsack Problem with Knapsack Dependent Values. Future research will focus on developing theoretical upper bound estimations for large-scale instances and incorporating real-world constraints, such as physical station capacities in public transportation systems. Additionally, automating the tuning of mapping frequency and growth parameters remains a key area for optimization.

Summary updated

Abstract

The values of items of the classic knapsack problems are independent of knapsacks. Inspired from some practical problems, a 0-1 multiple knapsack problems with knapsack dependent item values are proposed. A Greedy heuristic is proposed to provide a feasible solution and a basis for further comparison, and then three ant system algorithms are proposed. To relieve the stagnant phenomenon of the AS and MMAS, MMAS2 is developed with the newly proposed method by mapping the objective periodically for the purpose of adjusting the importance of the pheromone trails, in which the max-min pheromone limitation is also applied. And it has a more chance to find better solutions. Experimental results on randomly generated instances show that the proposed MMAS2 surpasses the MMAS significantly in performance.
BibTeX
@misc{zhang2016study,
  author = {Yue Zhang and Xing-Ye Dong and Youfang Lin},
  title = {{Study on Ant System for the 0-1 Multiple Knapsack Problem with Knapsack Dependent Values}},
  year = {2016},
  doi = {10.2991/ceis-16.2016.104},
}
Figure