Presentation is loading. Please wait.

Presentation is loading. Please wait.

Perturbation method, lexicographic method

Similar presentations


Presentation on theme: "Perturbation method, lexicographic method"โ€” Presentation transcript:

1 Perturbation method, lexicographic method
Idea: Avoid the appearance of degenerate solutions since it is a precondition of cycling ( If the solution is not degenerate, the objective function value increases strictly in the next iteration, hence the same basis does not appear again because the objective function value never decreases during the simplex iterations (same basis ๏ƒž same dictionary ๏ƒž same objective value)). So add very small positive ๐œ€ to the r.h.s of equations so that the solution values are unchanged practically but degeneracy is avoided. But the ๐œ€ โ€ฒ ๐‘  added to the r.h.s may cancel out each other during elementary row operations, again causing degeneracy. Remedy: Add different values of ๐œ€ ๐‘– โ€ฒ ๐‘  to different r.h.s. so that cancellation does not occur. (Perturbation method) OR

2 Add ๐œ€ ๐‘– to the ๐‘–โˆ’๐‘กโ„Ž r.h.s., ๐‘–=1,โ€ฆ,๐‘š with the following property.
0< ๐œ€ ๐‘š โ‰ช ๐œ€ ๐‘šโˆ’1 โ‰ชโ€ฆโ‰ช ๐œ€ 2 โ‰ช ๐œ€ 1 โ‰ช1 (3.4) Then, it can be shown that the values of the basic variables never become 0 in subsequent simplex iterations, hence no cycling occurs. (In practice, precision of computation in computer can cause problems.) (In actual implementation, ๐œ€ 1 =๐œ€, ๐œ€ 2 = ๐œ€ 2 , ๐œ€ 3 = ๐œ€ 3 , โ€ฆ may be used for small ๐œ€>0 or random numbers in [0,๐œ€] for some fixed small ๐œ€ are used. ) OR

3 Perturbation Method (tableau form)
(0+2๏ฅ1 ) (0+2๏ฅ2 ) (1+๏ฅ3 ) (after two iterations, optimal solution obtained) OR

4 Perturbation method usually refers to the method which actually adds small ๐œ€ ๐‘– โ€ฒ ๐‘  to the right hand sides. For lexicographic method, the idea is the same as the perturbation method. But we do not actually add some positive numbers to the r.h.s., but treat ๐œ€ ๐‘– โ€ฒ ๐‘  as symbols representing indefinite quantities, which satisfy (3.4). Numbers are compared in lexicographic sense (more in later slide) Note that, in the lexicographic method, we can obtain the optimal solution and optimal value correctly after disregarding all the terms involving ๐œ€ ๐‘– โ€ฒ ๐‘ . The coefficients of ๐œ€ ๐‘– โ€ฒ ๐‘  do not affect the coefficients of other variables during simplex iterations. During degenerate iterations, the actual objective value does not increase. However, considering ๐œ€ terms, the objective value strictly increases even during a degenerate iteration. OR

5 Lexicographic ordering of numbers :
Consider ๐‘Ÿ= ๐‘Ÿ 0 + ๐‘Ÿ 1 ๐œ€ 1 +โ€ฆ+ ๐‘Ÿ ๐‘š ๐œ€ ๐‘š , ๐‘ = ๐‘  0 + ๐‘  1 ๐œ€ 1 +โ€ฆ+ ๐‘  ๐‘š ๐œ€ ๐‘š . If ๐‘Ÿโ‰ ๐‘ , there is the smallest subscript ๐‘˜ such that ๐‘Ÿ ๐‘˜ โ‰  ๐‘  ๐‘˜ . We say that ๐‘Ÿ is lexicographically smaller than ๐‘  if ๐‘Ÿ ๐‘˜ < ๐‘  ๐‘˜ . (Similar terminology is used for vectors too) Then if 0< ๐œ€ ๐‘š โ‰ช ๐œ€ ๐‘šโˆ’1 โ‰ชโ€ฆโ‰ช ๐œ€ 2 โ‰ช ๐œ€ 1 โ‰ช1, ๐‘Ÿ is lexicographically smaller than ๐‘  if and only if ๐‘Ÿ is numerically smaller than ๐‘ . (see problem 3.7 on page 44) Ex) r = ๏ฅ ๏ฅ ๏ฅ3 s = ๏ฅ1 + 20๏ฅ ๏ฅ ๏ฅ4 + 14๏ฅ5 ๐‘Ÿ is lexicographically smaller than ๐‘ . OR

6 Can cycling be prevented?
Thm 3.2: The simplex method terminates as long as the leaving variable is selected by the lexicographic rule in each iteration. Pf) see the proof in the text. For an arbitrary row with r.h.s. value ๐‘Ÿ 0 + ๐‘Ÿ 1 ๐œ€ 1 +โ€ฆ+ ๐‘Ÿ ๐‘š ๐œ€ ๐‘š , the proof shows that at least one of ๐‘Ÿ 1 , ๐‘Ÿ 2 , โ€ฆ, ๐‘Ÿ ๐‘š is distinct from zero. Hence no degenerate solution appears. We may consider somewhat different logic to prove the result. The coefficient matrix for ๏ฅ variables in the constraints remain nonsingular after applying elementary row operations. (Elementary row operation is equivalent to premultiplying the corresponding nonsingular matrix to the coefficient matrix of constraints and the right hand sides. Since the matrix for ๏ฅ variables is identity matrix initially, it is nonsingular. Hence we also obtain nonsingular coefficient matrix after elementary row operations are performed to the constraint matrix). In other words, no row with all 0 elements appear in the ๏ฅ-matrix. Hence the values of basic variables never become 0 in lexicographic sense. OR

