This gem contains command-line utility for solving 0/1 knapsack problem using branch-and-bound method, dynamic programming, simple heuristic (weight/price) and fully polynomial time approximation scheme. It can measure CPU and wall-clock time spent by solving a problem, compute relative error of the result and generate graphs from those values.

Required Ruby Version

>= 2.2

Authors

Jan Sucan

Versions

  1. 0.1.0 February 14, 2018 (16.5 KB)

SHA 256 checksum