- #1
timeone
- 2
- 0
I have a problem at work I'm trying to solve and I can't figure out a good way to do it, hoping someone might be able to help. I have put the relevant info in the below pastebin. Basically I want to distribute some amount of S into two bins, one of which is split into smaller bins, in such a way that the amount between the two is as close to some give ratio as it can be, and then the amount in the first larger bin is split as close as equally among the smaller bins inside of it.
I was thinking about the Simplex algorithm but not sure how well it would work...
http://pastebin.com/wsR86rev
I was thinking about the Simplex algorithm but not sure how well it would work...
http://pastebin.com/wsR86rev
Last edited by a moderator: