@evan
This is actually a knapsack problem then.
I recommend you to look into that instead. You are doing a lot of thinking on how to approach writing a heuristic (and suboptimal) solver for a knapsack like problem.
Maybe considering it from the knapsack perspective helps.
Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
drawnto (drawnto@woof.group)'s status on Wednesday, 26-Feb-2025 13:06:08 JST drawnto