a review of linear programming
play

A review of linear programming Example CTB sells bagels and - PowerPoint PPT Presentation

A review of linear programming Example CTB sells bagels and cupcakes, earning a profit of $6 for each dozen of bagels and $8 for each dozen of cupcakes. We have the following information: 1 dz Bagels 1 dz Cupcakes Amount available Eggs 3 6


  1. A review of linear programming Example CTB sells bagels and cupcakes, earning a profit of $6 for each dozen of bagels and $8 for each dozen of cupcakes. We have the following information: 1 dz Bagels 1 dz Cupcakes Amount available Eggs 3 6 50 Flour 7 5 100 Butter 3 4 75 Additionally, CTB must produce at least 3 dozens bagels everyday for its regulars. How many dozens of bagels and cupcakes should CTB produce each day to maximize total profit?

  2. A review of linear programming Example CTB sells bagels and cupcakes, earning a profit of $6 for each dozen of bagels and $8 for each dozen of cupcakes. We have the following information: 1 dz Bagels 1 dz Cupcakes Amount available Eggs 3 6 50 Flour 7 5 100 Butter 3 4 75 Additionally, CTB must produce at least 3 dozens bagels everyday for its regulars. How many dozens of bagels and cupcakes should CTB produce each day to maximize total profit?

  3. A review of linear programming Formulating a problem as an LP:

  4. A review of linear programming Formulating a problem as an LP: 1. Decision variables:

  5. A review of linear programming Formulating a problem as an LP: 1. Decision variables: = number of dozens of bagels to produce x 1 = number of dozens of cupcakes to produce x 2

  6. A review of linear programming Formulating a problem as an LP: 1. Decision variables: = number of dozens of bagels to produce x 1 = number of dozens of cupcakes to produce x 2 2. Objective function:

  7. A review of linear programming Formulating a problem as an LP: 1. Decision variables: = number of dozens of bagels to produce x 1 = number of dozens of cupcakes to produce x 2 2. Objective function: Total profit = 6 x 1 + 8 x 2

  8. A review of linear programming Formulating a problem as an LP: 1. Decision variables: = number of dozens of bagels to produce x 1 = number of dozens of cupcakes to produce x 2 2. Objective function: Total profit = 6 x 1 + 8 x 2 3. Constraints:

  9. A review of linear programming Formulating a problem as an LP: 1. Decision variables: = number of dozens of bagels to produce x 1 = number of dozens of cupcakes to produce x 2 2. Objective function: Total profit = 6 x 1 + 8 x 2 3. Constraints: 3 x 1 + 6 x 2 50 ≤

  10. A review of linear programming Formulating a problem as an LP: 1. Decision variables: = number of dozens of bagels to produce x 1 = number of dozens of cupcakes to produce x 2 2. Objective function: Total profit = 6 x 1 + 8 x 2 3. Constraints: 3 x 1 + 6 x 2 50 ≤ 7 x 1 + 5 x 2 100 ≤

  11. A review of linear programming Formulating a problem as an LP: 1. Decision variables: = number of dozens of bagels to produce x 1 = number of dozens of cupcakes to produce x 2 2. Objective function: Total profit = 6 x 1 + 8 x 2 3. Constraints: 3 x 1 + 6 x 2 50 ≤ 7 x 1 + 5 x 2 100 ≤ 3 x 1 + 4 x 2 75 ≤

  12. A review of linear programming Formulating a problem as an LP: 1. Decision variables: = number of dozens of bagels to produce x 1 = number of dozens of cupcakes to produce x 2 2. Objective function: Total profit = 6 x 1 + 8 x 2 3. Constraints: 3 x 1 + 6 x 2 50 ≤ 7 x 1 + 5 x 2 100 ≤ 3 x 1 + 4 x 2 75 ≤ x 1 3 ≥

  13. A review of linear programming Formulating a problem as an LP: 1. Decision variables: = number of dozens of bagels to produce x 1 = number of dozens of cupcakes to produce x 2 2. Objective function: Total profit = 6 x 1 + 8 x 2 3. Constraints: 3 x 1 + 6 x 2 50 ≤ 7 x 1 + 5 x 2 100 ≤ 3 x 1 + 4 x 2 75 ≤ x 1 3 ≥ 0 x 1 , x 2 ≥

  14. A review of linear programming So, the LP is max 6 x 1 +8 x 2 3 x 1 +6 x 2 50 s . t . ≤ 7 x 1 +5 x 2 100 ≤ 3 x 1 +4 x 2 75 ≤ 3 x 1 ≥ x 1 , x 2 , 0 ≥

  15. A review of linear programming So, the LP is max 6 x 1 +8 x 2 3 x 1 +6 x 2 50 s . t . ≤ 7 x 1 +5 x 2 100 ≤ 3 x 1 +4 x 2 75 ≤ 3 x 1 ≥ x 1 , x 2 , 0 ≥

  16. A review of linear programming So, the LP is max 6 x 1 +8 x 2 3 x 1 +6 x 2 = 50 s . t . 7 x 1 +5 x 2 = 100 3 x 1 +4 x 2 = 75 x 1 = 3 0 x 1 , x 2 , ≥

  17. A review of linear programming So, the LP is max 6 x 1 +8 x 2 3 x 1 +6 x 2 + x 3 = 50 s . t . 7 x 1 +5 x 2 = 100 3 x 1 +4 x 2 = 75 x 1 = 3 0 x 1 , x 2 , x 3 , ≥

  18. A review of linear programming So, the LP is max 6 x 1 +8 x 2 3 x 1 +6 x 2 + x 3 = 50 s . t . 7 x 1 +5 x 2 + x 4 = 100 3 x 1 +4 x 2 = 75 x 1 = 3 0 x 1 , x 2 , x 3 , x 4 , ≥

  19. A review of linear programming So, the LP is max 6 x 1 +8 x 2 3 x 1 +6 x 2 + x 3 = 50 s . t . 7 x 1 +5 x 2 + x 4 = 100 3 x 1 +4 x 2 + x 5 = 75 x 1 = 3 0 x 1 , x 2 , x 3 , x 4 , x 5 , ≥

  20. A review of linear programming So, the LP is max 6 x 1 +8 x 2 3 x 1 +6 x 2 + x 3 = 50 s . t . 7 x 1 +5 x 2 + x 4 = 100 3 x 1 +4 x 2 + x 5 = 75 x 1 − x 6 = 3 0 x 1 , x 2 , x 3 , x 4 , x 5 , x 6 ≥

  21. A review of linear programming So, the LP is (after adding slack variables x 1 , x 2 , . . . , x 6 ) max 6 x 1 +8 x 2 3 x 1 +6 x 2 + x 3 = 50 s . t . 7 x 1 +5 x 2 + x 4 = 100 3 x 1 +4 x 2 + x 5 = 75 x 1 − x 6 = 3 0 x 1 , x 2 , x 3 , x 4 , x 5 , x 6 ≥

  22. A review of linear programming LP in standard form: c T x max Ax = b s . t . x ≥ 0 , where c , x are n -vectors, b is an m -vector, and A is an m × n matrix.

  23. A review of linear programming   x 1 x 2   In our example, n = 6, m = 4, x =  and .   .  .   x 6   6     8 3 6 1 0 0 0 50     0 7 5 0 1 0 0 100       c = , A =  , b =       0 3 4 0 0 1 0 75  .       0 1 0 0 0 0 − 1 3   0

Recommend


More recommend