# Linear Regression

Topics: Nutrition, Harshad number, Metabolism Pages: 2 (349 words) Published: July 20, 2011
A registered nurse is trying to develop a diet plan for patients. The required nutritional elements are the total daily requirements of each nutritional element are as indicated in table 2:

The nurse has four basic types to use when planning the menus. The units of nutritional elements per unit of food type are shown in the table below. Note than the cost associated with a unit of ingredient also appears at the bottom of table 3.

Moreover, due to dietary restrictions, the following aspects should also be considered when the developing the diet plan:
The chicken food type should contribute at most 25% of the total calories intake that will result from the diet plan.

The vegetable food type should provide at least 30% of the minimum daily requirements for vitamins.

Provide a linear programming formulation for the above case. (No need to solve the problem.)

Calories (X1)| 160| 25% * 210| 120| 150|
Carbohydrates (X2)| 110| 130| 110| 120|
Protein (X3)| 90| 190| 90| 130|
Vitamins (X4)| 50| 50| 75| 30% * 70|

1. Define the objective
Meet the required daily nutritional allowance

2. Define the decision variables
x1 = amount of calories
x2 = amount of carbohydrates
x3= amount of protein
x4= amount of vitamins

3. Write the mathematical objective function
Z = 2700 * x1 + 300 * x2 + 250 * x3 + 60 * x4

4. Write a one- or two-word description of each constraint
Allowed Calories
Allowed Carbohydrates
Allowed Protein
Allowed Vitamins

5. Write the right-hand side of each constraint
2700
300
250
60

6. Write <, =, or > for each constraint
≤ 2700
≥ 300
≥ 250
≥ 60

7. Write all the decision variables on the left-hand side of each constraint x1 x2 x3 x4 ≤ 2700
x1 x2 x3 x4 ≥ 300
x1 x2 x3 x4 ≥ 250
x1 x2 x3 x4 ≥ 60

8. Write the coefficient for each decision in each constraint 160 x1 + 110 x2 + 90 x3 + 50 x4 ≤ 2700
52.5 x1 + 130 x2 +...
{"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "http://www.studymode.com/essays/Linear-Regression-741523.html", "fetch_time": 1527357319000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2018-22/segments/1526794867841.63/warc/CC-MAIN-20180526170654-20180526190654-00562.warc.gz", "warc_record_offset": 457103933, "warc_record_length": 25005, "token_count": 556, "char_count": 1965, "score": 3.828125, "int_score": 4, "crawl": "CC-MAIN-2018-22", "snapshot_type": "latest", "language": "en", "language_score": 0.814111590385437, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00063-of-00064.parquet"}