Knapsack with compactness: a semidefinite approach
Hubert Villuendas, Mathieu Besançon, Jérôme Malick
TL;DR
The paper tackles the min-knapsack with a compactness constraint by developing semidefinite programming formulations that lift binary decisions to a rank-one matrix $\mathbf{X}=xx^\top$, enabling tight relaxations. It introduces two SDP approaches: an explicit-compactness SDP and a penalized SDP with a tunable hyperparameter $\lambda$ to balance compactness against accuracy, complemented by strengthening techniques such as valid inequalities and maximal insufficient subset cuts. Computational results on challenging instances show that strengthened SDP and MIS cuts improve bounds and reduce fractionality, while the penalized variants offer competitive runtime with a controllable trade-off between compactness and accuracy. The framework yields high-quality heuristics for difficult instances and holds practical promise for applications like change-point detection in time series, where compact, interpretable solution sets are valuable.
Abstract
The min-knapsack problem with compactness constraints extends the classical knapsack problem, in the case of ordered items, by introducing a restriction ensuring that they cannot be too far apart. This problem has applications in statistics, particularly in the detection of change-points in time series. In this paper, we propose a semidefinite programming approach for this problem, incorporating compactness in constraints or in objective. We study and compare the different relaxations, and argue that our method provides high-quality heuristics and tight bounds. In particular, the single hyperparameter of our penalized semidefinite models naturally balances the trade-off between compactness and accuracy of the computed solutions. Numerical experiments illustrate, on the hardest instances, the effectiveness and versatility of our approach compared to the existing mixed-integer programming formulation.
