pykp.solvers#
Implementations of various solvers for the knapsack problem.
PyKP solvers provides various solvers for knapsack problem. It provides
access to knapsack-specific branch-and-bound algorithms, as well as
well-known general-purpose constraint-modelling algorithms, like Gecode
and Coin-OR Branch-and-cut.
Common functions and objects, shared across different solvers, are:
|
Represents a solution returned by a solver. |
|
Statistics about the solution returned by a solver. |
|
Types of solutions that can be returned by a solver. |
Exact Algorithms#
|
Solves the knapsack problem using the branch-and-bound algorithm. |
|
Solves the knapsack problem using the MiniZinc. |
Approximation Algorithms#
|
Appy the greedy algorithm to a knapsack problem instance. |