# Linear Programming and Healthy Diets -- Part 2

DevFeed: [Linear Programming and Healthy Diets -- Part 2](<https://devfeed.tech/articles/linear-programming-and-healthy-diets-part-2-40416.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2017/09/24/linear-programming-and-healthy-diets-part-2/>)

Published: 2017-09-24T08:00:46Z

Content type: tutorial

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [Data Science](<https://devfeed.tech/topics/data-science.md>), [Python](<https://devfeed.tech/topics/python.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [linear-programming](<https://devfeed.tech/tags/linear-programming.md>), [math](<https://devfeed.tech/tags/math.md>), [optimize](<https://devfeed.tech/tags/optimize.md>), [programming](<https://devfeed.tech/tags/programming.md>), [python](<https://devfeed.tech/tags/python.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

This tutorial presents a diet-planning problem as a linear program: minimizing daily calories while meeting minimum nutrient requirements. It introduces a Python solution using Google's open-source operations research tools and frames the example as a practical use case for linear programming.

## Source excerpt

Previously in this series: Linear programming and healthy diets -- Part 1 Linear programing and the simplex algorithm Foods of the Father My dad's an interesting guy. Every so often he picks up a health trend and/or weight loss goal that would make many people's jaw drop. For example, we once went on a 5-day, 50-mile backpacking trip in the Grand Tetons, and my dad brought one packet of Lipton's Side Dishes noodle soup per day for dinner, and had vitamin tablets for the rest of his sustenance.