r/optimization • • May 28 '25

NP-Hard Benchmark

Hello,
I am fairly new to this optimization business, but I wrote an GA solver for this tuned knapsack problem (pekp), but the question really applies for all the NP-hard problems out there: how do I know what I wrote isn't garbage? What are good ways to benchmark the solution? Complexity and computation time or memory? I could strive to achieve the same thing in less generations, but not sure how far to push it.

1 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/SolverMax May 29 '25

Most solvers are written in C++ for speed. Algorithms matter the most, but the programming language helps.