1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

Introduction to the Simplex Algorithm

68 75 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 68
Dung lượng 219,45 KB

Nội dung

A basic variable is a variable x i that appears with the coefficient 1 in an equation and with the coefficient 0 in all the other equations The variables x j that are not basic are called nonbasic variables In the system , x 1 appears as a basic variable; x 2 , x 3 , x 4 and x 5 are nonbasic variables Basic variables may be generated through the use of elementary row operations

ECE 307 – Techniques for Engineering Decisions Introduction to the Simplex Algorithm George Gross Department of Electrical and Computer Engineering University of Illinois at Urbana-Champaign ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved SOLUTION OF SYSTEMS OF LINEAR EQUATIONS ‰ We examine the solution of Ax = b using Gauss─Jordan elimination ‰ We first use a simple example and then generalize to cases of general interest ‰ Consider the system of two equations in five unknowns: ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved SOLUTION OF SYSTEMS OF LINEAR EQUATIONS ⎧ ⎪ S1 ⎨ ⎪ ⎩ x1 − x + x − x + x = (i ) x1 − x − x − x − x = ( ii ) ‰ For this simple example, the number of unknowns exceeds the number of equations and so the system has multiple solutions; this is the principal reason that the LP solution is nontrivial ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved SOLUTION OF SYSTEMS OF LINEAR EQUATIONS ‰ The Gauss ― Jordan elimination uses elementary row operations:  multiplication of any equation by a nonzero constant  addition to any equation of a constant multiple of any other equation ‰ We transform S into the set S by multiplying equation (i) by ─1 and adding it to equation (ii) ⎧⎪ x − x + x − x + x = S2 ⎨ x2 − x3 + x4 − x5 = ⎪⎩ ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved DEFINITIONS ‰ A basic variable is a variable x i that appears with the coefficient in an equation and with the coefficient in all the other equations ‰ The variables x j that are not basic are called nonbasic variables ‰ In the system S , x appears as a basic variable; x , x , x and x are nonbasic variables ‰ Basic variables may be generated through the use of elementary row operations ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved DEFINITIONS ‰ A pivot operation is the sequence of elementary row operations that reduces a system of linear equations into the form in which a specified variable becomes a basic variable ‰ A canonical system is a set of linear equations obtained through pivot operations with the property that the system has the same number of basic variables as the number of equations in the set ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved CANONICAL SYSTEM FORM ‰ We transform the system S into the canonical form of system S : ⎧ x1 − 3x − 2x − 4x = ⎪ S3 ⎨ ⎪ x2 − 2x3 + x4 − 3x5 = ⎩ ‰ The basic solution is obtained from a canonical system with all the nonbasic variables set to ‰ For the example, we set x = x = x = and so x = and x = ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved BASIC FEASIBLE SOLUTION ‰ A basic feasible solution is a basic solution in which the values of all the basic variables are nonnegative ‰ In the example of system S , we may choose any two variables to be basic ‰ In general for a system of m equations in n ⎛n⎞ unknowns there are ⎜ ⎟ possible combinations ⎝m⎠ of basic variables ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved BASIC FEASIBLE SOLUTION ‰ As n increases the number of combinations becomes large even though it is finite ‰ For the example, we have ⎛ 5⎞ 5! = 10 ⎜ ⎟ = 3! 2! ⎝ 2⎠ combinations of possible choices ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved THE SIMPLEX SOLUTION METHOD ‰ We next use a simple example to construct the simplex solution method ‰ The simplex method is a systematic and efficient way of examining a subset of the basic feasible solutions of the LP to hone in on an optimal solution ‰ We apply the notions introduced in the definitions we introduced above ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 10 MINIMIZATION LP ‰ Consider a minimization problem n Z = ∑ ci xi i =1 s t Ax = b x ≥ ‰ In the simplex scheme, replace the optimality check by the following : if each coefficient c j is ≥ stop; else, select the nonbasic variable with the most negative value in c to become the new basic variable ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 54 MINIMIZATION LP ‰ Every minimization LP may be solved as a maximization LP because of equivalence Z = cT x s.t max Z ′ = (− c T ) x s.t Ax = b Ax = b x ≥ x ≥ with the solutions of Z and Z ′ related by min{ Z } = − max { Z ′} ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 55 COMPLICATIONS IN THE SIMPLEX METHODOLOGY ‰ Two variables x j and x k are tied in the selection of the nonbasic variables to replace a current basic variable when c j = c k ; the choice of the new nonbasic variable to enter the basis is arbitrary ‰ Two or more constraints may give rise to the same minimum ratio value in selecting the basic variable to be replaced ‰ We consider the example of the following tableau ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 56 COMPLICATIONS IN THE SIMPLEX METHODOLOGY cj 0 3/2 constraint c B basic variables x1 x2 x3 x4 x5 x6 constants –1 2 1 1 3/2 Z = 0 x1 x2 x3 cT 1 0 candidate for basic variable ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 57 COMPLICATIONS IN THE SIMPLEX METHODOLOGY in selecting the nonbasic variable x to enter the basis, we observe that the first two constraints give the same minimum ratio: this means that when x is first increased to , both the basic variables x and x will reduce to zero even though only one of them can be made a nonbasic variable we arbitrarily decide to remove x from the basis to get the new basic feasible solution: ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 58 COMPLICATIONS IN THE SIMPLEX METHODOLOGY cj 0 3/2 constraint c B basic variables x1 x2 x3 x4 x5 x6 –1 x4 x2 –2 x3 –1 cT –2 1 0 constants 2 1 1 3/2 Z =4 ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 59 COMPLICATIONS IN THE SIMPLEX METHODOLOGY  in the new basic feasible solution x = 0, x = 0, x = 1, x = 2, x = 0, and x = , we treat x as a basic variable whose value is 0, the same as if it were a nonbasic variable ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 60 DEGENERACY ‰ A degenerate basic feasible solution is one where one or more basic variables is ‰ Degeneracy may lead to a number of complications in the simplex approach: an important implication is a minimum ratio of , so that no new nonbasic variable maybe included in the basis and therefore the basis remains unchanged ‰ We consider the following example tableau ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 61 COMPLICATIONS IN THE SIMPLEX METHODOLOGY cj 0 3/2 constraint variables x1 x2 x3 x4 x5 x6 constants 1/2 1/2 0 1/2 Z =4 c B basic x4 x5 –1 1/2 x3 –1 –1 cT 1/2 1 0 ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 62 DEGENERACY the logical choice being the nonbasic variable x to enter the basis; this leads to finding the limiting constraint from two equations x6 = − x4 x6 = − x5 and no constraint in the third equation; thus x = {4, , ∞ } ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 63 DEGENERACY ‰ Degeneracy may result in the construction of new tableaus without improvement in the objective function value, thereby reducing the efficiency of the computations: theoretically, an infinite loop, the so-called cycling, is possible ‰ Whenever ties occur in the minimum ratio rule, an arbitrary decision is made regarding which basic variable is replaced, ignoring the theoretical consequences of degeneracy and cycling ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 64 MINIMUM RATIO RULE COMPLICATIONS ‰ The minimum ratio rule may not be able to determine the basic variable to be replaced: this is the case when all equations lead to ∞ as the limit ‰ Consider the example and corresponding tableau max s.t Z = x1 + x x1 − −3 x1 + x2 + x2 x3 + x i ≥ 0, x4 = = i = 1, ,4 ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 65 MINIMUM RATIO RULE COMPLICATIONS cj 0 constraint cB basic variables x1 x2 x3 x4 constants x3 –1 x4 –3 cT Z = ‰ The nonbasic variable x enters the basis to replacing x and the new tableau is ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 66 MINIMUM RATIO RULE COMPLICATIONS cj 0 constraint x1 x2 x3 x4 constants 1 –3 Z = 12 basic variables x3 –2 x2 –3 11 cB cT ‰ We select x to enter the basis but we are unable to get limiting constraints from the two equations ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 67 MINIMUM RATIO RULE COMPLICATIONS − x1 + x = x1 − x1 + x = x1 = x3 − = x2 − 3 ‰ In fact, as x increases so x and x and Z and therefore, the solution is unbounded ‰ The failure of the minimum ratio rule to result in a bound at any simplex tableau implies that the problem has an unbounded solution ECE 307 © 2005 – 2009 George Gross, University of Illinois at Urbana-Champaign, All Rights Reserved 68

Ngày đăng: 12/03/2018, 21:56

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w