7 We can read the real solution value by ignoring the ๏ฅ terms in the current dictionary (tableau).
It is also observed that the lexicographic method can be started and stopped at any time during the simplex iterations. We just add or drop the ๏ฅ terms at any time and it does not affect the real solution value and the coefficients of other variables in the tableau. OR

8 Practical Implementation of the Lexicographic Method
In real implementation of the lexicographic method, we do not actually add ๏ฅ terms to the r.h.s., but read the coefficients of ๏ฅ terms from the coefficients of other variables. Note that, in the example, the coefficient matrix for the basic variables x5, x6, x7 and the coefficient matrix for ๏ฅ1, ๏ฅ2, ๏ฅ3 are the same identity matrices in the beginning of the lexicographic method. Since we use the elementary row operations in the simplex pivots, those two coefficient matrices have the same elements in the following iterations. Hence, we can read the coefficients of ๏ฅ1, ๏ฅ2, ๏ฅ3 from the coefficients of x5, x6, x7 . So we do not actually need to add ๏ฅ1, ๏ฅ2, ๏ฅ3 to the tableau. OR

9 Hence, in the example, we actually do not need to add ๐œ€ ๐‘– โ€ฒ ๐‘ 
Hence, in the example, we actually do not need to add ๐œ€ ๐‘– โ€ฒ ๐‘ . We first perform ratio test using the entering column and the r.h.s. If ties occur, then perform ratio test (only for tied rows) again using the entering column and the column for ๐‘ฅ 5 , and then the column for ๐‘ฅ 6 , and then for ๐‘ฅ 7 , until tie is broken (lexicographic comparison of numbers). OR

10 Example of real implementation
(0+2๏ฅ1 ) (0+2๏ฅ2 ) (1+๏ฅ3 ) (after two iterations, optimal solution obtained) OR

11 Initialization (two-phase method)
We need an initial b.f.s to start the simplex method. If we have ๐‘ ๐‘– <0 for some constraint ๐‘–, the value of the slack variable ๐‘ฅ ๐‘›+๐‘– = ๐‘ ๐‘– <0 violates nonnegativitiy constraint. maximize ๐‘—=1 ๐‘› ๐‘ ๐‘— ๐‘ฅ ๐‘— subject to ๐‘—=1 ๐‘› ๐‘Ž ๐‘–๐‘— ๐‘ฅ ๐‘— โ‰ค ๐‘ ๐‘– , ๐‘–=1,โ€ฆ,๐‘š (1) ๐‘ฅ ๐‘— โ‰ฅ0, ๐‘—=1, 2, โ€ฆ, ๐‘› Consider easily obtained solution ๐‘ฅ ๐‘– =0 for all ๐‘– in (1) and then subtract some positive number ๐‘ฅ 0 from all left-hand sides so that it becomes feasible solution to (1), i.e. ๐‘ฅ ๐‘– =0 for all ๐‘–, ๐‘ฅ 0 = ๐‘š๐‘Ž๐‘ฅ {๐‘–: ๐‘ ๐‘– <0} | ๐‘ ๐‘– |. Now, if we can find a feasible solution to (1) with ๐‘ฅ 0 =0, it is a feasible solution to (1) using original variables. OR

12 subject to ๐‘—=1 ๐‘› ๐‘Ž ๐‘–๐‘— ๐‘ฅ ๐‘— โˆ’ ๐‘ฅ 0 โ‰ค ๐‘ ๐‘– , ๐‘–=1,โ€ฆ,๐‘š (2)
Hence solve the following problem using the easily obtained initial feasible solution and simplex method to find an optimal solution with ๐‘ฅ 0 =0. Note that ๐‘ฅ 0 is a nonnegative variable. maximize โˆ’๐‘ฅ 0 (min ๐‘ฅ 0 ) subject to ๐‘—=1 ๐‘› ๐‘Ž ๐‘–๐‘— ๐‘ฅ ๐‘— โˆ’ ๐‘ฅ 0 โ‰ค ๐‘ ๐‘– , ๐‘–=1,โ€ฆ,๐‘š (2) ๐‘ฅ ๐‘— โ‰ฅ0, ๐‘—=0, 1, 2, โ€ฆ, ๐‘› (1) has a feasible solution ๏ƒ› (2) has an optimal solution with optimal value 0 ( ๐‘ฅ 0 =0) If we find an optimal solution with ๐‘ฅ 0 =0, we can obtain a feasible solution to (1) by disregarding ๐‘ฅ 0 . One point to be careful is that we need a basic feasible solution to start the simplex method subsequently. OR

