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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Framework for Solving Quadratic Knapsack Problem Based on Deep Reinforcement Learning

Jiajia Huang, Shenshen Gu, Shijie Zhao, Xiaoyu Fu
Optimization and Packing Problems
article

A Framework for Solving Quadratic Knapsack Problem Based on Deep Reinforcement Learning

Jiajia Huang, Shenshen Gu, Shijie Zhao, Xiaoyu Fu
article en

Abstract

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.

Shanghai University (CN)
National Natural Science Foundation of China
Reduced inequalities
Openalex Percentile: Top 96%
Optimization and Packing Problems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.