API Reference#

This reference manual details functions, modules, and objects included in PyKP, describing what they are and what they do.

pykp.knapsack

Provides an interface for defining instances of the 0-1 Knapsack Problem.

pykp.item

Provides an interface for defining items inside a knapsack problem instance.

pykp.arrangement

Provides an interface for defining arrangements of items.

pykp.sampler

Provides an interface for sampling knapsack instances.

pykp.solvers

This module contains implementations of various solvers for the knapsack problem.

pykp.metrics

This module contains various metrics for evaluating knapsack problem instances.