Simplex Method Tool Topic Summary for Linear Programming Simplex Method Tutorial Español
 Finite mathematics utility: diet problem solver
Credits
• Argonne National Laboratory Web Site for the nutritional information and its diet problem page that inspired this one.
• William McKeough at Hofstra University for first suggesting the diet problem as a worthwhile topic to include in this site.
• Gabriel Balan, Josh Purinton, and Brent Dingle for their suggestions, testing, and enhancements of simplex method algorithm used here.
• Saul Robles Peña for his translation of this utility into Spanish and his expansion of the list of foods and nutritional information.

Instructions: Press "Select Foods" to bring up a window in which you can choose the foods you wish to be considered for your diet. Then adjust the settings to suit your needs and press "Solve."

 Objective: Minimize total cost total calories total carbohydrates total fat total sodium
 Subject to the following constraints:
 Calories: at least at most ignore calories Cholesterol: at least at most ignore cholesterol mg Total Fat: at least at most ignore fat g Sodium: at least at most ignore sodium mg Carbohydrates: at least at most ignore carbs g Fiber: at least at most ignore fiber g Protein: at least at most ignore protein g Vitamin A: at least at most ignore vitamin A IU Vitamin C: at least at most ignore vitamin C mg Calcium: at least at most ignore vitamin C mg
 The formal linear programming problem will appear below when you press "Solve": Status/Solution: Rounding: significant digits Your optimal diet will appear here:

Disclaimer: This page was created for educational purposes only. Its author is not responsible for any inaccuracies or errors in the results.

Last Updated: March 2013
Copyright © Stefan Waner

Top of Page