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

04/24/2020
by   , et al.
0

The 0/1 multidimensional (multi-constraint) knapsack problem is the 0/1 knapsack problem with m constraints. It is a strongly NP-hard problem, and might be difficult to solve using exact methods like branch and bound and dynamic programming, especially when the number of variables is large. 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. 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 (Chu & Beasley, 1998) in that it converges to optimum or near optimum solutions much faster.

READ FULL TEXT

page 1

page 2

research
07/20/2019

Genetic Algorithm for the 0/1 Multidimensional Knapsack Problem

The 0/1 multidimensional knapsack problem is the 0/1 knapsack problem wi...
research
02/15/2019

Genetic Algorithm for a class of Knapsack Problems

The 0/1 knapsack problem is weakly NP-hard in that there exist pseudo-po...
research
05/12/2020

Simulated Annealing Algorithm for the Multiple Choice Multidimensional Knapsack Problem

The multiple choice multidimensional knapsack problem (MCMK) isa harder ...
research
04/26/2015

When Hillclimbers Beat Genetic Algorithms in Multimodal Optimization

It has been shown in the past that a multistart hillclimbing strategy co...
research
09/19/2019

Learning Optimal and Near-Optimal Lexicographic Preference Lists

We consider learning problems of an intuitive and concise preference mod...
research
03/14/2020

Imperialist Competitive Algorithm with Independence and Constrained Assimilation for Solving 0-1 Multidimensional Knapsack Problem

The multidimensional knapsack problem is a well-known constrained optimi...
research
05/18/2023

The Dilemma of Choice: Addressing Constraint Selection for Autonomous Robotic Agents

The tasks that an autonomous agent is expected to perform are often opti...

Please sign up or login with your details

Forgot password? Click here to reset