Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
1
Impact
~108 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Feb
1
comment What kind of algorithm/formula would I need to calculate how many items need to fill requirements?
@RickDecker thanks - I'm noticing that now. Any input on my above comment and knapsack solution?
Feb
1
comment What kind of algorithm/formula would I need to calculate how many items need to fill requirements?
@ashley I'm having trouble fitting this into the Knapsack problem, which seems to be about maximizing 1 value while staying within the contraints of all the values, which is not quite what I want to do - I need to get as close as possible to all constraints - unless you can elaborate and explain where I'm going wrong? I've coded a solution to an unbounded knapsack problem and it won't quite do what I need as it really only cares about maximizing one of the contraints (item1 in this case) jsfiddle.net/tsdexter/knQ7G/1 - can it be modified for my case or is it not really a knapsack?
Feb
1
comment What kind of algorithm/formula would I need to calculate how many items need to fill requirements?
Thanks - this looks promising, researching it now.
Feb
1
comment What kind of algorithm/formula would I need to calculate how many items need to fill requirements?
thanks I'll look into those methods.
Jan
31
asked What kind of algorithm/formula would I need to calculate how many items need to fill requirements?
Jan
31
awarded  Autobiographer