Optimization Methods: Linear Programming- Revised Simplex Method 1

Optimization Methods: Linear Programming- Revised Simplex Method 1

Optimization Methods: Linear Programming- Revised Simplex Method 1 Module – 3 Lecture Notes – 5 Revised Simplex Method, Duality and Sensitivity analysis Introduction In the previous class, the simplex method was discussed where the simplex tableau at each iteration needs to be computed entirely. However, revised simplex method is an improvement over simplex method. Revised simplex method is computationally more efficient and accurate. Duality of LP problem is a useful property that makes the problem easier in some cases and leads to dual simplex method. This is also helpful in sensitivity or post optimality analysis of decision variables. In this lecture, revised simplex method, duality of LP, dual simplex method and sensitivity or post optimality analysis will be discussed. Revised Simplex method Benefit of revised simplex method is clearly comprehended in case of large LP problems. In simplex method the entire simplex tableau is updated while a small part of it is used. The revised simplex method uses exactly the same steps as those in simplex method. The only difference occurs in the details of computing the entering variables and departing variable as explained below. Let us consider the following LP problem, with general notations, after transforming it to its standard form and incorporating all required slack, surplus and artificial variables. () +++ ++= ZcxcxcxcxZ11 2 2 33 LLL nn 0 () +++ + = xi cx11 1 cx 12 2 cx 13 3LLL cx 1nn b 1 ()x cx+++ cx cxLLL + cx = b j 21 1 22 2 23 3 2nn 2 MM M MM M () +++ + = xlmmmmnnmcx11 cx 2 2 cx 33 LLL cx b As the revised simplex method is mostly beneficial for large LP problems, it will be discussed in the context of matrix notation. Matrix notation of above LP problem can be expressed as follows: D Nagesh Kumar, IISc, Bangalore M3L5 Optimization Methods: Linear Programming- Revised Simplex Method 2 Minimize z = CT X subject to : AX = B with : X ≥ 0 b ⎡ 1 ⎤ Λ ⎡x1 ⎤ ⎡c1 ⎤ ⎢ ⎥ ⎡0⎤ ⎡c11 c12 c1n ⎤ ⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎢ ⎥ x c ⎢b2 ⎥ 0 c c Λ c where X = ⎢ 2 ⎥ , C = ⎢ 2 ⎥ , B = ⎢ ⎥ , 0 = ⎢ ⎥ , A = ⎢ 21 22 2n ⎥ ⎢ Μ⎥ ⎢ Μ⎥ ⎢ M⎥ ⎢Μ⎥ ⎢ Μ Μ Ο Μ⎥ ⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎢ ⎥ x c ⎢ ⎥ 0 c c Λ c ⎣ n ⎦ ⎣ n ⎦ ⎢ ⎥ ⎣ ⎦ ⎣ m1 m2 mn ⎦ ⎣bm ⎦ It can be noted for subsequent discussion that column vector corresponding to a decision ⎡c1k ⎤ ⎢c ⎥ variable x is ⎢ 2k ⎥ . k ⎢ Μ⎥ ⎢ ⎥ ⎣cmk ⎦ Let XS is the column vector of basic variables. Also let CS is the row vector of costs coefficients corresponding to XS and S is the basis matrix corresponding to XS . 1. Selection of entering variable For each of the nonbasic variables, calculate the coefficient ()WP − c , where, P is the corresponding column vector associated with the nonbasic variable at hand, c is the cost = −1 coefficient associated with that nonbasic variable and W CS S . For maximization (minimization) problem, nonbasic variable, having the lowest negative (highest positive) coefficient, as calculated above, is the entering variable. 2. Selection of departing variable a. A new column vector U is calculated as U = S −1B . b. Corresponding to the entering variable, another vector V is calculated as V = S −1P , where P is the column vector corresponding to entering variable. c. It may be noted that length of both U and V is same (= m ). For i = 1,Λ ,m, the U()i ratios, , are calculated provided V()i > 0 . i = r , for which the ratio is least, is V()i noted. The r th basic variable of the current basis is the departing variable. If it is found that V()i ≤ 0 for all i , then further calculation is stopped concluding that bounded solution does not exist for the LP problem at hand. D Nagesh Kumar, IISc, Bangalore M3L5 Optimization Methods: Linear Programming- Revised Simplex Method 3 3. Update to new basis − = []−1 1 Old basis S , is updated to new basis S new , as S new ES η ⎡⎤10LL1 00 ⎢⎥ η ⎢⎥01LL2 00 ⎢⎥ ⎢⎥MMO ML MM ⎧V ()i ⎢⎥for i ≠ r ⎪V ()r where E = ⎢⎥MMLη L MM and η = r i ⎨ 1 ⎢⎥⎪ for i = r ⎢⎥MML MO MM ⎪V ()r ⎢⎥⎩ ⎢⎥00LLη 10 ⎢⎥m−1 ⎢⎥η ⎣⎦00LLm 01 r th column S is replaced by S new and steps 1 through 3 are repeated. If all the coefficients calculated in step 1, i.e., ()WP − c is positive (negative) in case of maximization (minimization) problem, then optimum solution is reached and the optimal solution is, = −1 = XS S B and z CXS 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 when 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) and b) the dual involves maximization of an objective function (it may be possible to avoid artificial variables that otherwise would be used in a primal minimization problem). The dual LP problem can be constructed by defining a new decision variable for each constraint in the primal problem and a new constraint for each variable in the primal. The coefficients of the j th variable in the dual’s objective function is the i th component of the primal’s requirements vector (right hand side values of the constraints in the Primal). The dual’s requirements vector consists of coefficients of decision variables in the primal objective function. Coefficients of each constraint in the dual (i.e., row vectors) are the D Nagesh Kumar, IISc, Bangalore M3L5 Optimization Methods: Linear Programming- Revised Simplex Method 4 column vectors associated with each decision variable in the coefficients matrix of the primal problem. In other words, the coefficients matrix of the dual is the transpose of the primal’s coefficient matrix. Finally, maximizing the primal problem is equivalent to minimizing the dual and their respective values will be exactly equal. When a primal constraint is less than equal to in equality, the corresponding variable in the dual is non-negative. And equality constraint in the primal problem means that the corresponding dual variable is unrestricted in sign. Obviously, dual’s dual is primal. In summary the following relationships exists between primal and dual. Primal Dual Maximization Minimization Minimization Maximization ith variable ith constraint j th constraint j th variable Inequality sign of ith Constraint: ≥ xi 0 ≤ if dual is maximization ≥ if dual is minimization ith variable unrestricted ith constraint with = sign j th constraint with = sign j th variable unrestricted Cost coefficient associated with j th RHS of j th constraint variable in the objective function Cost coefficient associated with ith variable in the objective RHS of ith constraint function See the pictorial representation in the next page for better understanding and quick reference: D Nagesh Kumar, IISc, Bangalore M3L5 Optimization Methods: Linear Programming- Revised Simplex Method 5 Mark the corresponding decision variables in the dual Cost coefficients for Opposite for the Dual, the Objective Function i.e., Minimize =+ + + Maximize Zcxcx11 2 2 LLL cxnn ++ +=⎯⎯→ Subject to cx11 1 cx 12 2LLL cx 1nn b 1 y 1 cx++ cxLLL +≤⎯⎯ cx b→ y 21 1 22 2 2nn 2 2 Thus the Objective Function, +++ MMMinimize by11 by 2 2 L bmm y +++≤⎯⎯→ cxmm11 cx 2 2 LLL cx mnnmm b y ≥≥ xx120, unrestricted,L , xn 0 Thus, the 1st constraint, Right hand cy +++≤ cyL c y c Coefficients Corresponding st 11 1 21 2mm 1 1 st st side of the 1 of the 1 sign of the 1 constraint constraint constraint is ≤ nd Coefficients Corresponding Right hand Thus, the 2 constraint, nd nd nd +++= of the 2 sign of the 2 side of the 2 cy12 1 cy 22 2L cmm 2 y c 2 constraint constraint is = constraint M M M M Determine the Determine the Determine the sign of y1 sign of y2 LL sign of ym Dual Problem =+ + + Minimize Zbyby11 2 2 LLL bymm ++ + ≤ Subject to cy11 1 cy 21 2LLL cmm 1 y c 1 ++ + = cy12 1 cy 22 2LLL cmm 2 y c 2 MM +++≤ cy11nn cy 2 2 LLL c mnmn y c ≥≥ yyy12unrestricted, 0,L ,m 0 D Nagesh Kumar, IISc, Bangalore M3L5 Optimization Methods: Linear Programming- Revised Simplex Method 6 It may be noted that, before finding its dual, all the constraints should be transformed to ‘less- than-equal-to’ or ‘equal-to’ type for maximization problem and to ‘greater-than-equal-to’ or ‘equal-to’ type for minimization problem. It can be done by multiplying with −1 both sides of the constraints, so that inequality sign gets reversed. An example of finding dual problem is illustrated with the following example. Primal Dual = + ′ = − + Maximize Z 4x1 3x2 Minimize Z 6000y1 2000y2 4000y3 Subject to Subject to 2 y − y + y = 4 x + x ≤ 6000 1 2 3 1 3 2 2 + ≤ − ≥ y1 y2 3 x1 x2 2000 3 ≤ ≥ x1 4000 y1 0 ≥ x1 unrestricted y2 0 ≥ ≥ x2 0 y3 0 −+ ≤− It may be noted that second constraint in the primal is transformed to xx12 2000 before constructing the dual. Primal-Dual relationships Following points are important to be noted regarding primal-dual relationship: 1. 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. 2. If one problem has no solution (infeasible), the other problem is either infeasible or unbounded.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    11 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us