Operations Research II: Chapter 4: Solving LP Problems: Post-Optimality Analysis
Operations Research II: Chapter 4: Solving LP Problems: Post-Optimality Analysis
IE 312
Operations
Research II
Second Semester
(2/2020)
1
Post-optimality Analysis
2
Post-optimality Analysis
3
Post-optimality Analysis – Re-optimization
Re-optimization
• LP model in reality are very large
• Many variations of the basic model may be of interest for different scenarios
• So solve again → many time → again and again → applying simplex method from scratch
• Or…re-optimization!!!
• Make change to the final simplex tableau
• Re-use it as the initial tableau and initial basic solution
• Advantage: start with a solution that is normally much closer to the new optimal solution
• Only a few iterations or no iteration if the same optimality is applied
4
Post-optimality Analysis – Shadow Prices
Shadow prices
• LP can be interpreted as allocating resources to activities
• bi is the amounts of the resources to be allocated
• bi can be management’s tentative initial decision
• bi = how much of the resources make available for this activity
• Shadow price (yi*) is the marginal value of the resources, or the marginal increase in the
objective function value with the increase of bi
• Initial bi
5
Post-optimality Analysis – Shadow Prices
Shadow prices
• If bi is changed by 1
6
Post-optimality Analysis – Shadow Prices
Shadow prices
• The increase in total profit of 1.5 x $1,000 should be realized?
→ Yes, if there is a product with profit less than $1,500 under production
• b2 increases beyond 18 will not make any difference, the optimal stays at (0,9)
→ The set of basic variables change and the new shadow price is y2* = 0
• y1* = 0: constraint on resource 1 (x1 ≤ 4) is not binding → there is a surplus of this resource
• y2* = 3/2 and y3* = 1: constraints on resource 2 and 3 are binding
→ the limited supplies are used up (b2 = 12 and b3 = 18)
7
Post-optimality Analysis – Sensitivity Analysis
Sensitivity analysis
• Certainty assumption on the values of model parameters aij, bi, cj
• Parameter’ values are normally estimated
• Sensitive parameters = those cannot be changed without changing the optimal solution
• They must be estimated with special care to minimize the risk of erroneous optimal solution
Sensitivity analysis - bi
• yi* > 0 then the optimal solution change if bi change
→ bi is sensitive parameters
• yi* = 0 then the optimal solution do not change if bi change (by some amount)
→ bi is not sensitive parameters
• bi must be monitored closely if they have positive shadow prices (especially with large value)
8
Post-optimality Analysis – Sensitivity Analysis
Sensitivity analysis - cj
• c1 = 3 can be between 0
and 7.5 without changing
solution from (2,6)
9
Post-optimality Analysis – Sensitivity Analysis
Sensitivity analysis - aij
• Check if the constraint is binding or not
• Example:
• x1 ≤ 4 is not binding
• Any change in a11 =1 and a12 = 0 will not change the optimal solution
• Not sensitive parameters
10
Post-optimality Analysis – MS Excel
11
Chapter 6: Duality Theory
IE 312
Operations
Research II
Second Semester
(2/2020)
12
The Essence of Duality Theory
• One of the most important discoveries in the early development of linear programming
• Every linear programming problem has associated with it another linear programming problem
called the dual
13
The Essence of Duality Theory
• The dual problem uses the same parameters as the primal but in different locations
14
The Essence of Duality Theory
Using matrix notation
15
The Essence of Duality Theory
Example
16
The Essence of Duality Theory
The primal – dual table
The general relationships
between the primal and dual
problems
17
The origin of the dual problem
• At any iteration of the simplex method, the number in row 0 are
18
The origin of the dual problem
Wyndor example
• First equation
• Second equation
• z1 = y1 + 3y3
• z2 = 2y2 + 2y3
• Simplex seeks a set of basic variables, and the BF solution such that all coefficients are
nonnegative
19
The origin of the dual problem
Sense of W?
• Same with primal?
• W → minimization problem
20
The origin of the dual problem
• Dual problem can be viewed as a restatement of the goal of the simplex method
→ to reach a solution for the primal problem that satisfies the optimality test
• Before reaching the goal → the corresponding y in row 0 must be infeasible for the dual
21
The origin of the dual problem
22
The origin of the dual problem
23
The origin of the dual problem
Summary of Primal-Dual Relationship
• Weak duality property
• If x is a feasible solution of the primal problem
• and y is a feasible solution for the dual problem
• then cx ≤ yb
24
The origin of the dual problem
Summary of Primal-Dual Relationship
• Complementary property
• At each iteration, the simplex method simultaneously identifies a CPF solution x for the
primal problem and identifies a complementary solution y for the dual problem
• where cx = yb
25
The origin of the dual problem
Summary of Primal-Dual Relationship
• Symmetry property
• For any primal problem and its dual problem, all relationships between them must be
symmetric because the dual of this dual problem is this primal problem
• Duality theorem
The following are the only possible relationships between the primal and dual problem
26
The origin of the dual problem
Applications
• Dual problem can be solved directly using simplex
• m>n
• Number of primal constraints (m) > number of primal variables (n) = number of dual
constraints (n)
• Substantial reduction in computation effort
• If y is feasible → cx = yb → optimal
27
Chapter 8: The Dual Simplex Method
IE 312
Operations
Research II
Second Semester
(2/2020)
28
The Dual Simplex Method
Based on the duality theory
• Observe that:
• Solutions are primal feasible → the primal basic solution is feasible
• Solutions are dual feasible → the complementary dual basic solution is feasible
• The basic solution is optimal → the solutions are both primal feasible and dual feasible
• The simplex method deals with basic solutions in the primal problem
• that are primal feasible but not dual feasible.
• Moves to the optimal solution by trying to achieve dual feasibility
• The dual simplex method deals with basic solutions in the primal problem
• that are dual feasible but not primal feasible.
• Moves to the optimal solution by trying to achieve primal feasibility
• The dual simplex method → applied simplex method to the dual problem.
29
The Dual Simplex Method
Benefits
• The dual simplex method is very useful in certain situations.
• Usually easier to find initial basic solutions that are primal feasible than dual feasible.
BUT!!!
• It may require many artificial variables to construct an initial BF solution artificially.
SO!!!
• Possibly easier to begin with a dual feasible basic solution AND use the dual simplex
• May require fewer iterations → since no artificial variables.
30
The Dual Simplex Method
Comparison between two algorithms
• The rules are very similar to the simplex method.
• The differences
• the selection of the entering nonbasic variables
• The selection of the leaving basic variables
• The stopping criteria.
31
The Dual Simplex Method
Summary of the Dual Simplex Method
Initialization:
• Convert functional constraints in ≥ form to ≤ form (multiply by -1)
• Introduce slack variables
• Find a basic solution such that the coefficients in Eq. (0) are zero for basic variables and
nonnegative for nonbasic variables (so the solution is optimal if it is feasible).
• Go to the feasibility test.
Feasibility test:
• Check if all basic variables are nonnegative.
• If yes, then the solution is feasible and optimal → stop.
• Otherwise, go to iteration.
Iteration:
• the leaving basic variable → the negative basic variable with largest absolute value.
• the entering basic variable → the nonbasic variable with coefficient in Eq. (0) reaches
zero first when the equation with the leaving basic variable is added to Eq. (0).
• Select the nonbasic variables with negative coefficients one & with the smallest
absolute ratio between the coefficients of the Eq. (0) and the equation.
• Obtain the new basic solution → Gaussian elimination
• Go to the feasibility test.
32
The Dual Simplex Method
Summary of the Dual Simplex Method
• Same as applying the simplex method to the complementary basic solutions in the dual
problem
• Determine the leaving basic variable → determine the entering basic variable
• The negative variable with the largest absolute value → the negative coefficient with the
largest absolute value in Eq. (0) of the dual problem
• Determining the entering basic variable → determine the leaving basic variable
• The coefficient in Eq. (0) that reaches zero first → the variable in the dual problem that
reaches zero first
33
The Dual Simplex Method
An Example: Wyndor Glass Co.
Solution 1 = (y1, y2, y3, y4, y5) = (0, 0, 0, -3, -5) & Z = 0
• Not feasible & leaving basic variable = y5 & entering variable = y2
Solution 2 = (0, 5/2, 0, 0, -3) & Z = 30
• Still not feasible & leaving basic variable = y4 & entering variable = y3
Solution 3 = (0, 3/2, 1. 0. 0) & Z = 36
• feasible & optimal
The optimal of the primal is (x1, x2, x3, x4, x5) = (2, 6, 0, 0, 0)
34
The Dual Simplex Method
35
The Dual Simplex Method
With Sensitivity Analysis
• can quickly re-solve a problem with small changes in the original model.
• So the optimal is no longer primal feasible → one or more RHS are –ve
• Can immediately apply the dual simplex method with the dual feasible basic solution.
36
The Dual Simplex Method
Example:
• Suppose that the problem did not include constraint y1 + 3y3 ≥ 3
• The optimal solution is (y1, y2, y3, y4, y5) = (0, 5, 2, 0, 0) & Z = 30
• Find the new optimal solution → by add this constraint with the slack variable and continue to
Eq. 8.1
• Applying the dual simplex method leads to the new optimal solution in just one iteration.
37