Lecture 3 MGMT 650 Sensitivity Analysis in LP

  • Slides: 32
Download presentation
Lecture 3 MGMT 650 Sensitivity Analysis in LP Chapter 3

Lecture 3 MGMT 650 Sensitivity Analysis in LP Chapter 3

Example n Consider the following linear program: Min 6 x 1 + 9 x

Example n Consider the following linear program: Min 6 x 1 + 9 x 2 s. t. ($ cost) x 1 + 2 x 2 < 8 10 x 1 + 7. 5 x 2 > 30 x 2 > 2 x 1, x 2 > 0 2

The Management Scientist Output OBJECTIVE FUNCTION VALUE = 27. 000 Variable x 1 x

The Management Scientist Output OBJECTIVE FUNCTION VALUE = 27. 000 Variable x 1 x 2 Constraint 1 2 3 Value 1. 500 2. 000 Slack/Surplus 2. 500 0. 000 Reduced Cost 0. 000 Dual Price 0. 000 -0. 600 -4. 500 3

The Management Scientist Output (continued) OBJECTIVE COEFFICIENT RANGES Variable Lower Limit Current Value x

The Management Scientist Output (continued) OBJECTIVE COEFFICIENT RANGES Variable Lower Limit Current Value x 1 0. 000 6. 000 x 2 4. 500 9. 000 Upper Limit 12. 000 No Limit RIGHTHAND SIDE RANGES Constraint Lower Limit Current Value 1 5. 500 8. 000 2 15. 000 30. 000 3 0. 000 2. 000 Upper Limit No Limit 55. 000 4

Example Optimal Solution According to the output: x 1 = 1. 5 x 2

Example Optimal Solution According to the output: x 1 = 1. 5 x 2 = 2. 0 Objective function value = 27. 00 5

Range of Optimality n Question Suppose the unit cost of x 1 is decreased

Range of Optimality n Question Suppose the unit cost of x 1 is decreased to $4. Is the current solution still optimal? What is the value of the objective function when this unit cost is decreased to $4? 6

The Management Scientist Output OBJECTIVE COEFFICIENT RANGES Variable Lower Limit Current Value x 1

The Management Scientist Output OBJECTIVE COEFFICIENT RANGES Variable Lower Limit Current Value x 1 0. 000 6. 000 x 2 4. 500 9. 000 Upper Limit 12. 000 No Limit RIGHTHAND SIDE RANGES Constraint Lower Limit Current Value 1 5. 500 8. 000 2 15. 000 30. 000 3 0. 000 2. 000 Upper Limit No Limit 55. 000 4. 000 7

Range of Optimality n Answer • The output states that the solution remains optimal

Range of Optimality n Answer • The output states that the solution remains optimal as long as the objective function coefficient of x 1 is between 0 and 12. • Because 4 is within this range, the optimal solution will not change. • However, the optimal total cost will be affected • 6 x 1 + 9 x 2 = 4(1. 5) + 9(2. 0) = $24. 00. 8

Range of Optimality n Question How much can the unit cost of x 2

Range of Optimality n Question How much can the unit cost of x 2 be decreased without concern for the optimal solution changing? n The Management Scientist Output OBJECTIVE COEFFICIENT RANGES Variable Lower Limit Current Value Upper Limit x 1 0. 000 6. 000 12. 000 x 2 4. 500 9. 000 No Limit RIGHTHAND SIDE RANGES Constraint Lower Limit Current Value Upper Limit 1 5. 500 8. 000 No Limit 2 15. 000 30. 000 55. 000 3 0. 000 2. 000 4. 000 9

Range of Optimality n Answer The output states that the solution remains optimal as

Range of Optimality n Answer The output states that the solution remains optimal as long as the objective function coefficient of x 2 does not fall below 4. 5. 10

Range of Optimality and 100% Rule n Question If simultaneously the cost of x

