Skip to content

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

Latest
Compare
Choose a tag to compare
@shah314 shah314 released this 18 Oct 15:55
· 3 commits to master since this release
2ec9b76

A genetic algorithm implementation for the multidimensional knapsack problem. The multi-constraint (or multidimensional) knapsack problem is a generalization of the 0/1 knapsack problem. The multi-constraint knapsack problem has m constraints and one objective function to be maximized while all the m constraints are satisfied.

The implementation is similar to the one described in Chu and Beasley, but it's significantly different. It uses Lagrangian multipliers as constraint weights and compared to the paper, it finds close to optimum solutions much faster. (Convergence can be controlled using the parameters).