Linear Programming for Fun and Profit

modal.com

61 points by hmac1282 4 days ago


cweld510 - 4 days ago

Great to see this post here -- really enjoyed writing it! I think it's really cool how an algorithm from an operational research context can play a critical role in a high-availability large-scale cloud service.

underanalyzer - 4 days ago

Neat article. I do wish it mentioned that there are polynomial time algorithms to solve linear programming problems. According to the Google ortools docs it has the option to use those as well (but not with the GLOP solver). Might be good for when simplex is struggling (https://developers.google.com/optimization/lp/lp_advanced)

Onavo - 4 days ago

The most interesting question is how you scrape the prices. The cloudprovider really need to provide an API.

ayhanfuat - 4 days ago

> X = [x1, ..., Xn]: instances of each type to launch

Is this a continuous variable? Seems discrete to me. I am surprised it is solved by simplex.

- 4 days ago
[deleted]