1
/
5

Random Thoughts

A couple of months ago, while looking for a linear programming (LP) library, I stumbled upon PuLP library, which is a free open source library written in Python with the goal of representing optimization problems as mathematical models. PuLP will act as the interface to several external LP solvers (CBC, GLPK ... )

There is very little documentation on PuLP library. Furthermore, PuLP supports only linear combinations and it is hard to model dynamic dependencies. Using PuLP is more like declarative programming rather than Python's imperative style.

But, nevertheless inspired by this video, and willing to learn more about how PuLP works, I decided to give it a shot at modeling the US elections in terms of Operations Research (OR). Admittedly, the video is a bit old, and the elections are long gone, but for learning the inners of PuLP is good enough.

Here is the blog that I've wrote about the whole process: https://blog.epigno.systems/2017/12/10/operations-research-and-us-elections/

1 いいね!
1 いいね!