13 However a feasible dictionary can be easily obtained by one pivot.
Example We cannot perform simplex iteration in this dictionary since the basic solution is not feasible (nonnegativity violated) However a feasible dictionary can be easily obtained by one pivot. OR

14 Current basic solution is not feasible
Current basic solution is not feasible. Let ๐‘ฅ 0 enter the basis and the slack variable with most negative value leaves the basis (It is not a simplex iteration. Just perform the pivot, not considering the objective value. It does not change the solution set.) Perform simplex method. After two iterations, we get the optimal dictionary OR

15 We obtained optimal solution with value 0
We obtained optimal solution with value 0. Hence the current optimal solution gives a b.f.s. to the original problem. Drop ๐‘ฅ 0 (no more needed) and replace the objective function with the original one. Zeroth equation is used to read the objective value of a given solution, hence it can be added or dropped without affecting the feasible solution set to the LP. Note that the current b.f.s. is a b.f.s. to the original problem (We donโ€™t have ๐‘ฅ 0 as a basic variable). OR

16 Now, restart the simplex method with the current dictionary
Express it in dictionary form (only nonbasic variables appear in the r.h.s.) by substituting the basic variables ๐‘ฅ 2 , ๐‘ฅ 3 appearing in the objective function. Now, restart the simplex method with the current dictionary OR

17 You need to understand that (i) ๐‘ฅ 0 can be added or dropped from the dictionary, but the set of feasible solutions to LP (disregarding the variable ๐‘ฅ 0 ) doesnโ€™t change since the coefficients of ๐‘ฅ 0 in the dictionary donโ€™t affect the coefficients of other variables as long as we perform elementary row operations (simplex pivots). The additional variable ๐‘ฅ 0 is used temporarily for the purpose of identifying a basic feasible solution to the original problem. Once the value of ๐‘ฅ 0 becomes 0 (as a nonbasic variable), ๐‘ฅ 0 can be eliminated without affecting the values of the current solution and coefficients of the other variables in the dictionalry. Also (ii) the zeroth equation can be exchanged by another zeroth equation at any time, but the set of feasible solutions to LP doesnโ€™t change because the set of feasible solutions to LP has not been affected by the zeroth equation during the simplex pivots. See the next slides for the two phase method, which are expressed in tableau format. OR

18 -w -x0 = 0 2x1 - x2 + 2x3 - x0 + x4 = 4 2x1 - 3x2 + x3 - x0 + x5 = -5 -x1 + x2 - 2x3 - x0 + x6 = -1
tableau form -w -2x1 + 3x2 - x3 - x = 5 2x2 + x x4 - x = 9 -2x1 + 3x2 - x3 + x x = 5 -3x1 + 4x2 - 3x x5 + x6 = 4 elmentary row operations -w x = 0 0.2x x3 +0.8x x x6 = 1.6 -0.6x1 + x x x x6 = 2.2 x x0 + x x6 = 3 OR

19 Note that the coefficients of x0 do not affect the coefficients of other variables in the simplex pivots. Suppose we perform the same pivots, disregarding variable x0. Then we obtain the same final tableau without x0. The 3 constraints in the initial tableau without variable x0 defines feasible solution set of the augmented LP (with nonnegativity of variables) Therefore, the final tableau (without x0) describes the same feasible solution set of the LP, i.e. feasible solutions to the equations have not been changed. Now, we can replace the objective function with the original one, and express it in the formal tableau form. -w x = 0 0.2x x3 +0.8x x x6 = 1.6 -0.6x1 + x x x x6 = 2.2 x x0 + x x6 = 3 -z x1 - x2 + x = 0 0.2x x x x6 = 1.6 -0.6x1 + x x x6 = 2.2 x x x6 = 3 -z x x x6 = 0.6 0.2x x x x6 = 1.6 -0.6x1 + x x x6 = 2.2 x x x6 = 3 OR

20 2 possible cases in phase one optimal solution
Algorithm strategy in phase one: choose ๐‘ฅ 0 as leaving variable in case of ties in the minimum ratio test. 2 possible cases in phase one optimal solution ๐‘ค nonzero ( ๐‘ค<0 ), ๐‘ฅ 0 basic ๏ƒž original problem is infeasible ๐‘ค=0, ๐‘ฅ 0 nonbasic ๏ƒž drop ๐‘ค, express original objective function ๐‘ง in terms of nonbasic variables, continue the simplex method. (Note that ๐‘ค=0, ๐‘ฅ 0 basic canโ€™t happen by our strategy) Similar idea can be used when the original LP is given in equality form and we do not have an initial basic feasible solution at hand. (Without replacing an equality with two inequalities, simplex method can be used directly to solve the equality form. More in Chapter 8.) OR

21 (Fundamental theorem of LP)
Every LP in standard form has the following properties. If no optimal solution ๏ƒž either unbounded or infeasible. If ๏€ค feasible solution ๏ƒž ๏€ค a basic feasible solution. If ๏€ค optimal solution ๏ƒž ๏€ค a basic optimal solution. OR


Download ppt "Perturbation method, lexicographic method"

Similar presentations


Ads by Google