Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please add the R code for the solutions Below there is a diet chart which gives calories, protein, carbohydrate and fat content for 4 food

image text in transcribed

Please add the R code for the solutions

Below there is a diet chart which gives calories, protein, carbohydrate and fat content for 4 food items. Sara wants a diet with minimum cost. The diet chart is as follows: The chart gives the nutrient content as well as the per-unit cost of each food item. The diet has to be planned in such a way that it should contain at least 500 calories, 6 grams of protein, 10 grams of carbohydrates and 8 grams of fat. Determine how much of each food item is to be used in the diet to minimize the total cost. Use the notebook homework7Pr2.Rmd file posted on Sakai for this problem. (1) Formulate the linear programming model for this problem. a. Define the decision variables b. Formulate the objective function c. State the constraints (2) Entering the problem data and finding the optimum solution using R Studio a. Call IpSolve library Library (IpSolve) b. Enter the problem Data (formulation) c. Solution - Solve the problem d. Display the optimum solution values? How much of each food item should be used in the diet? e. Display the objective function value (total cost) of the optimum solution? What is the total cost? f. Obtain the dual values. g. What are the dual values for the calorie, protein, carbohydrate, and fat requirements? h. How much would the cost increase if the diet required one additional gram of calorie (501 grams instead of 500)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Matching Supply with Demand An Introduction to Operations Management

Authors: Gerard Cachon, Christian Terwiesch

3rd edition

73525200, 978-0073525204

More Books

Students also viewed these General Management questions