Skip to main content
Thanks for the feedback!
Explore interactive demos

Knapsack

Pack the most value without going over the weight limit.

Knapsack
Pick the most valuable items that still fit every capacity.
Laptop · v10 · 2kg Tent · v7 · 4kg Camera · v8 · 1kg Books · v4 · 3kg Stove · v5 · 2kg capacity 8kg
Selected chips contribute to total value; the optimizer searches for the highest-value combination that respects every capacity dimension.
Run this yourself, for free

Sign in to configure and launch a genetic algorithm against this problem, or bring your own.

Get started