Académique Documents
Professionnel Documents
Culture Documents
The student restaurant, dining out more often than the price of something cheap, How can we
fulfill the nutritional requirements of schools under the Da Dao Cheng Ben's minimum purchase
ingredients of Yi Zhi in to maximize profits, this report is the major provisions.
This report aims to establish a linear programming ingredients buy the relationship between
volume and cost to provide the restaurant manager next week to purchase ingredients of
important reference, this model takes into account: the nutritional content of school regulations,
chef's suggestions and The minimum weekly assessment of the demand.
The report also proposed to explore different situations: alternative ingredients, change the
nutritional needs of school ... ... and so on, for different situations, reconstruction of the linear
programming model and make appropriate recommendations based on the results, so that
restaurant managers to understand the method of purchasing.
Top of Form
Edson, restaurant chefs, to Maria a suggestion: If you want the casserole with edible, then the
weight ratio of potato and green beans at least 6:5.
According to the number of students in the school restaurant, Maria considered to provide
adequate casserole each week to prepare potatoes and green beans at least a total of at least 10
kilograms, if there is unnecessary if potato or green beans, Maria do not worry about waste,
because the potatoes or green beans above can be used in other dishes.
Top of Form
The establishment of model
Objectives: Control of potato with green beans purchases, to meet the conditions of the various
constraints to achieve the goal of minimizing the purchase cost.
Unit of weight for the title too, so all the weight units into grams (1lb = 454 g; 28.35 g = 1
ounce); nutritional composition table, into 100 grams of potato per share and the percentage of
nutrients per 100 grams green beans in the percentage share of nutrients
decision variables
P: on behalf of purchases of potatoes per week
G: purchases on behalf of beans per week
✔ 目標式
0.4 1
min imize P + G ← 最小化總購買金額
454 454
✔ 限制式
P≥0 G≥0
Top of Form
Model answers and explanations
From the above model into LINGO, the obtained results are as follows:
P 6153.846 0.000000
G 5128.205 0.000000
1 16.71750 -1.000000
2 14.87179 0.000000
3 0.000000 -0.2089687
4 201.2821 0.000000
5 0.000000 -0.5083023E-04
6 1282.051 0.000000
Protein 180g, 80mg iron and vitamin C1050mg constraints, plus edible and the
weight ratio of 6:5 minimum weekly requirement under the 10kg limit, Maria
decided to buy 6153.846g 5128.205g of green beans with potatoes, the required to
spend at $ 16.7175 yuan.
In such a purchase combination, you can find, just meet the minimum requirement
for iron and the weight ratio of edible <surplus = 0>, protein, vitamin C and the
minimum demand is more than a week.
Also can be seen in other conditions remain unchanged, the reduction of 1 unit of
iron demand, can reduce the cost of 0.209 yuan; in other conditions remain
unchanged, the reduction of 1 unit of edible weight ratio, can be reduced cost
element.
By the sensitivity analysis can know: the other conditions remain unchanged, the protein content
in excess of 14.87179 g increased demand, it will change the optimal combination; in other
conditions unchanged, reducing demand for iron more than 6.105263 mg, it will change the
optimal combination; in other conditions unchanged, the increased demand for vitamin C content
in excess of 201.2821 mg, it will change the optimal combination; Similarly, edibility weight
ratio, more than θ range, the combination will change the optimal solution; Finally, other things
being equal, the weekly increase in demand of more than 1282051 g, it will change the optimal
combination.
Because only two decision variables, you can also use the graphic.
Listen
Read phonetically
Listen
Read phonetically
Can be seen from the figure, the restrictions affect the feasible region is that demand for iron and
edible weight ratio, so surplus = 0; addition, surplus ≠ 0 does not affect the other constraints
feasible solution area, with the result drawing LINGO ran out of the result is the same.
P 4666.667 0.000000
G 5500.000 0.000000
1 16.22614 -1.000000
2 0.000000 -0.3303965E-01
3 0.000000 -0.1284875
4 60.00000 0.000000
5 3833.333 0.000000
6 166.6667 0.000000
The original base solution is to change the weight ratio of edible after the base solution into, just
to meet the minimum requirement of protein with iron, can be seen from the figure.
Protein 180g, 80mg iron and vitamin C1050mg constraints, plus edible and the weight ratio of
1:2 minimum weekly requirement under the 10kg limit, Maria decided to buy 4666.667 g of
potatoes with 5500 g of green beans, the required to spend at $ 16.22614 yuan.
【2】 situation: reducing demand for iron to 65mg, other conditions remain unchanged.
From the previous sensitivity analysis to see: the reduction of iron more than 6.105263 mg, so
the combination will produce the optimal solution changes, the original base solution is to reduce
the demand for iron-based solution into a post.
0.4 1
min P + G
454 454
0.015P + 0.02G ≥ 180
0.003P + 0.012G ≥ 65
0.12P + 0.1G ≥ 1050
5 P − 6G ≥ 0
P + G ≥ 10000
P≥0 G≥0
P 7166.667 0.000000
G 3625.000 0.000000
1 14.29883 -1.000000
2 0.000000 -0.3303965E-01
3 0.000000 -0.1284875
4 172.5000 0.000000
5 14083.33 0.000000
6 791.6667 0.000000
Protein 180 g, 65 mg of iron and vitamin C1050 mg of limitations, plus edible and the weight
ratio of 6:5 minimum weekly requirement under the 10kg limit, Maria decided to buy 7166.667 g
of the potato's green beans with 3625g , the necessary cost of $ 14.29883 yuan.
Optimal solution just to meet the minimum requirement of protein and iron, vitamin C, edible
weight and weekly demand constraint does not affect the feasible solution area.
【3】 situation: Maria to $ 0.5 per pound of green beans to the dealer to buy the rest, demand for
iron into 65 mg, other conditions remain unchanged.
Into the slope from the original target type, as shown below:
P 5684.211 0.000000
G 4736.842 0.000000
1 10.22490 -1.000000
2 0.000000 -0.5680501E-01
3 8.894737 0.000000
4 105.7895 0.000000
5 0.000000 -0.5796429E-05
6 421.0526 0.000000
Protein 180 g, 65 mg of iron and vitamin C1050 mg of limitations, plus edible and the weight
ratio of 6:5 minimum weekly requirement under the 10kg limit, Maria decided to buy 5684.211 g
of potatoes with 4732.842 g of green beans, the required cost of $ 10.2249 yuan.
And found the original context two basic solutions are to reduce costs based solution into peas.
【Situation 4: In the search for Maria's under to find a substitute for green beans Lima beans
(Lima Beans), to purchase the amount of $ 0.6 per pound, the following nutrients, iron demand
for 65 mg, other things being equal .
Listen
Read phonetically
Vitamin C 0 0%
Mode as follows:
0.4 0.6
min P + G
454 454
0.015P + 0.08G ≥ 180
0.003P + 0.024G ≥ 65
0.12P ≥ 1050
5P − 6G ≥ 0
P + G ≥ 10000
P≥0 G≥0
P 8750.000 0.000000
G 1614.583 0.000000
1 9.843062 -1.000000
2 80.41667 0.000000
3 0.000000 -0.5506608E-01
4 0.000000 -0.5965492E-02
5 34062.50 0.000000
6 364.5833 0.000000
Protein 180 g, 80 mg of iron and vitamin C1050 mg of limitations, plus edible and
the weight ratio of 6:5 minimum weekly requirement under the 10kg limit, Maria
decided to buy 8750 g of potatoes with 1614.583 g Lima beans, needed to spend
the $ 9.843062 yuan.
In such a purchase combination, you can find, just meet the minimum iron and
vitamin C demand <surplus = 0>, protein, edible weight ratio and the minimum
demand is more than a week, meaning to say: these three restrictions type does
not affect the feasible solution area.
Also can be seen in other conditions remain unchanged, the reduction of 1 unit of iron demand,
can reduce the cost of 0.055 yuan; in other conditions unchanged, reducing demand for 1 unit of
vitamin C can reduce cost element.
Graphic results are as follows:
【5】 Situation: All-State University student group to re-assess the nutritional
requirements for school, that demands too loose iron demand, the demand
requirement of vitamin C too tight, then re-set the nutritional needs of a table: the
protein needs to maintain the same 180 g, demand for iron and vitamin C into 120
mg into 500 mg, Maria still buy lima beans.
【4】 by the situation that the plan were: to change the RHS feasible solution area
will be changed, it will alter the optimal solution.
Mode as follows:
0.4 0.6
min P + G
454 454
0.015P + 0.08G ≥ 180
0.003P + 0.024G ≥ 120
0.12P ≥ 500
5P − 6G ≥ 0
P + G ≥ 10000
P≥0 G≥0
X1 5714.286 0.000000
X2 4285.714 0.000000
1 10.69855 -1.000000
2 248.5714 0.000000
3 0.000000 -0.2097755E-01
4 185.7143 0.000000
5 2857.143 0.000000
6 0.000000 -0.8181246E-03
Protein 180 g, iron and Vitamin C500 mg 120 mg limit, coupled with the edible and the weight
ratio of 6:5 minimum weekly requirement under the 10kg limit, Maria decided to buy 5714.286 g
of potatoes with 4285.714 g of Lima beans, needed to spend to $ 10.69855 yuan.
In such a purchase combination, you can find, just meet the minimum requirement for iron and
weekly demand <surplus = 0>, protein, vitamin C and weight ratio is more than edible, meaning
to say: this does not affect the three constraints feasible solution area.Listen
Read phonetically