Range of Optimality and 100% Rule n Question If simultaneously the cost of x 1 was raised to $7. 5 and the cost of x 2 was reduced to $6, would the current solution remain optimal? n Answer • If c 1 = 7. 5, the amount c 1 changed is 7. 5 - 6 = 1. 5. • • • The maximum allowable increase is 12 - 6 = 6, • so this is a 1. 5/6 = 25% change. If c 2 = 6, the amount that c 2 changed is 9 - 6 = 3. The maximum allowable decrease is 9 - 4. 5 = 4. 5, • so this is a 3/4. 5 = 66. 7% change. The sum of the change percentages is 25% + 66. 7% = 91. 7%. Since this does not exceed 100% the optimal solution would not change. 11

Range of Feasibility n Question If the right-hand side of constraint 3 is increased

Range of Feasibility n Question If the right-hand side of constraint 3 is increased by 1, what will be the effect on the optimal solution? OBJECTIVE COEFFICIENT RANGES Variable Lower Limit Current Value Upper Limit x 1 0. 000 6. 000 12. 000 x 2 4. 500 9. 000 No Limit RIGHTHAND SIDE RANGES Constraint Lower Limit Current Value Upper Limit 1 5. 500 8. 000 No Limit 2 15. 000 30. 000 55. 000 3 0. 000 2. 000 4. 000 12

Range of Feasibility – Contd. OBJECTIVE FUNCTION VALUE = 27. 000 Variable x 1

Range of Feasibility – Contd. OBJECTIVE FUNCTION VALUE = 27. 000 Variable x 1 x 2 Constraint 1 2 3 Value 1. 500 2. 000 Slack/Surplus 2. 500 0. 000 Reduced Cost 0. 000 Dual Price 0. 000 -0. 600 -4. 500 13

Range of Feasibility n Answer • A dual price represents the improvement in the

Range of Feasibility n Answer • A dual price represents the improvement in the objective function value per unit increase in the righthand side. • A negative dual price indicates a deterioration (negative improvement) in the objective, which in this problem means an increase in total cost because we're minimizing. • Since the right-hand side remains within the range of feasibility, there is no change in the optimal solution. • However, the objective function value increases by $4. 50. 14

Reduced Cost n Definition • How much the objective function coefficient of each variable

Reduced Cost n Definition • How much the objective function coefficient of each variable would have to improve before it would be possible for that variable to assume a positive value in the optimal solution 15

(Alternatively) LINDO output Report (of Diet Problem) 16

(Alternatively) LINDO output Report (of Diet Problem) 16

Integer Programming Applications Chapter 8

Integer Programming Applications Chapter 8

Example: Metropolitan Microwaves n Metropolitan Microwaves, Inc. is planning to expand its operations into

Example: Metropolitan Microwaves n Metropolitan Microwaves, Inc. is planning to expand its operations into other electronic appliances. The company has identified seven new product lines it can carry. Relevant information about each line follows on the next slide. Product Line 1. 2. 3. 4. 5. 6. 7. TV/DVDs Color TVs Projection TVs VCRs DVD Players Video Games Home Computers Initial Floor Space Exp. Rate Invest. (Sq. Ft. ) of Return $ 6, 000 12, 000 20, 000 14, 000 15, 000 2, 000 32, 000 125 150 200 40 40 20 100 8. 1% 9. 0 11. 0 10. 2 10. 5 14. 1 13. 2 18

Example: Metropolitan Microwaves n n n Metropolitan has decided that they should not stock

Example: Metropolitan Microwaves n n n Metropolitan has decided that they should not stock projection TVs unless they stock either TV/DVDs or color TVs. Also, they will not stock both VCRs and DVD players, and they will stock video games if they stock color TVs. Finally, the company wishes to introduce at least three new product lines. The company has $45, 000 to invest and 420 sq. ft. of floor space available Determine Metropolitan’s optimal expansion policy to maximize its overall expected return. 19

Problem Formulation n Define Decision Variables xj = 1 if product line j is

Problem Formulation n Define Decision Variables xj = 1 if product line j is introduced; = 0 otherwise. where: Product line 1 = TV/DVDs Product line 2 = Color TVs Product line 3 = Projection TVs Product line 4 = VCRs Product line 5 = DVD Players Product line 6 = Video Games Product line 7 = Home Computers 20

