Solve it, don't brute-force it

Reaching for nested loops or itertools to search every combination works for toy sizes and then falls off a cliff. These guides take a classic optimization problem — assignment, knapsack, scheduling, routing, packing, graph problems — show the brute-force version and why it explodes, then model it and hand it to quicopt: a few lines, solved in Python. Every code block is run against the live free tier before it lands here.

Your brute force is too slow

Nested loops / itertools blowing up? Recognize the optimization problem and pick the model.

Want a guide for your problem class? Tell us what you're optimizing.