Qt Final Assignment

download Qt Final Assignment

of 14

Transcript of Qt Final Assignment

  • 8/8/2019 Qt Final Assignment

    1/14

  • 8/8/2019 Qt Final Assignment

    2/14

  • 8/8/2019 Qt Final Assignment

    3/14

  • 8/8/2019 Qt Final Assignment

    4/14

  • 8/8/2019 Qt Final Assignment

    5/14

    combination.Because only two decision variables, you can also use the graphic.

    ListenRead phoneticallyListenRead phonetically

    Can be seen from the figure, the restrictions affect the feasible region is that demand for iron andedible weight ratio, so surplus = 0; addition, surplus 0 does not affect the other constraintsfeasible solution area, with the result drawing LINGO ran out of the result is the same.

    Fourth, other factors to consider, scenario analysisA situation: Maria edible weight ratio that is too high, asked Edson to change the cooking

    method, the proportion of edible weight cut 1:2, other conditions remain unchanged.By the map that, the fourth weight ratio of edible constraints into the slope of the original,changing the size of the feasible region so that the endpoints of the original optimal solution isno longer optimal.

  • 8/8/2019 Qt Final Assignment

    6/14

    ListenRead phonetically

    Dictionary - View detailed dictionary1. preposition

    1. in2. at

    3. on

    4. into

    5. within

    6. under

    7. inside

    8. upon

    9. amid

    So, rebuilding the model are as follows:

    http://www.google.com/dictionary?source=translation&hl=en&q=v&langpair=cs%7Cenhttp://www.google.com/dictionary?source=translation&hl=en&q=v&langpair=cs%7Cen
  • 8/8/2019 Qt Final Assignment

    7/14

    00

    10000

    02

    10501.012.080012.0003.0

    18002.0015.0

    454

    1

    454

    4.0min

    +

    ++

    +

    +

    G P

    G P

    G P

    G P G P

    G P

    G P

    LINGO obtained as follows:

    Objective value: 16.22614

    Variable Value Reduced Cost

    P 4666.667 0.000000

    G 5500.000 0.000000

    Row Slack or Surplus Dual Price

    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, justto 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

  • 8/8/2019 Qt Final Assignment

    8/14

    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, sothe combination will produce the optimal solution changes, the original base solution is to reducethe demand for iron-based solution into a post.

    Model becomes as follows

    00

    10000065

    10501.012.0

    65012.0003.0

    18002.0015.0

    454

    1

    454

    4.0min

    +

    ++

    +

    +

    G P

    G P G P

    G P

    G P

    G P

    G P

    LINGO obtained as follows:

    Objective value: 14.29883

    Variable Value Reduced Cost

    P 7166.667 0.000000

    G 3625.000 0.000000

    Row Slack or Surplus Dual Price

    1 14.29883 -1.000000

    2 0.000000 -0.3303965E-01

    3 0.000000 -0.1284875

    4 172.5000 0.000000

  • 8/8/2019 Qt Final Assignment

    9/14

    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 weightratio of 6:5 minimum weekly requirement under the 10kg limit, Maria decided to buy 7166.667 gof 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, edibleweight 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:

    Clear that the optimal solution change.Mode as follows:

  • 8/8/2019 Qt Final Assignment

    10/14

    00

    10000

    065

    10501.012.0

    65012.0003.0

    18002.0015.0

    454

    5.0

    454

    4.0min

    +

    +

    ++

    +

    G P

    G P

    G P

    G P

    G P

    G P

    G P

    LINGO obtained as follows:

    Objective value: 10.22490

    Variable Value Reduced Cost

    P 5684.211 0.000000

    G 4736.842 0.000000

    Row Slack or Surplus Dual Price

    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 weightratio of 6:5 minimum weekly requirement under the 10kg limit, Maria decided to buy 5684.211 gof 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.

  • 8/8/2019 Qt Final Assignment

    11/14

    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 demandfor 65 mg, other things being equal .ListenRead phonetically

    Lima Beans Lima Beans

    Protein 22.68 g per 10 ounces 8 g per 100 g 8%

    Iron 6.804 mg per 10 ounces 2.4 mg per 100 g 2.4%

    Vitamin C 0 0%

    Mode as follows:

    00

    10000

    065

    105012.0

    65024.0003.0

    18008.0015.0

    454

    6.0

    454

    4.0min

    +

    ++

    +

    G P

    G P

    G P

    P

    G P

    G P

    G P

    LINGO obtained as follows:

    Objective value: 9.843062

    Variable Value Reduced Cost

    P 8750.000 0.000000

    G 1614.583 0.000000

    Row Slack or Surplus Dual Price

    1 9.843062 -1.000000

  • 8/8/2019 Qt Final Assignment

    12/14

    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 andthe weight ratio of 6:5 minimum weekly requirement under the 10kg limit, Mariadecided to buy 8750 g of potatoes with 1614.583 g Lima beans, needed to spendthe $ 9.843062 yuan.In such a purchase combination, you can find, just meet the minimum iron andvitamin C demand , protein, edible weight ratio and the minimum

    demand is more than a week, meaning to say: these three restrictions type doesnot 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:

  • 8/8/2019 Qt Final Assignment

    13/14

    5 Situation: All-State University student group to re-assess the nutritionalrequirements for school, that demands too loose iron demand, the demandrequirement of vitamin C too tight, then re-set the nutritional needs of a table: theprotein needs to maintain the same 180 g, demand for iron and vitamin C into 120mg into 500 mg, Maria still buy lima beans.

    4 by the situation that the plan were: to change the RHS feasible solution areawill be changed, it will alter the optimal solution.Mode as follows:

    00

    10000

    065

    50012.0

    120024.0003.0

    18008.0015.0

    454

    6.0

    454

    4.0min

    +

    ++

    +

    G P

    G P

    G P

    P

    G P

    G P

    G P

    LINGO obtained as follows:

    Objective value: 10.69855

    Variable Value Reduced Cost

    X1 5714.286 0.000000

    X2 4285.714 0.000000

    Row Slack or Surplus Dual Price

    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

  • 8/8/2019 Qt Final Assignment

    14/14

    Protein 180 g, iron and Vitamin C500 mg 120 mg limit, coupled with the edible and the weightratio of 6:5 minimum weekly requirement under the 10kg limit, Maria decided to buy 5714.286 gof 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 andweekly demand , protein, vitamin C and weight ratio is more than edible, meaningto say: this does not affect the three constraints feasible solution area.ListenRead phonetically