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.(adsbygoogle = window.adsbygoogle || []).push({});

I was thinking about the Simplex algorithm but not sure how well it would work...

http://pastebin.com/wsR86rev [Broken]

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Linear programming question

Loading...

Similar Threads for Linear programming question |
---|

I Intuitive Linear Transformation |

I Linear Programming: how to identify conflicting equations |

I Adding a matrix and a scalar. |

I Linear mapping of a binary vector based on its decimal value |

I Linear Program:Multiple Optima for multivariable Obj. Func.? |

**Physics Forums | Science Articles, Homework Help, Discussion**