Simplex Method Tool Topic Summary for Linear Programming Simplex Method Tutorial Español
Finite mathematics utility: diet problem solver

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