Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Simplex Algorithm: Solving Degenerate Linear Programming Problems - Prof. David Phillips, Study notes of Linux skills

An example of the simplex algorithm applied to a degenerate linear programming problem. The concept of degeneracy in lps, its implications on the simplex algorithm, and how to handle degenerate solutions. The document also includes a lp problem and its solution.

Typology: Study notes

Pre 2010

Uploaded on 03/16/2009

koofers-user-h3g
koofers-user-h3g ๐Ÿ‡บ๐Ÿ‡ธ

5

(1)

10 documents

1 / 12

Toggle sidebar

Related documents


Partial preview of the text

Download Simplex Algorithm: Solving Degenerate Linear Programming Problems - Prof. David Phillips and more Study notes Linux skills in PDF only on Docsity! An example of the simplex algorithm Original LP maximize 3x1 + x2 + 2x3 (1) subject to x1 + x2 + 3x3 โ‰ค 30 (2) 2x1 + 2x2 + 5x3 โ‰ค 24 (3) 4x1 + x2 + 2x3 โ‰ค 36 (4) x1, x2, x3 โ‰ฅ 0 . (5) Standard form. z = 3x1 + x2 + 2x3 (6) x4 = 30 โˆ’ x1 โˆ’ x2 โˆ’ 3x3 (7) x5 = 24 โˆ’ 2x1 โˆ’ 2x2 โˆ’ 5x3 (8) x6 = 36 โˆ’ 4x1 โˆ’ x2 โˆ’ 2x3 . (9) Pivot in x1. Remove x6 from the basis. z = 27 + x2 4 + x3 2 โˆ’ 3x6 4 (10) x1 = 9 โˆ’ x2 4 โˆ’ x3 2 โˆ’ x6 4 (11) x4 = 21 โˆ’ 3x2 4 โˆ’ 5x3 2 + x6 4 (12) x5 = 6 โˆ’ 3x2 2 โˆ’ 4x3 + x6 2 . (13) Pivor in x3. Remove x5. z = 111 4 + x2 16 โˆ’ x5 8 โˆ’ 11x6 16 (14) x1 = 33 4 โˆ’ x2 16 + x5 8 โˆ’ 5x6 16 (15) x3 = 3 2 โˆ’ 3x2 8 โˆ’ x5 4 + x6 8 (16) x4 = 69 4 + 3x2 16 + 5x5 8 โˆ’ x6 16 . (17) Pivot in x2. Remove x3. z = 28 โˆ’ x3 6 โˆ’ x5 6 โˆ’ 2x6 3 (18) x1 = 8 + x3 6 + x5 6 โˆ’ x6 3 (19) x2 = 4 โˆ’ 8x3 3 โˆ’ 2x5 3 + x6 3 (20) x4 = 18 โˆ’ x3 2 + x5 2 . (21) 1 Produced with a Trial Version of PDF Annotator - www.PDFAnnotator.com 2 Produced with a Trial Version of PDF Annotator - www.PDFAnnotator.com Produced with a Trial Version of PDF Annotator - www.PDFAnnotator.com A Degenerate LP Definition: An LP is degenerate if in a basic feasible solution, one of the basic variables takes on a zero value. Degeneracy is a problem in practice, because it makes the simplex algorithm slower. Original LP maximize x1 + x2 + x3 (1) subject to x1 + x2 โ‰ค 8 (2) โˆ’x2 + x3 โ‰ค 0 (3) x1, x2, โ‰ฅ 0 . (4) Standard form. z = x1 + x2 + x3 (5) s1 = 8 โˆ’ x1 โˆ’ x2 (6) s2 = โˆ’ x2 + x3 (7) Produced with a Trial Version of PDF Annotator - www.PDFAnnotator.com Iteration 1 z = x1 + x2 + x3 (8) s1 = 8 โˆ’ x1 โˆ’ x2 (9) s2 = โˆ’ x2 + x3 (10) Note that one of the basic variables is 0. We choose x1 as the entering variable and s1 as the leaving variable. z = 8 + x3 โˆ’ s1 (11) x1 = 8 โˆ’ x2 โˆ’ s1 (12) s2 = x2 โˆ’ x3 (13) Note again that one of the basic variables is 0. The previous pivot did increase the objective function value from 0 to 8 though. Produced with a Trial Version of PDF Annotator - www.PDFAnnotator.com CSCI 628 โ€“ Introduction to Linear Programming Cycling max z = 3 4 x1 โˆ’150x2 + 1 50 x3 โˆ’6x4 s.t. 1 4 x1 โˆ’60x2 โˆ’ 1 25 x3 +9x4 +x5 = 0 1 2 x1 โˆ’90x2 โˆ’ 1 50 x3 +3x4 +x6 = 0 x3 +x7 = 1 x1, x2, x3, x4, x5, x6, x7 โ‰ฅ 0 (1) x5 = 0 โˆ’ 1 4 x1 +60x2 + 1 25 x3 โˆ’9x4 x6 = 0 โˆ’ 1 2 x1 +90x2 + 1 50 x3 โˆ’3x4 x7 = 1 โˆ’x3 z = 0 +3 4 x1 โˆ’150x2 + 1 50 x3 โˆ’6x4 (2) x1 = 0 +240x2 + 4 25 x3 โˆ’36x4 โˆ’4x5 x6 = 0 โˆ’30x2 โˆ’ 3 50 x3 +15x4 +2x5 x7 = 1 โˆ’x3 z = 0 30x2 + 7 50 x3 โˆ’33x4 โˆ’3x5 (3) x1 = 0 โˆ’ 8 25 x3 +84x4 +12x5 โˆ’8x6 x2 = 0 โˆ’ 1 500 x3 + 1 2 x4 + 1 15 x5 โˆ’ 1 30 x6 x7 = 1 โˆ’x3 z = 0 + 2 25 x3 โˆ’18x4 โˆ’x5 โˆ’x6 (4) 1 Produced with a Trial Version of PDF Annotator - www.PDFAnnotator.com x3 = 0 โˆ’ 25 8 x1 + 525 2 x4 + 75 2 x5 โˆ’25x6 x2 = 0 1 160 x1 โˆ’ 1 40 x4 โˆ’ 1 120 x5 + 1 60 x6 x7 = 1 + 25 8 x1 โˆ’ 525 2 x4 โˆ’ 75 2 x5 +25x6 z = 0 โˆ’1 4 x1 +3x4 +2x5 โˆ’3x6 (5) x3 = 0 125 2 x1 โˆ’10500x2 โˆ’50x5 +150x6 x4 = 0 1 4 x1 โˆ’40x2 โˆ’ 1 3 x5 + 2 3 x6 x7 = 1 โˆ’ 125 2 x1 +10500x2 +50x5 โˆ’150x6 z = 0 1 2 x1 โˆ’120x2 +x5 โˆ’x6 (6) x5 = 0 5 4 x1 โˆ’210x2 โˆ’ 1 50 x3 +3x6 x4 = 0 โˆ’ 1 6 x1 +30x2 + 1 150 x3 โˆ’ 1 3 x6 x7 = 1 โˆ’x3 z = 0 7 4 x1 โˆ’330x2 โˆ’ 1 50 x3 +2x6 (7) x5 = 0 โˆ’ 1 4 x1 +60x2 + 1 25 x3 โˆ’9x4 x6 = 0 โˆ’ 1 2 x1 +90x2 + 1 50 x3 โˆ’3x4 x7 = 1 โˆ’x3 z = 0 +3 4 x1 โˆ’150x2 + 1 50 x3 โˆ’6x4 (8) 2 Produced with a Trial Version of PDF Annotator - www.PDFAnnotator.com Produced with a Trial Version of PDF Annotator - www.PDFAnnotator.com
Docsity logo



Copyright ยฉ 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved