Find the diet that has minimal cost

Assignment Help MATLAB Programming
Reference no: EM133234173

Linear Programming/MATLAB Programming Assignment Question - Dietary optimisation

There are six different foods: Bread, Milk, Cheese, Fish, Potato and Yogurt:

 

Bread

Milk

Cheese

Potato

Fish

Yogurt

Cost, $

2.0

3.5

8.0

1.5

11.0

1.0

Protein, g

4.0

8.0

7.0

1.3

8.0

9.2

Fat, g

1.0

5.0

9.0

0.1

7.0

1.0

Carbohydrates, g

15.0

11.7

0.4

22.6

0.0

17.0

Calories, Cal

90

120

106

97

130

180

(1) We have to find a diet that contains not less than 150 calories, not more than 12g of protein, not less than 15g of carbohydrates and not less than 8g of fat. In addition the diet should include at least 0.5kg of fish and not more than 1 cup of milk. Find the diet that has minimal cost.

(2) Select 5-7 different foods you usually have, search the related information and form a similar table as above. Formulate two LP problems (one is to minimise the cost, the other uses cost as a constraint). After solving each of the two problems, do a sensitivity analysis on the cost of one or two foods.

Use both MATLAB Optimisation Toolbox and Excel Solver to solve the problems and perform sensitivity analysis.

Reference no: EM133234173

Questions Cloud

Why might a child with adhd have difficulty learning : What can his parents and teachers do to help him cope with this disability? Why might a child with ADHD have difficulty learning? Be specific.
What cognitive changes normally take place between concrete : The first paragraph of your assignment should be a discussion about what cognitive changes normally take place between concrete.
How to build a team to deliver business results globally : You have been promoted to a senior management position of your company. How to build a team to deliver business results locally and globally
Derive the model of the optimisation problem : (1) Derive the model of the optimisation problem; (2) solve the problem using Lagrange Multiplier and another two numerical methods/software
Find the diet that has minimal cost : In addition the diet should include at least 0.5kg of fish and not more than 1 cup of milk. Find the diet that has minimal cost
Relation between brain and cognition changed over time : How have views of the nature of the relation between brain and cognition changed over time? Briefly summarize the main structures and functions of the brain.
Explain human sexual orientation : Discuss why you think any of these theories are important, how you see the theories working together to explain human sexual orientation.
Identify the developmental stages sociocultural-psychosocial : Identify the developmental stages (sociocultural, psychosocial, attachment, cognitive development, etc.) and attachment styles of KAREN Campbell.
What are the physical and mental effects of stress : What are the physical and mental effects of stress? What is psychological resilience, and why is it so important? (consider pathophysiology and coping skills).

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd