sensitivity analysis of the galaxy linear programming model

26
1 Max 8X 1 + 5X 2 (Weekly profit) subject to 2X 1 + 1X 2 1000 (Plastic) 3X 1 + 4X 2 2400 (Production Time) X 1 + X 2 700 (Total production) X 1 - X 2 350 (Mix) X j > = 0, j = 1,2 (Nonnegativity) Sensitivity Analysis of Sensitivity Analysis of The Galaxy Linear The Galaxy Linear Programming Model Programming Model

Upload: gertrude-lehmann

Post on 31-Dec-2015

38 views

Category:

Documents


2 download

DESCRIPTION

Sensitivity Analysis of The Galaxy Linear Programming Model. Max 8X 1 + 5X 2 (Weekly profit) subject to 2X 1 + 1X 2 £ 1000 (Plastic) 3X 1 + 4X 2 £ 2400 (Production Time) X 1 + X 2 £ 700 (Total production) X 1 - X 2 £ 350 (Mix) - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Sensitivity Analysis of  The Galaxy Linear Programming Model

1

Max 8X1 + 5X2 (Weekly profit)subject to2X1 + 1X2 1000 (Plastic)

3X1 + 4X2 2400 (Production Time)

X1 + X2 700 (Total production)

X1 - X2 350 (Mix)

Xj> = 0, j = 1,2 (Nonnegativity)

Sensitivity Analysis of Sensitivity Analysis of The Galaxy Linear Programming ModelThe Galaxy Linear Programming Model

Page 2: Sensitivity Analysis of  The Galaxy Linear Programming Model

2

– If a linear programming problem has an optimal solution, an extreme point is optimal.

Extreme points and optimal solutionsExtreme points and optimal solutions

Page 3: Sensitivity Analysis of  The Galaxy Linear Programming Model

3

The Role of Sensitivity Analysis The Role of Sensitivity Analysis of the Optimal Solutionof the Optimal Solution

• Is the optimal solution sensitive to changes in input parameters?

• Possible reasons for asking this question:– Parameter values used were only best estimates.– Dynamic environment may cause changes.– “What-if” analysis may provide economical and

operational information.

Page 4: Sensitivity Analysis of  The Galaxy Linear Programming Model

4

• Range of Optimality– The optimal solution will remain unchanged as long as

• An objective function coefficient lies within its range of

optimality • There are no changes in any other input parameters.

– The value of the objective function will change if the

coefficient multiplies a variable whose value is nonzero.

Sensitivity Analysis of Sensitivity Analysis of Objective Function Coefficients.Objective Function Coefficients.

Page 5: Sensitivity Analysis of  The Galaxy Linear Programming Model

5

500

1000

500 800

X2

X1Max 8X

1 + 5X2

Max 4X1 + 5X

2

Max 3.75X1 + 5X

2

Max 2X1 + 5X

2

Sensitivity Analysis of Sensitivity Analysis of Objective Function Coefficients.Objective Function Coefficients.

Page 6: Sensitivity Analysis of  The Galaxy Linear Programming Model

6

500

1000

400 600 800

X2

X1

Max8X1 + 5X

2

Max 3.75X1 + 5X

2

Max 10 X

1 + 5X2

Range of optimality: [3.75, 10]

Sensitivity Analysis of Sensitivity Analysis of Objective Function Coefficients.Objective Function Coefficients.

Page 7: Sensitivity Analysis of  The Galaxy Linear Programming Model

7

• Reduced costAssuming there are no other changes to the input parameters, the reduced cost for a variable Xj that has a value of “0” at the optimal solution is:

– The negative of the objective coefficient increase of the variable Xj (-Cj) necessary for the variable to be positive in the optimal solution

– Alternatively, it is the change in the objective value per unit increase of Xj.

• Complementary slackness At the optimal solution, either the value of a variable is zero, or its reduced cost is 0.

Page 8: Sensitivity Analysis of  The Galaxy Linear Programming Model

8

• In sensitivity analysis of right-hand sides of constraints we are interested in the following questions:– Keeping all other factors the same, how much would the

