I am a fan of the Julia language. Tremendously powerful analytical environment, compiled, high performance, easy to understand and use, strongly typed, … there’s a long list of reasons why I like it. If you are doing analytics, modeling, computation in other languages, it is definitely worth a look. Think of it as python, compiled, with multiple dispatch and strong typing … and no indent-as-structure problem.
My Julia fanboi-ism aside, there was an interesting blog post about using JuMP, a linear programming environment for Julia. I’ve not done much work with linear programming, or mixed integer programming, so I read it hoping to learn about it.
As with articles like this, I learned new things about Julia in the process, specifically about a number of packages I’d not known about before, and capabilities that they add.
While I am always grateful for another opportunity to learn something, I found the presentation to be quite … well … humorous.
Yes, the solver suggests drinking 32kg of water, 2kg of tea, and almost 3kg of watered down milk.
For those who don’t quite remember, 1kg is about 2.2lbs, so 32kg is north of 65 lbs of water. Per day.
But wait … there’s more!
The author attempts some sanity constraints in addition to the nutritional guidelines, like reducing moisture. And then they get this:
Oh dear …
It keeps going from there. The author did include a disclaimer about trying any of the diets … basically … don’t. Check with your Dr first for any diet. Especially if you think you need to eat 1/2 kg of KCl, or cream of tartar …
While it was funny to a degree, I did enjoy the tutorial on JuMP, and the capabilities of Julia.