Problem Formulation n Define the Decision Variables xj = 1 if product line j

Problem Formulation n Define the Decision Variables xj = 1 if product line j is introduced; = 0 otherwise. n Define the Objective Function Maximize total expected return: Max. 081(6000)x 1 +. 09(12000)x 2 +. 11(20000)x 3 +. 102(14000)x 4 +. 105(15000)x 5 +. 141(2000)x 6 +. 132(32000)x 7 21

Problem Formulation n Define the Constraints 1) Budget: 6 x 1 + 12 x

Problem Formulation n Define the Constraints 1) Budget: 6 x 1 + 12 x 2 + 20 x 3 + 14 x 4 + 15 x 5 + 2 x 6 + 32 x 7 < 45 2) Space: 125 x 1 +150 x 2 +200 x 3 +40 x 4 +40 x 5 +20 x 6 +100 x 7 < 420 3) Stock projection TVs only if stock TV/VCRs or color TVs: x 1 + x 2 > x 3 or x 1 + x 2 - x 3 > 0 4) Do not stock both VCRs and DVD players: x 4 + x 5 < 1 5) Stock video games if they stock color TV's: x 2 - x 6 > 0 6) Introduce at least 3 new lines: x 1 + x 2 + x 3 + x 4 + x 5 + x 6 + x 7 > 3 7) Variables are 0 or 1: xj = 0 or 1 for j = 1, , , 7 22

Optimal Solution in LINDO Expected return Introduce TV/DVDs Projection TVs DVD players 23

Optimal Solution in LINDO Expected return Introduce TV/DVDs Projection TVs DVD players 23

Optimal Solution in Management Scientist 24

Optimal Solution in Management Scientist 24

Integer Programming Application in Distribution System Design · · Dell Computers operates a plant

Integer Programming Application in Distribution System Design · · Dell Computers operates a plant in St. Louis; annual capacity = 30000 units Computers are shipped to regional distribution centers located in Boston, Atlanta and Houston; anticipated demands = 30, 000, 20, 000 respectively Because of anticipated increase in demand, plan to increase capacity by constructing a new plant in one or more locations in Detroit, Columbus, Denver or Kansas City. Proposed Location Annual Fixed Cost ($) Annual Capacity Detroit 175, 000 10, 000 Columbus 300, 000 20, 000 Denver 375, 000 30, 000 Kansas City 500, 000 40, 000 Develop a model for choosing the best plant locations · Determine the optimal amounts to transport from each plant to each distribution center such that all demand is satisfied. Plant Site Boston Atlanta Houston Detroit 5 2 3 Columbus 4 3 4 Denver 9 7 5 Kansas City 10 4 2 St. Louis 8 4 3 25

Formulation Minimize 5 x 11+2 x 12+3 x 13+4 x 21+3 x 22+4 x

Formulation Minimize 5 x 11+2 x 12+3 x 13+4 x 21+3 x 22+4 x 23+9 x 31+7 x 32+5 x 33+10 x 41+4 x 42+2 x 43 +8 x 51+4 x 52+3 x 53+175000 y 1+300000 y 2+375000 y 3+500000 y 4 Subject to · x 11+x 12+x 13 -10000 y 1<=0 Detroit capacity · x 21+x 22+x 23 -20000 y 2<=0 Columbus capacity · x 31+x 32+x 33 -30000 y 3<=0 Denver capacity · x 41+x 42+x 43 -40000 y 4<=0 Kansas City capacity · x 51+x 52+x 53 <=30000 St. Louis capacity · x 11+x 21+x 31+x 41+x 51=30000 Boston demand · x 12+x 22+x 32+x 42+x 52=20000 Atlanta demand · x 13+x 23+x 33+x 43+x 53=20000 Houston demand · xij>=0 Non-negativity constraints · y 1, y 2, y 3, y 4 = {0, 1} Integrality constraints 26 ·

Optimal Solution · · Locate 1 new plant in Kansas City (capacity = 40000)

