0% found this document useful (0 votes)
65 views23 pages

2 Sensitivity Analysis With Solutions

Sensitivity Analysis ppt.

Uploaded by

daiana.cernetchi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views23 pages

2 Sensitivity Analysis With Solutions

Sensitivity Analysis ppt.

Uploaded by

daiana.cernetchi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Operations Research – Stochastic Methods

Sensitivity Analysis

Lecturer: Jannis Kurtz


Section Business Analytics
Intended Learning Outcomes

1. Categorize different cases for which sensitivity analysis can be used


2. Use concepts from the simplex method to perform sensitivity analysis.
3. Apply sensitivity analysis to practical linear problems.
Introduction
Primal Dual
Assume we have given a linear problem and its dual:

• We can calculate an optimal solution x* of the primal and p* of the dual via the simplex method
• Usually when an optimal solution of a linear problem is found, the work is not done.
• Problem in practice: the problem parameters A,b,c are often just estimates based on predictions
• We have seen examples for this in the first chapter.

Sensitivity Analysis: what is the effect on the optimal solution and its costs if
parameters of the problem change

1. Detect sensitive parameters, i.e. parameters whose values cannot be changed without changing the
optimal basis.
2. Determine ranges for the parameters over which the optimal basis will remain unchanged.
3. Determine ranges for the parameters over which the solution remains feasible.
Example: Production Planning
Original Problem Revised Problem

Optimal basis of original problem is not an


optimal basis of the revised problem anymore.
Recap: Simplex Method
Notation:

Basic solution:

Basic feasible solution: A set of indices B is a basis


if |B|=m and the
corresponding columns of
A are linearly independent.
Reduced Costs:

Optimality condition:
Preparation
Consider the primal problem again:

Let x* be an optimal basic solution of the problem and B the corresponding optimal basis.

Then the following two conditions have to be satisfied:


Changes in b
We consider now the case where a parameter of the right-hand-side vector b may change.
Assume the component bi is changed:

Goal: determine the range of values of under which the current basis
remains optimal.
Note: the optimality condition is not affected by b
Hence we only have to check the feasibility condition

This leads to the following inequality system:


Changes in b
Consider one of the inequalities:

• If then we can reformulate the inequality as

• If then we can reformulate the inequality as

Hence, we get the following inequality system for delta:


Changes in b
We can reformulate that equivalently as:

For in the latter range the original optimal basis remains feasible and optimal.

The solution, and therefore the optimal value depends on the new b:

If is outside of the calculated range, then the original optimal basis B is not feasible anymore (and
therefore not optimal)

If the calculated range contains no value, then bi is a sensitive parameter.


Example: Changes in b
We consider parameter:

Original optimal solution is x*=(2,6,2,0,0) with basis B={1,2,3}

We have

The second column is and we obtain the inequalities

Hence the range for is:

The optimal solution is:


Assignment
Consider the following problem:

An optimal solution to the problem is x=(2,2,0,0)

1. In which range can we change the parameter b1=10 such that the optimal basis does not change?
2. How much do the costs of the solution change in this range?
Solution 1. Assignment
• Optimal basis is B={1,2}

• We have:

• We get:

• Conditions on :

• It follows the range:


Solution 2. Assignment
• Inside the calculated range the optimal basis does not change.
• But the optimal solution depends on b (and hence in our case on delta):
• We have:

• Hence the costs of the solution (depending on delta) are:

• Since the costs must be in


Changes in Cost Vector c
We consider now the case where a parameter of the cost vector c may change:

Note that the feasibility condition does not depend on the costs c. Optimal solution remains the same as long as the
basis does not change!

Hence we only have to check the optimality condition.


We have to distinguish two cases for our analysis:

Case 1: j is a non-basic index, then appears only in the optimality condition for variable j:

Note, if we consider
or equivalent maximization problems,
then optimality is received
when the reduced costs are
non-positive. Hence in this
case the >= must be <=.
Changes in Cost Vector c
Case 2: j is a basic index (let‘s say j is the l-th basic index).

Then for all the optimality condition must hold (for i=j the reduced costs are 0 anyway):

Note, if we consider
where are the reduced costs of variable i and is the l-th entry of maximization problems,
then optimality is received
That means the range is given by the inequality system: when the reduced costs are
non-positive. Hence in this
case the <= must be >=.

Note that the reduced costs and the value can be directly read from the optimal simplex tableau.

In the determined range the basis B remains optimal and the solution x* remains optimal.

If the calculated range contains no value, then cj is a sensitive parameter.


Example: Changes in Cost Vector c
We consider parameter:

The parameter corresponds to the first basic variable (l=1). Hence we have to apply Case 2.
The optimal simplex tableau for the problem with original parameters is:

Attention: it‘s a maximization


problem, hence in our analysis
We obtain the inequalities: we have to reverse the
inequalities
Example: Changes in Cost Vector c
Assignment
Consider the following problem:

An optimal solution of the problem is x*=(2,2,0,0) and corresponding optimal simplex tableau is

Calculate the range of each cost parameter for which x* remains an optimal solution.
Solution
Changes in Non-Basic Column of A
We consider now the case where a parameter of A is changed which corresponds to a non-basic column Aj:

Again remember: if we
have a maximization
Since j is not in B the feasibility condition does not change. problem in the optimality
Also the optimal solution does not change as long as the optimal basis remains the same. condition the inequality
sign has to be reversed.
In the optimality condition only the reduced costs of the j-th column are affected:

Remember: the optimal solution of the dual


is given by
That is equivalent to:
and therefore we have:

We obtain, that if the optimal basis does not change and the optimal solution remains the same.
Changes in Basic Column of A

More difficult! Not part of this course!


Assignment
Consider the following problem:

An optimal solution of the problem is x*=(2,2,0,0) and corresponding optimal simplex tableau is

Calculate the range of all constraint coefficients of variables x3 and x4 for which the
optimal solution does not change.
Solution
We can calculate the dual solution first:

You might also like