You would like to make a nutritious meal of eggs, edamame, and elbow macaroni. The meal should provide at least 40 g of carbohydrates, at least 20 g of protein, and no more than 50 g of fat. An egg (one serving) contains 2g of carbohydrates, 17 g of protein, and 14 g of fat. A serving of edamame contains 12 g of carbohydrates, 12 g of protein, and 6 g of fat. A serving of elbow macaroni contains 43 g of carbohydrates, 8 g of protein, and 1 g of fat. An egg costs $2, a serving of edamame costs $ 5, and a serving of elbow macaroni costs $3. Formulate a linear optimization model that could be used to determine the number of servings of egg, edamame, and elbow macaroni that should be in the meal in order to meet the nutrition requirements at minimal cost. (You don't need to find the optimal solution to the model you formulate.)

Respuesta :

Answer:

Lets denote

1. eggs as x,

2. edamame as y

3. elbow macaroni as z

The problem then is

min TC=2x+5y+3z

subject to

[tex]2x+12y+43z \geq40\\17x+12y+8z\geq20\\14x+6y+z\leq50\\x\geq0\\y\geq0\\z\geq0[/tex]

Step-by-step explanation:

First the objective is to minimize total cost subject to some nutritional requirements.

So the total cost function (TC) is the number of servings multiplied for the corresponding costs. Eggs cost 2, edamame 5, and macaroni 3

Next we have to meet the nutritional requirements, the first of the restrictions is the protein restriction. The problem requires that the meal contains at least 40g of carbohydrates (that is why the restriction is [tex]\geq 40[/tex]). Then we add how much each meal component adds to the total, eggs add 2g of carbs, edamame 12g, and macaroni 43g.

Same for protein, we need at least 20 grams of protein ([tex]\geq 20[/tex]). Eggs add 17g, edamame adds 12g, and macaroni adds 8g.

Finally we don't want more than 50 grams of fat ([tex]\leq50[/tex]). Eggs add 14g, edamame add 6g and macaroni 1g.

Finally, we add the non negativity restrictions-> we cannot buy negative quantities of these goods, but we allow for zero.