Key features of this model:

  • Description: Select foods that satisfy daily nutritional requirements at minimum cost. Integer variant, based on the number of servings of each food.
  • Category: Diet.
  • Type: MILP.
  • Library: Pyomo.
  • Solver: GLPK.


  • The model has been modified to run as a Jupyter Notebook.

GitHub: Diet in Pyomo.