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

  Determine the frequency response function

determine the frequency response function H(ej?). Plot the magnitude response - Analysis of these signals is often easier to perform in the frequency domain

  Non-dimensional 2D incompressible Navier-Stokes equations

Show that the non-dimensional 2D incompressible Navier-Stokes equations - determine the flow in the channel assuming no-slip, impermeable boundary conditions

  Random number generator to create a symmetric matrix

Use a random number generator to create a symmetric matrix - without using built-in MATLAB commands, using the Power Method in combination with the Method of Deflation, obtain the eigen values & eigenvectors of the matrix

  Write MATLAB code for thermal stresses fem

Prepare MATLAB coding for attached paper. Paper - Finite difference approach for non-homogeneous problem of thermal stresses in cartesian domain

  The gauss-newton method

Write up your results using our standard format. Show and discuss the results of Steps 1-3 in some detail, including the observed convergence rates of steepest descent versus the Gauss-Newton method

  Estimate the numerical wave speed

Scheme and try a couple of values for α, one close to 1 and the other not. Convince yourself that a smaller Δt is not necessarily a better choice.

  Does the threshold increase or decrease with axon diameter

Write down your threshold amplitude and duration values in a table and enter into an mfile. Plot the current versus duration. This is called strength-duration curve.

  Compute the eigenvalues and eigenvectors of the matrix

Compute the eigenvalues and eigenvectors of the matrix

  Write a function that takes a square matrix

Write a function that takes a square matrix, say A, that is odd as an input. This function must add up the edge elements of the matrix

  Write a matlab script to calculate the cardiac output

Write a Matlab script to calculate the cardiac output of this patient in liters per minute by using the trapezoid rule to estimate the area

  How to plot each of these vector fields

You need to help on how to plot each of these vector fields - v=yi-xj and v=xi in MATLAB Programming.

  Graph the damped frequency

The system consists of a single mass of M = 1 kg having a spring constant k = 10 N/m with a damping ratio ζ that varies from 0 to 2. Graph the damped frequency ωd as a function of damping ratio ζ as ζ goes from 0 to 2

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