Genetic Algorithm for the 0/1 Multidimensional Knapsack Problem

Shalin Shah
7/20/2019
cs.NEmath.OC

Official code: shah314/gamultiknapsack (13 stars, Java, MIT, last commit 2020-05-16).

Abstract

The 0/1 multidimensional knapsack problem is the 0/1 knapsack problem with m constraints which makes it difficult to solve using traditional methods like dynamic programming or branch and bound algorithms. We present a genetic algorithm for the multidimensional knapsack problem with Java and C++ code that is able to solve publicly available instances in a very short computational duration.

Show full abstract

Our algorithm uses iteratively computed Lagrangian multipliers as constraint weights to augment the greedy algorithm for the multidimensional knapsack problem and uses that information in a greedy crossover in a genetic algorithm. The algorithm uses several other hyperparameters which can be set in the code to control convergence. Our algorithm improves upon the algorithm by Chu and Beasley in that it converges to optimum or near optimum solutions much faster.

View on arXivView PDF

Code Implementations(1)

MIT

GKNAP: A Java and C++ package for solving the multidimensional knapsack problem

137Java, C++May 21, 20186 years agoMIT
c-plus-plusgenetic-algorithmjavaknapsack-problemknapsack-solver+3 more

Similar Papers

Cite this paper

@article{shah2019genetic,
  title  = {Genetic Algorithm for the 0/1 Multidimensional Knapsack Problem},
  author = {Shalin Shah},
  year   = {2019},
  eprint = {1908.08022},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1908.08022}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1908.08022.svg)](https://codeofpaper.com/paper/1908.08022)

Discussion