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

Binary Subset Sum

Pick the subset of numbers that sums to a target value.

Binary Subset Sum
Pick the integers whose sum lands closest to the target.
4 3 12 5 2 34 target
Selected chips contribute to the running sum; the optimizer searches for the combination that hits the target.
Run this yourself, for free

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

Get started