optimal value of the objective function (for example, the profit) change if the right-hand side of a constraint changed by one unit?

– For how many additional or fewer units will this per unit change be valid?

Sensitivity Analysis of Sensitivity Analysis of Right-Hand Side ValuesRight-Hand Side Values

Page 9: Sensitivity Analysis of  The Galaxy Linear Programming Model

9

• Any change to the right hand side of a binding constraint will change the optimal solution.

• Any change to the right-hand side of a non-binding constraint that is less than its slack or surplus, will cause no change in the optimal solution.

Sensitivity Analysis of Sensitivity Analysis of Right-Hand Side ValuesRight-Hand Side Values

Page 10: Sensitivity Analysis of  The Galaxy Linear Programming Model

10

Shadow PricesShadow Prices

• Assuming there are no other changes to the input parameters, the change to the objective function value per unit increase to a right hand side of a constraint is called the “Shadow Price”

Page 11: Sensitivity Analysis of  The Galaxy Linear Programming Model

11

1000

500

X2

X1

500

2X1 + 1x

2 <=1000

When more plastic becomes available (the plastic constraint is relaxed), the right hand side of the plastic constraint increases.

Production timeconstraint

Maximum profit = $4360

2X1 + 1x

2 <=1001 Maximum profit = $4363.4

Shadow price = 4363.40 – 4360.00 = 3.40

Shadow Price – graphical demonstrationShadow Price – graphical demonstrationThe Plastic constraint

Page 12: Sensitivity Analysis of  The Galaxy Linear Programming Model

12

Range of FeasibilityRange of Feasibility

• Assuming there are no other changes to the input parameters, the range of feasibility is– The range of values for a right hand side of a constraint, in

which the shadow prices for the constraints remain unchanged.

– In the range of feasibility the objective function value changes as follows:Change in objective value = [Shadow price][Change in the right hand side value]

Page 13: Sensitivity Analysis of  The Galaxy Linear Programming Model

13

Range of FeasibilityRange of Feasibility

1000

500

X2

X1

500

2X1 + 1x

2 <=1000

Increasing the amount of plastic is only effective until a new constraint becomes active.

The Plastic constraint

This is an infeasible solutionProduction timeconstraint

Production mix constraintX1 + X2 700

A new activeconstraint

Page 14: Sensitivity Analysis of  The Galaxy Linear Programming Model

14

Range of FeasibilityRange of Feasibility

1000

500

X2

X1

500

The Plastic constraint

Production timeconstraint

Note how the profit increases as the amount of plastic increases.

2X1 + 1x

2 1000

Page 15: Sensitivity Analysis of  The Galaxy Linear Programming Model

15

Range of FeasibilityRange of Feasibility

1000

500

X2

X1

5002X1 + 1X2 1100

Less plastic becomes available (the plastic constraint is more restrictive).

The profit decreases

A new activeconstraint

Infeasiblesolution

Page 16: Sensitivity Analysis of  The Galaxy Linear Programming Model

16

– Sunk costs: The shadow price is the value of an extra unit of the resource, since the cost of the resource is not included in the calculation of the objective function coefficient.

– Included costs: The shadow price is the premium value above the existing unit value for the resource, since the cost of the resource is included in the calculation of the objective function coefficient.

The correct interpretation of shadow prices The correct interpretation of shadow prices

Page 17: Sensitivity Analysis of  The Galaxy Linear Programming Model

17

The Process for Other Optimality Changes The Process for Other Optimality Changes

• Deletion of a constraint: The process: Determine if the constraint is a binding (i.e. active, important) constraint by finding whether its slack/surplus value is

zero. If binding, deletion is very likely to change the current optimal solution. Delete the constraint and re-solve the problem. Otherwise, (if not a binding

constraint) deletion will not affect the optimal solution.

• Addition of a variable: The coefficient of the new variable in the objective function, and the shadow prices of the resources provide information about marginal

worth of resources and knowing the resource needs corresponding to the new variable, the decision can be made, e.g., if the new product is profitable or not.

