Linear Programming: Revised Simplex Method, Duality of LP Problems and Sensitivity Analysis
Linear Programming: Revised Simplex Method, Duality of LP Problems and Sensitivity Analysis
Linear Programming: Revised Simplex Method, Duality of LP Problems and Sensitivity Analysis
Introduction
Revised simplex method is an improvement over simplex method. It is computationally more efficient and accurate. Duality of LP problem is a useful property that makes the problem easier in some cases Dual simplex method is computationally similar to simplex method. However, their approaches are different from each other. Primal-Dual relationship is also helpful in sensitivity or post optimality analysis of decision variables.
Objectives
Objectives
To explain revised simplex method To discuss about duality of LP and Primal-Dual relationship To illustrate dual simplex method To end with sensitivity or post optimality analysis
(Z ) ( xi )
j
c1 x1 + c2 x2 + c3 x3 + LLL + cn xn + Z = 0 c11 x1 + c12 x2 + c13 x3 + LLL + c1n xn c21 x1 + c22 x2 + c23 x3 + LLL + c2 n xn M M cm1 x1 + cm 2 x2 + cm 3 x3 + LLL + cmn xn = b1 = b2 M M = bm
(x )
( xl )
M M
As the revised simplex method is mostly beneficial for large LP problems, it will be discussed in the context of matrix notation.
x1 x X = 2 M xn
c1 c C = 2 M c n
0 0 0= M 0
c11 c A = 21 M c m1
c12 c 22 M cm 2
L c1n L c2n O M L c mn
and
S is the basis matrix corresponding to X S
1 2
M
L L L L O L L
0 0 M M M 1 0
r
M
m 1 m
0 0 M M M 0 1
V (i ) V (r ) and i = 1 V (r )
for for
ir i=r
r thcolumn
10
11
Duality of LP problems
Each LP problem (called as Primal in this context) is associated with its counterpart known as Dual LP problem. Instead of primal, solving the dual LP problem is sometimes easier in following cases a) The dual has fewer constraints than primal
Time required for solving LP problems is directly affected by the number of constraints, i.e., number of iterations necessary to converge to an optimum solution, which in Simplex method usually ranges from 1.5 to 3 times the number of structural constraints in the problem
12
xi > 0
13
14
15
16
Dual
Z = 6000 y1 2000 y 2 + 4000 y 3
x1 +
2 x 2 6000 3 x1 x2 2000
x1 4000
y1 y 2 + y 3 = 4 2 y1 + y 2 3 3 y1 0
y2 0
x1 unrestricted
x2 0
y3 0
Note: Second constraint in the primal is transformed to x1 + x2 2000 before constructing the dual.
17
Primal-Dual relationships
If one problem (either primal or dual) has an optimal feasible solution, other problem also has an optimal feasible solution. The optimal objective function value is same for both primal and dual. If one problem has no solution (infeasible), the other problem is either infeasible or unbounded. If one problem is unbounded the other problem is infeasible.
18
Simplex method starts with a nonoptimal but feasible solution where as dual simplex method starts with an optimal but infeasible solution. Simplex method maintains the feasibility during successive iterations where as dual simplex method maintains the optimality.
2.
19
2.
All the constraints (except those with equality (=) sign) are modified to less-than-equal-to sign. Constraints with greater-than-equal-to sign are multiplied by -1 through out so that inequality sign gets reversed. Finally, all these constraints are transformed to equality sign by introducing required slack variables. Modified problem, as in step one, is expressed in the form of a simplex tableau. If all the cost coefficients are positive (i.e., optimality condition is satisfied) and one or more basic variables have negative values (i.e., non-feasible solution), then dual simplex method is applicable.
D Nagesh Kumar, IISc Optimization Methods: M3L5
20
4.
Selection of exiting variable: The basic variable with the highest negative value is the exiting variable. If there are two candidates for exiting variable, any one is selected. The row of the selected exiting variable is marked as pivotal row. Selection of entering variable: Cost coefficients, corresponding to all the negative elements of the pivotal row, are identified. Their ratios are calculated after changing the sign of the elements of pivotal row, i.e.,
Cost Coefficients ratio = 1 Elements of pivotal row The column corresponding to minimum ratio is identified as the pivotal column and associated decision variable is the entering variable.
21
Pivotal operation: Pivotal operation is exactly same as in the case of simplex method, considering the pivotal element as the element at the intersection of pivotal row and pivotal column. Check for optimality: If all the basic variables have nonnegative values then the optimum solution is reached. Otherwise, Steps 3 to 5 are repeated until the optimum is reached.
D Nagesh Kumar, IISc Optimization Methods: M3L5
6.
22
Minimize subject to
Z = 2 x1 + x 2 x1 2 3 x1 + 4 x 2 24 4 x1 + 3 x 2 12 x1 + 2 x 2 1
23
Minimize subject to
Z = 2 x1 + x 2 x1 3 x1 4 x1 x1 +4 x 2 3 x 2 2 x 2 + x3 = 2 + x 4 = 24 + x5 = 12 + x6 = 1
24
25
26
27
28
As all the br are positive, optimum solution is reached. Thus, the optimal solution is Z = 5.5 with x1 = 2 and x2 = 1.5
D Nagesh Kumar, IISc Optimization Methods: M3L5
Z = 4 x1 x2 + 2 x3 2 x1 + x2 + 2 x3 6 x1 4 x2 + 2 x3 0 5 x1 2 x2 2 x3 4 x1 , x2 , x3 0
y1 y2 y3 Z
Dual
Minimize subject to Z ' = 6 y1 + 0 y2 + 4 y3 2 y1 + y2 + 5 y3 4 y1 4 y2 2 y3 1 2 y1 + 2 y2 2 y3 2 y1 , y2 , y3 0
29
Change in coefficients of the objective function, C1, C2,.. Re-solve the problem to obtain the solution Change in right hand side values, b1, b2,.. Apply dual simplex method or study the dual variable values Simultaneous change in C1, C2,.. and b1, b2,.. Use both primal simplex and dual simplex or re-solve
30
31
2 x1 + x2 50
and the optimum value of the objective function be 250. RHS of the ith constraint changes to 55, i.e., ith constraint changes to
2 x1 + x2 55
Let, dual variable associated with the ith constraint is yj , optimum value of which is 2.5 (say). Thus, bi = 55 50 = 5 and yj = 2.5 So, Z = yj bi = 2.5x5 = 12.5 and revised optimum value of the objective function is 250 + 12.5 = 262.5.
32
Thank You
33