Jump to content

Operations Research/Sensitivity analysis

From Wikibooks, open books for an open world

Sensitivity Analysis deals with finding out the amount by which we can change the input data for the output of our linear programming model to remain comparatively unchanged. This helps us in determining the sensitivity of the data we supply for the problem. If a small change in the input (for example in the change in the availability of some raw material) produces a large change in the optimal solution for some model, and a corresponding small change in the input for some other model doesn't affect its optimal solution as much, we can conclude that the second problem is more robust then the first. The second model is less sensitive to the changes in the input data

We will consider the case of sensitivity of the optimum solution to changes in the availability of the resources. (Right hand side of the constraints.)

If in any linear programming problem there are n variables and m constraints we can think as the right hand sides as being the representatives of the amount of resources. For example, consider our old chemical company model:

Maximize z =

subject to,

,

,

,

,

.

The right hand sides represented various resources: the amount of raw materials 1 and 2, the market limit, and the daily demand. Now if these right hand sides were changed the whole problem would change. Suppose we want to know is the worth of any particular resource. More precisely, we want to know how much is the amount of the first raw material being 24 units available really important. If we increase the amount from 24 to 25 our optimal value changes to 21.75, whereas previously it was 21. So a unit increase in the amount of the first resource changes the optimal value (which is the total profit) by 0.75. This can be therefore thought of as the unit worth of the first resource. The technical term for this is the first resources' shadow price.

Determination of shadow prices

[edit | edit source]

To determine the shadow prices for the resources individually by increasing them one by one and solving the associated linear models is extremely inefficient. Let us examine another way of calculating the shadow prices.

Consider the following linear system:

Maximize z =

subject to,

,

,

,

.

The optimal simplex table with slack variables is:

Basic BFS
z 4 0 0 1 2 0 1350
1 0 0 100
0 1 0 0 230
2 0 0 -2 1 1 20

Now to find out the shadow prices write the above model's standard form as follows:

,

,

.

If resource 1 is increased by one unit it means that the first slack variable is decreased by one unit so that the equality between the left and the right hand sides remains unchanged. A similar thing holds for all other resources as well.

From the optimal simplex table we have the following constraint:

.

This can be rewritten as:

.

Given that a decrease in the value of a slack variable is equivalent to an increase in its resource, we get

+1(increase in resource 1)+2(increase in resource 2)+0(increase in resource 3)=1350

Thus we can see that:

  • A one unit increase in resource 1 increases z by 1
  • A one unit increase in resource 2 increases z by 2
  • A one unit increase in resource 3 increases z by 0

Thus the shadow prices are 1, 2 and 0 respectively.