A Framework for Solving Quadratic Knapsack Problem Based on Deep Reinforcement Learning
The quadratic knapsack problem (QKP) with constraints has been a focus of attention in combinatorial optimization, where traditional exact algorithms face difficulties in solving large-scale problems due to the problem’s NP-hard nature, and heuristic algorithms have difficulty in generating high-quality solutions in effective time. To solve QKP quickly and accurately, this paper proposes a graph pointer network (GPN) framework with hierarchical reinforcement learning (HRL). The first stage of the method trains low-level neural network to find feasible solutions that satisfy the constraint as much as possible. The second stage trains the high-level neural network based on the first stage using the objective function as a penalty term. After the HRL, our trained hierarchical GPN (HGPN) model can effectively solve the QKP. In addition, we add a greedy strategy in the decoding process to further improve the solution accuracy of the neural network solver. Experiments show that our proposed method can approximate the optimal solution produced by the Docplex solver and outperforms most end-to-end neural network solvers.
Authors
- Jiajia Huang (ORCID: https://orcid.org/0000-0002-0718-7133)
- Shenshen Gu (ORCID: https://orcid.org/0000-0002-4251-7388)
- Shijie Zhao (ORCID: https://orcid.org/0000-0002-8466-8061)
- Xiaoyu Fu (ORCID: https://orcid.org/0000-0001-6328-3667)
Institutions
- Shanghai University (CN)
Publication Details
- Published
- 2025-02-06
- DOI
- https://doi.org/10.1109/icicip64458.2025.10898115
- Primary Topic
- Optimization and Packing Problems
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China