Sensitivity analysis of LP Flashcards
In terms of LP there are 5 questions we might ask in regards to sensitibvity analysis, name them
1) changes in objective funciton coefficients
2) Changes in RHS b-values
3) Changes in technology coefficients aij
4) Adding/removing a variable
5) Adding/removing a constraint
What are the interesting questions we might ask ourselves?
How is the objective function value affected by a change? It is common to model profits, so naturally the change in profits is interesting.
is the current solution still optimal after a change? is it still feasible?
At what change will another solution be optimal?
At what change will the current solution become infeasible?
Define relaxation
A relaxation is a modification of a problem instance that makes the feasible set LARGER.
what happens to the obj function value if we relax a constraint?
The value will be better or equal, never worse.
Define restriction
A restriction is a modification to a problem that decrease the feasible set.
Is there a difference between constraint types and relaxation/restriction in terms of changing RHS value?
YES.
<=: increase RHS is relaxation, decrease RHS is restriction
> =: increase RHS is restriction, decrease RHS is relaxation
Consider changing a technology coefficient aij, what can we say about relaxation vs restriction?
Recall that relaxation/restriction is all about what happens to the feasible region.
<= : increasing aij cause LHS to be larger, which has the same effect as reducing the RHS, which means that it is a restriction. decreasing it will cause a relaxation. We can consider aij as the cost of tech.
> = : increasing aij has the same effect as reducing RHS, which will cause a relaxation since the feasible set grows. opposite for the opposite case.
if we add a variable, is it relaxation or restriction?
Adding a variable means adding a dimension. Adding a dimensions means that the set of feasible solutions grow, which means that adding a variable is a relaxation.
if we add a constraint, is it a relaxation or restriction?
Restriction (might cause, might not).
Define shadow price
A shadow price is associated with a constraint, and is given by the change in objective function that follows from making a marginal change in the RHS value of the corresponding constraint. Specifically: increase.
Other name for shadow price?
dual value.
Marginal price.
Dual price.
What is the dual variable
dual variable is the optimal value of the dual problem. More specifically, the dual problem has a set of variables, and these are the shadow prices.
Elaborate on dual variable and signs
The sign of the dual variable, and therefore the shadow price, depends on whether and increase in RHS will lead to a relaxation or a restriction of the feasible region.
if we have an equality, we can not intuitively tell how the objective function will be affected and consequently which sign the corresponding dual variable will get.
However, if the constraint is inequality, the dual variable will be either non positive or non negative.
What happens if a dual variable has value equal to 0?
A dual value of 0 indicates that nothing happens if we relax the constraint. this means that the constraint is not binding/active in the current solution.
Elaborate on changing RHS coefficient
The central question in sensitivity analysis of changing RHS values (constraints) is “within what interval can the RHS be changed while maintaining the current optimal basis feasible and optimal?”
Changing RHS values correspond to relaxing or restricting constraints. One can then consider a change in RHS value as shifting the constraint inward or outward, and imagine how the optimal point/solution will change along the moving intersection between the constraint we change and the other fixed constraints.
At some point, we may get to the point where relaxing the constraint even more makes the constraint irrelevant because the solution/feasible region is restricted by other constraints. Similarily, we may reach a point where restricting the constraint even more will actually make the corresponding variable value be illegal, negative. It is these points (interval) that we want to capture in this kind of sensitivity analysis.
There are2 things we use:
1) x_b = B^(-1)(b + ∆b)
x_b = B^(-1)b + B^(-1)∆b
2) x_b >= 0
Regarding 1), the first part we actually have from the current (final) tableau as the RHS values.
The second part we need to calculate, but is easily calculated from the final tableau since it only requires B^(-1), which is the slack portion. ∆b are the changes we wish to make, and is typically a vector with all zeros except for the one RHS value we are interested in (meaning the constraint we are interesting in relaxing/restricting).
When we solve for x_b, the result is a vector of expressions. Some of these expressions will contain the ∆bi value as a variable. We will now use all of these expressions, along with the fact that feasibility requires x_b >= 0, to find the range of ∆bi that is legal.
Finally, it is typical to add the current optimal b-value to this result, so that the interval-result we get is the entire interval of legal b-values that will still have this current solution as feasible (referencing the current basis).
The result can look like this:
187.5 <= b1 <= 262.5
Of course, changing b will change z-value, as the values of the decision variables will change from relaxation/restriction inside of this interval. Therefore, we must also update z-values in the case where this is necessary.
Important fact to add regarding this interval: It is the interval where the shadow price of the corresponding constraint remains constant.