Math Problem Statement

After coming back from the holidays, you found out that you gained weight. You are now going on a diet using IIFYM. You must eat 100g of protein, 60g of fat, and 250g of carb a day. Twix is $2 and has 10g of carb and 1g of fat. Oatmeal is $5 and has 5g of carb and 3g of protein. Egg is $3 and has 10g of protein and 5g of fat. Lastly, Big Mac is $5 and has 10g of everything. What is the least expensive way to fill your macro?

Solution

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

Linear Programming
Optimization

Formulas

Minimize cost: C = 2x_1 + 5x_2 + 3x_3 + 5x_4
Protein constraint: 3x_2 + 10x_3 + 10x_4 >= 100
Fat constraint: 1x_1 + 5x_3 + 10x_4 >= 60
Carb constraint: 10x_1 + 5x_2 + 10x_4 >= 250

Theorems

Fundamental Theorem of Linear Programming

Suitable Grade Level

University Level (Advanced Math, Operations Research)