cs.NENov 23, 2026

A steady-state genetic algorithm with multi-ratio seeding and pair exchange for the quadratic knapsack problem

Authors: Gaurav Srivastava, Rahul Verma, Alok Singh

Organizations: Department of Information Technology, Indian Institute of Information Technology Allahabad, Prayagraj, 211015, Uttar Pradesh, India · School of Computer and Information Sciences, University of Hyderabad, Hyderabad, 500046, Telangana, India

Abstract

The quadratic knapsack problem (QKP) seeks a subset of items of maximum total linear and pairwise profit whose total weight does not exceed a given capacity. Most QKP heuristics rank items by a profit-to-weight ratio. We show on benchmark instances that this ranking can steer the search away from the best known solutions, and that on an almost full knapsack a local optimum can be separated from a better solution by an exchange where every single swap loses profit. We propose SSGA-P, a steady-state genetic algorithm with pair exchange that addresses both effects. Its initial population contains greedy solutions built with a grid of exponents between 0.5 and 3 applied to the item weights, and its pair exchange move combines an improving swap violating the capacity with a second swap or removal that restores feasibility. Incremental contribution vectors keep the method practical up to 10{,}000 items. SSGA-P finds optimal solutions in every run on the 100 classical instances and reaches all best known values in 99.8% of the runs on the 80 instances with 1000 and 2000 items and in 99.75% on the 40 instances with 5000 and 6000 items, significantly above the 87.7% of the iterated hyperplane exploration algorithm, improving one best known value. On the 144 Large-QKP instances of Hochbaum et al. (2025), with the same 120-second limit, it improves 20 best known values and matches the other 124. An ablation study shows that the multi-ratio seeding and the pair exchange account for most of this performance.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Hybridizing a Grouping Metaheuristic with Reinforcement Learning for the One-Dimensional Bin Packing Problem

    Jul 2, 2026Zitouni Rania, Mostefai Mounir Sofiane, Tati Youcef +3Metaheuristic OptimizationCombinatorial Optimization

  2. Learning to Solve the Quadratic Assignment Problem with Warm-Started MCMC Finetuning

    Apr 22, 2026Yicheng Pan, Ruisong Zhou, Haijun Zou +2Markov Chain Monte CarloCombinatorial Optimization

  3. Multi-Agent Route Planning as a QUBO Problem

    Feb 8, 2026Renáta Rusnáková, Martin Chovanec, Juraj GazdaMulti-Objective Optimization