Designing an Optimal Diet Using Integer Programming
In this article, I apply integer programming to tackle the Diet Optimization Problem, the challenge of cost-effectively meeting specific nutritional targets.
In this article, I apply integer programming to tackle the Diet Optimization Problem, the challenge of cost-effectively meeting specific nutritional targets.
Hands-on practice on testing multiple processes. Also, a refresher on Calculus :)
Have you ever wondered how a floating point number like 3.14159 is internally stored in computer memory? This article explains the industry standard solution to this problem - the IEE754.
Bored of mundane if-else statements and sanity checks against your data format? The advent of Python 3.10 brought a tool allowing one to solve such problems elegantly, compactly and declaratively - Structural Pattern Matching.
Some parts of your code are hard to test - API calls, randomized or long-running calculations cannot be tested effectively. Luckily, there are a bunch of tools to help us bypass such limitations. This article describes one of them - monkeypatching.