OK here's what I'm trying to do. Lets say I have 25 items of different values and I have 15 slots. I want to place those items in those slots such that the sum of the values of items in each slot is minimized. It's kind of like the knapsack problem, but its a little different. Can you point me to the right algorithm? I need to write this into VBA code for my job, but I'm not sure how to proceed. Thanks in advance for your help!!
Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics. Register to post your math questions or just hang out and try some of our math games or visit the arcade.