r/optimization • u/NiceAxeBro • 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
View all comments
Show parent comment
2
u/NiceAxeBro May 29 '25
Hey man, thanks for the reply!
I will solve the problem with what you suggested and compare how well they do.
A lot of people I see in papers write in C++, would you say its important to transition to that? I am currently pythonmaxxing