This is a cost minimising problem
The spaghetti and meatball meal planning problem.
The three decision variable consists of how many ounces of uncooked meatballs, how many ounces of uncooked spaghetti, and how many ounces of spaghetti sauce to use in each meal.
The total meal must weigh at least 15 ounces before it is cooked.
Also, each meal must contain at least 4 ounces of meatballs, and 3 ounces of spaghetti sauce, and 6 ounces of spaghetti.
An ounce of meatballs costs $12, an ounce of spaghetti costs $4, an ounce of spaghetti sauce costs $9.
How many ounces of each ingredient should we use, in order to pay the minimum cost?
Your answer should include how many ounces of spaghetti, spaghetti sauce, meatballs, and the total cost.
If you wish to research this more, this problem is an optimisation problem, which is a subset of a bigger discipline called Operations research. You may solve this problem with computational power and different algorithms. However this particular example is simple enough to solve using logic.
This challenge was written by
C. Carl Pegels & Vahid Lotfi
(You can contribute by writing a challenge and sending it to our email, for a chance to feature your challenge!)