Optimal Solution · · Locate 1 new plant in Kansas City (capacity = 40000) {y 4=1} Supply 30000 from existing St. Louis plant to Boston DC {x 51=30000} Supply 20000 from existing St. Louis plant to Atlanta DC {x 42=20000} Supply 20000 from existing St. Louis plant to Houston DC {x 43=20000} 27

Example: Tina’s Tailoring n n n Tina's Tailoring has five idle tailors and four

Example: Tina’s Tailoring n n n Tina's Tailoring has five idle tailors and four custom garments to make. The estimated time (in hours) it would take each tailor to make each garment is shown below. An 'X' indicates an unacceptable tailor-garment assignment. Formulate an integer program for determining the tailor-garment assignments that minimize the total estimated time spent making the four garments. No tailor is to be assigned more than one garment and each garment is to be worked on by only one tailor. Garment Wedding gown Clown costume Admiral's uniform Bullfighter's outfit 1 19 11 12 X Tailor 2 3 23 20 14 X 8 11 20 20 4 21 12 X 18 5 18 10 9 21 28

Formulation: Tina’s Tailoring n n Define the decision variables xij = 1 if garment

Formulation: Tina’s Tailoring n n Define the decision variables xij = 1 if garment i is assigned to tailor j = 0 otherwise. Number of decision variables = [(# of garments)(# of tailors)] (# of unacceptable assignments) = [4(5)] - 3 = 17 Define the objective function Minimize total time spent making garments: Min 19 x 11 + 23 x 12 + 20 x 13 + 21 x 14 + 18 x 15 + 11 x 21 + 14 x 22 + 12 x 24 + 10 x 25 + 12 x 31 + 8 x 32 + 11 x 33 + 9 x 35 + 20 x 42 + 20 x 43 + 18 x 44 + 21 x 45 29

Constraints: Tina’s Tailoring n n Exactly one tailor per garment: 1) x 11 +

Constraints: Tina’s Tailoring n n Exactly one tailor per garment: 1) x 11 + x 12 + x 13 + x 14 + x 15 = 1 2) x 21 + x 22 + x 24 + x 25 = 1 3) x 31 + x 32 + x 33 + x 35 = 1 4) x 42 + x 43 + x 44 + x 45 = 1 No more than one garment per tailor: 5) x 11 + x 21 + x 31 <= 1 6) x 12 + x 22 + x 32 + x 42 <= 1 7) x 13 + x 33 + x 43 <= 1 8) x 14 + x 24 + x 44 <= 1 9) x 15 + x 25 + x 35 + x 45 <= 1 Integrality: xij > {0, 1} for i = 1, . . , 4 and j = 1, . . , 5 30

Optimal Solution Estimated total time Wedding Gown to Tailor #5 Clown costume to Tailor

Optimal Solution Estimated total time Wedding Gown to Tailor #5 Clown costume to Tailor #1 Admiral’s uniform to Tailor #2 Bullfighter’s outfit to Tailor #4 31

Airline Crew Scheduling · · Southeast Airlines needs to assign crews to cover all

Airline Crew Scheduling · · Southeast Airlines needs to assign crews to cover all of its upcoming flights. We will focus on assigning 3 crews based in San Francisco to the flights listed below. Flight Leg 1 2 3 4 5 6 7 8 9 10 1 SF to LA 2 SF to Denver 3 SF to Seattle 4 LA to Chicago 5 LA to SF 6 Chicago to Denver 7 Chicago to Seattle 8 Denver to SF 9 Denver to Chicago 10 Seattle to SF 11 Seattle to LA Cost (000’s) · · · 1 1 1 1 3 3 2 4 3 4 4 7 5 3 3 4 5 7 2 4 2 6 3 5 2 2 4 2 5 2 3 1 4 3 2 1 1 2 2 12 1 1 2 11 8 5 2 4 4 2 9 9 8 9 Exactly 3 of the feasible sequences need to be chosen such that every flight is covered. It is permissible to have more than 1 crew per flight, where the extra crews would fly as passengers, but union contracts require that the extra crews would still need to be paid for their time as if they were working. Schedule one crew for every feasible sequence to minimize the total cost of the 3 crew assignments that cover all the flights. 32