The process: Compute what will be your loss if you produce the new product using the shadow price values (i.e., what goes into producing the new product).

Then compare it with its net profit. If the profit is less than or equal to the amount of the loss then DO NOT produce the new product. Otherwise it is profitable

to produce the new product. To find out the production level of the new product resolves the new problem.

• Addition of a constraint: The process: Insert the current optimal solution into the newly added constraint. If the constraint is not violated, the new constraint

does NOT affect the optimal solution. Otherwise, the new problem must be resolved to obtain the new optimal solution.

• Deletion of a variable: The process: If for the current optimal solution, the value of the deleted variable is zero, then the current optimal solution still is optimal

without including that variable. Otherwise, delete the variable from the objective function and the constraints, and then resolve the new problem.

Page 18: Sensitivity Analysis of  The Galaxy Linear Programming Model

18

• Infeasibility: Occurs when a model has no feasible point.

• Unboundness: Occurs when the objective can become

infinitely large (max), or infinitely small (min).

• Alternate solution: Occurs when more than one point

optimizes the objective function

One Must Not Do Any Sensitivity One Must Not Do Any Sensitivity Analysis one Models Without Analysis one Models Without

Unique Optimal SolutionsUnique Optimal Solutions

Page 19: Sensitivity Analysis of  The Galaxy Linear Programming Model

19

1

No point, simultaneously,

lies both above line and

below lines and

.

1

2 32

3

Infeasible ModelInfeasible Model

Page 20: Sensitivity Analysis of  The Galaxy Linear Programming Model

20

Unbounded solutionUnbounded solution

The feasible

region

Maximize

the Objective Function

Page 21: Sensitivity Analysis of  The Galaxy Linear Programming Model

21

• This Solver does alert the user to the existence of alternate optimal solutions.

WinQBS Solver – An Alternate Optimal WinQBS Solver – An Alternate Optimal SolutionSolution

Page 22: Sensitivity Analysis of  The Galaxy Linear Programming Model

22

Cost Minimization Diet Problem Cost Minimization Diet Problem • Mix two sea ration products: Texfoods, Calration.• Minimize the total cost of the mix. • Meet the minimum requirements of Vitamin A, Vitamin D, and Iron.

Page 23: Sensitivity Analysis of  The Galaxy Linear Programming Model

23

• Decision variables– X1 (X2) -- The number of two-ounce portions of

Texfoods (Calration) product used in a serving.

• The ModelMinimize 0.60X1 + 0.50X2Subject to

20X1 + 50X2 100 Vitamin A 25X1 + 25X2 100 Vitamin D 50X1 + 10X2 100 Iron X1, X2 0

Cost per 2 oz.

% Vitamin Aprovided per 2 oz.

% required

Cost Minimization Diet Problem Cost Minimization Diet Problem

Page 24: Sensitivity Analysis of  The Galaxy Linear Programming Model

24

10

2 44 5

Feasible RegionFeasible Region

Vitamin “D” constraint

Vitamin “A” constraint

The Iron constraint

The Diet Problem - Graphical solutionThe Diet Problem - Graphical solution

Page 25: Sensitivity Analysis of  The Galaxy Linear Programming Model

25

• Summary of the optimal solution

– Texfood product = 1.5 portions (= 3 ounces)Calration product = 2.5 portions (= 5 ounces)

– Cost =$ 2.15 per serving. – The minimum requirement for Vitamin D and iron are met with

no surplus. – The mixture provides 155% of the requirement for Vitamin A.

Cost Minimization Diet Problem Cost Minimization Diet Problem

Page 26: Sensitivity Analysis of  The Galaxy Linear Programming Model

26

• Linear programming software packages solve large linear models.

• Most of the software packages use the algebraic technique called the Simplex algorithm.

• The input to any package includes:– The objective function criterion (Max or Min).– The type of each constraint: .– The actual coefficients for the problem.

(WinQSB) Professional Computer Solution of (WinQSB) Professional Computer Solution of Linear Programs With Any Number of Decision Linear Programs With Any Number of Decision

VariablesVariables

, ,