SlideShare a Scribd company logo
Time complexity of
 simplex algorithm
             Albi thomas
             M.tech (TM)
             Roll no.11
Introduction

   Time complexity of an algorithm counts the
    number of arithmetic operations sufficient for
    the algorithm to solve the problem
   Understand properties of LP in terms of
    geometry
   Use geometry as aid to solve LP
   Some concepts new
Overview
   Polynomial time-complexity(bound)
       Eg.gaussian elimination
   Exponential time complexity
       Eg. Buchberger's algorithm
   Feasibility
   Simplex Method
   Simplex Weaknesses
       Exponential Iterations
   Convex Sets and Hulls
Region of Feasibility
   Graphical region describing all feasible
    solutions to a linear programming problem

   In 2-space: polygon, each edge a constraint

   In 3-space: polyhedron, each face a constraint
Feasibility in 2-Space
   2x1 + x2 ≤ 4

   In an LP environment,
    restrict to Quadrant I
    since x1, x2 ≥ 0
Simplex Method
   Every time a new dictionary is generated:
       Simplex moves from one vertex to another vertex
        along an edge of polyhedron

       Analogous to increasing value of a non-basic
        variable until bounded by basic constraint
       Each such point is a feasible solution
       Average time taken is linear in 2 space
Feasibility in 3-Space
 maximize        3 x1 + 2 x2 + 5 x3
    subject to    2 x1 + x2            ≤4
                                x3 ≤ 5
                         x1 , x2 , x3 ≥ 0

   Five total constraints;
    therefore 5 faces to the
    polyhedron
Simplex Illustrated: Initial Dictionary

x4 = 4 − 2 x1 − x2
x5 = 5 −                   x3
z =         3 x1 + 2 x2 + 5 x3

Current solution:

x1 = 0
x2 = 0
x3 = 0
Simplex Illustrated: First Pivot

x4 = 4 − 2 x1 − x2
x3 = 5 −                x5
z = 25 + 3 x1 + 2 x2 − 5 x5

Current solution:

x1 = 0
x2 = 0
x3 = 5
Simplex Illustrated: Second Pivot

x1 = 2 −       1
               2    x 2 − 1 x4
                          2

x3 = 5 −                         x5
z = 31 +        1
                2   x2 − 3 x4 − 5 x5
                         2




Current solution:

x1 = 2
x2 = 0
x3 = 5
Simplex Illustrated: Final Pivot

x2 = 4 − 2 x1 −         x4
x3 = 5 −                       x5
z = 33 − 7 x1 −        2 x4 − 5 x5


Final solution (optimal):

x1 = 0
x2 = 4
x3 = 5
Simplex Review and Analysis
   Simplex pivoting represents traveling along
    polyhedron edges
   Each vertex reached tightens one constraint
    (and if needed, loosens another)
   May take a longer path to reach final vertex
    than needed
Operational research
Operational research
Simplex Weaknesses: Exponential
Iterations: Klee-Minty Reviewed
 100 x1    + 10 x2     +   x3   =    z
   x1                           ≤    1
  20 x1    +  x2                ≤  100
 200 x1    + 20 x2     +   x3   ≤ 10, 000
 x1 , x2 , x3 ≥ 0
    Cases with high complexity (2n-1 iterations)
    Normal complexity is O(m3)
    How was this problem solved?
Geometric Interpretation & Klee-Minty
   Saw non-optimal
    solution earlier

   How can we represent
    the Klee-Minty
    problem class
    graphically?           maximize     3 x1 + 2 x2 + 5 x3
                           subject to   2 x1 + x2            ≤ 4
                                                      x3 ≤ 5
                                               x1 , x2 , x3 ≥ 0
Step 1: Constructing a Shape
                              c1 x1   + c2 x2    + c3 x3   =   z
   Start with a cube.
                               x1                          ≤   1
                                            x2             ≤   1
   What characteristics do                          x3    ≤   1
    we want the cube to       x1 , x2 , x3 ≥ 0
    have?

   What is the worst case
    to maximize z?
Step 1: Constructing a Shape
   Goal 1: Create a shape
    with a long series of
    increasing facets

   Goal 2: Create an LP
    problem that forces this
    route to be taken
Step 2: Increasing Objective Function:
Modifying the Cube
                                                                [0, 1, 0.8]               [0, 1, 0.82]
      Squash the cube
100 x1     + 1, 000 x2      + 10, 000 x3   = z
   x1                                      ≤ 1
 0.2 x1    +         x2                    ≤ 1         [0, 0, 1]       [1, 0, 0.98]
0.02 x1    +       0.2 x2   +      x3      ≤ 1
x1 , x2 , x3 ≥ 0

                                                         [0, 1, 0]                    [1, 0.8, 0]
 New dictionary
x4 = 1 −   x1
x5 = 1 − 0.2 x1 −    x2
x6 = 1 − 0.02 x1 − 0.2 x2                  −   x3                         [1, 0, 0]
                                                    [0, 0, 0]
Step 3: Achieving 2n-1 Iterations:
Altering the Algebra
Let
   sjxj = xj                 100
                                   x1
                                   s1
                                           + 1, 000
                                                      x2
                                                      s2
                                                           + 10, 000
                                                                        x3
                                                                        s3
                                                                             =   z

                               s1                                                1
                                  x1                                         ≤
                               s4                                                s4
Convert                        s1               s2                               1
 z = v + ∑ d jxj            0.2 x1
                               s5
                                           +
                                                s5
                                                   x2                        ≤
                                                                                 s5
           j∈N                     s1              s2           s3               1
                            0.02      x1   + 0.2      x2   +       x3        ≤
                                   s6              s6           s6               s6
   to                       x1 , x2 , x3 ≥ 0
 z = v + ∑ (d j s j ) x j
          j∈N
The Final Solution
   Most desirable:        x1 , x4
   Least desirable:         x3
        s1 = s4 = 1, s2 = s5 = 0.01, s3 = s6 = 0.0001
       100 x1     + 10 x2            +   x3   =    z
         x1                                   ≤    1
         20 x1    +  x2                       ≤  100
        200 x1    + 20 x2            +   x3   ≤ 10, 000
        x1 , x2 , x3 ≥ 0
Thank you

More Related Content

PPT
Time complexity
PDF
Bch and reed solomon codes generation in frequency domain
PDF
Asymptotic Growth of Functions
PPTX
Dr hasany 2467_16649_1_lec-2-zabist
PPT
Randomized algorithms ver 1.0
PDF
Funcion gamma
Time complexity
Bch and reed solomon codes generation in frequency domain
Asymptotic Growth of Functions
Dr hasany 2467_16649_1_lec-2-zabist
Randomized algorithms ver 1.0
Funcion gamma

What's hot (20)

PPTX
Computer Graphic - Lines, Circles and Ellipse
PPT
Signyourd digital signature certificate provider
PPTX
8 queens problem using back tracking
PDF
Complex analysis and differential equation
PDF
Alex1 group2
PDF
PDF
Sect2 1
PDF
Legendre
PDF
Add Maths 2
PDF
Amth250 octave matlab some solutions (2)
PDF
Formulas de taylor
PDF
Chapter 9 differentiation
PDF
MinFill_Presentation
PDF
Assignment6
PPTX
Lec05 circle ellipse
PDF
Example triple integral
DOCX
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
PPT
Teknik-Pengintegralan
PPT
Gamma function
PDF
Recurrences
Computer Graphic - Lines, Circles and Ellipse
Signyourd digital signature certificate provider
8 queens problem using back tracking
Complex analysis and differential equation
Alex1 group2
Sect2 1
Legendre
Add Maths 2
Amth250 octave matlab some solutions (2)
Formulas de taylor
Chapter 9 differentiation
MinFill_Presentation
Assignment6
Lec05 circle ellipse
Example triple integral
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
Teknik-Pengintegralan
Gamma function
Recurrences
Ad

Viewers also liked (19)

PPT
Complexity of Algorithm
PPT
Time complexity
PPTX
Radix 4 FFT algorithm and it time complexity computation
DOC
Time and space complexity
PPT
how to calclute time complexity of algortihm
PPT
power consumption of household equipments in india
PPTX
Electical energy conservation & awareness
PPTX
Data structure
PPT
Heapsort ppt
PPT
Time andspacecomplexity
PPTX
Star rating of home appliances
PPT
asymptotic notations i
PPTX
Algorithmic Puzzles
PDF
Time complexity (linear search vs binary search)
PPTX
Algorithm Design and Complexity - Course 1&2
PPT
Energy calculation
PDF
Algorithm Analyzing
PPT
Home Appliances
PPTX
Design and Analysis of Algorithms
Complexity of Algorithm
Time complexity
Radix 4 FFT algorithm and it time complexity computation
Time and space complexity
how to calclute time complexity of algortihm
power consumption of household equipments in india
Electical energy conservation & awareness
Data structure
Heapsort ppt
Time andspacecomplexity
Star rating of home appliances
asymptotic notations i
Algorithmic Puzzles
Time complexity (linear search vs binary search)
Algorithm Design and Complexity - Course 1&2
Energy calculation
Algorithm Analyzing
Home Appliances
Design and Analysis of Algorithms
Ad

Similar to Operational research (20)

PPT
Simplex method
PDF
Jacobi and gauss-seidel
DOC
Simplex3
PDF
Simplextabular
PPTX
Inequalities quadratic, fractional & irrational form
PDF
Roots of polynomials
PDF
Or lpp
PPTX
Branch&bound at
PPTX
PPTX
Simplex Meathod
PPTX
Operation Research (Simplex Method)
PPTX
Ouantitative technics
PDF
DLD solutions.pdf digital logic design book
PDF
AlgoPerm2012 - 03 Olivier Hudry
PDF
Algo Final
PPT
LP Graphical Solution
PPT
Lu decomposition
PDF
Gaussseidelsor
 
DOC
Solution of System of Linear Equations
Simplex method
Jacobi and gauss-seidel
Simplex3
Simplextabular
Inequalities quadratic, fractional & irrational form
Roots of polynomials
Or lpp
Branch&bound at
Simplex Meathod
Operation Research (Simplex Method)
Ouantitative technics
DLD solutions.pdf digital logic design book
AlgoPerm2012 - 03 Olivier Hudry
Algo Final
LP Graphical Solution
Lu decomposition
Gaussseidelsor
 
Solution of System of Linear Equations

Recently uploaded (20)

PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Lesson notes of climatology university.
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Cell Types and Its function , kingdom of life
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Final Presentation General Medicine 03-08-2024.pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
O5-L3 Freight Transport Ops (International) V1.pdf
Cell Structure & Organelles in detailed.
Module 4: Burden of Disease Tutorial Slides S2 2025
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Supply Chain Operations Speaking Notes -ICLT Program
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Classroom Observation Tools for Teachers
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPH.pptx obstetrics and gynecology in nursing
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Lesson notes of climatology university.
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Cell Types and Its function , kingdom of life

Operational research

  • 1. Time complexity of simplex algorithm Albi thomas M.tech (TM) Roll no.11
  • 2. Introduction  Time complexity of an algorithm counts the number of arithmetic operations sufficient for the algorithm to solve the problem  Understand properties of LP in terms of geometry  Use geometry as aid to solve LP  Some concepts new
  • 3. Overview  Polynomial time-complexity(bound) Eg.gaussian elimination  Exponential time complexity Eg. Buchberger's algorithm  Feasibility  Simplex Method  Simplex Weaknesses  Exponential Iterations  Convex Sets and Hulls
  • 4. Region of Feasibility  Graphical region describing all feasible solutions to a linear programming problem  In 2-space: polygon, each edge a constraint  In 3-space: polyhedron, each face a constraint
  • 5. Feasibility in 2-Space  2x1 + x2 ≤ 4  In an LP environment, restrict to Quadrant I since x1, x2 ≥ 0
  • 6. Simplex Method  Every time a new dictionary is generated:  Simplex moves from one vertex to another vertex along an edge of polyhedron  Analogous to increasing value of a non-basic variable until bounded by basic constraint  Each such point is a feasible solution  Average time taken is linear in 2 space
  • 7. Feasibility in 3-Space  maximize 3 x1 + 2 x2 + 5 x3 subject to 2 x1 + x2 ≤4 x3 ≤ 5 x1 , x2 , x3 ≥ 0  Five total constraints; therefore 5 faces to the polyhedron
  • 8. Simplex Illustrated: Initial Dictionary x4 = 4 − 2 x1 − x2 x5 = 5 − x3 z = 3 x1 + 2 x2 + 5 x3 Current solution: x1 = 0 x2 = 0 x3 = 0
  • 9. Simplex Illustrated: First Pivot x4 = 4 − 2 x1 − x2 x3 = 5 − x5 z = 25 + 3 x1 + 2 x2 − 5 x5 Current solution: x1 = 0 x2 = 0 x3 = 5
  • 10. Simplex Illustrated: Second Pivot x1 = 2 − 1 2 x 2 − 1 x4 2 x3 = 5 − x5 z = 31 + 1 2 x2 − 3 x4 − 5 x5 2 Current solution: x1 = 2 x2 = 0 x3 = 5
  • 11. Simplex Illustrated: Final Pivot x2 = 4 − 2 x1 − x4 x3 = 5 − x5 z = 33 − 7 x1 − 2 x4 − 5 x5 Final solution (optimal): x1 = 0 x2 = 4 x3 = 5
  • 12. Simplex Review and Analysis  Simplex pivoting represents traveling along polyhedron edges  Each vertex reached tightens one constraint (and if needed, loosens another)  May take a longer path to reach final vertex than needed
  • 15. Simplex Weaknesses: Exponential Iterations: Klee-Minty Reviewed 100 x1 + 10 x2 + x3 = z x1 ≤ 1 20 x1 + x2 ≤ 100 200 x1 + 20 x2 + x3 ≤ 10, 000 x1 , x2 , x3 ≥ 0  Cases with high complexity (2n-1 iterations)  Normal complexity is O(m3)  How was this problem solved?
  • 16. Geometric Interpretation & Klee-Minty  Saw non-optimal solution earlier  How can we represent the Klee-Minty problem class graphically? maximize 3 x1 + 2 x2 + 5 x3 subject to 2 x1 + x2 ≤ 4 x3 ≤ 5 x1 , x2 , x3 ≥ 0
  • 17. Step 1: Constructing a Shape c1 x1 + c2 x2 + c3 x3 = z  Start with a cube. x1 ≤ 1 x2 ≤ 1  What characteristics do x3 ≤ 1 we want the cube to x1 , x2 , x3 ≥ 0 have?  What is the worst case to maximize z?
  • 18. Step 1: Constructing a Shape  Goal 1: Create a shape with a long series of increasing facets  Goal 2: Create an LP problem that forces this route to be taken
  • 19. Step 2: Increasing Objective Function: Modifying the Cube [0, 1, 0.8] [0, 1, 0.82]  Squash the cube 100 x1 + 1, 000 x2 + 10, 000 x3 = z x1 ≤ 1 0.2 x1 + x2 ≤ 1 [0, 0, 1] [1, 0, 0.98] 0.02 x1 + 0.2 x2 + x3 ≤ 1 x1 , x2 , x3 ≥ 0 [0, 1, 0] [1, 0.8, 0]  New dictionary x4 = 1 − x1 x5 = 1 − 0.2 x1 − x2 x6 = 1 − 0.02 x1 − 0.2 x2 − x3 [1, 0, 0] [0, 0, 0]
  • 20. Step 3: Achieving 2n-1 Iterations: Altering the Algebra Let sjxj = xj 100 x1 s1 + 1, 000 x2 s2 + 10, 000 x3 s3 = z s1 1 x1 ≤ s4 s4 Convert s1 s2 1 z = v + ∑ d jxj 0.2 x1 s5 + s5 x2 ≤ s5 j∈N s1 s2 s3 1 0.02 x1 + 0.2 x2 + x3 ≤ s6 s6 s6 s6 to x1 , x2 , x3 ≥ 0 z = v + ∑ (d j s j ) x j j∈N
  • 21. The Final Solution  Most desirable: x1 , x4  Least desirable: x3 s1 = s4 = 1, s2 = s5 = 0.01, s3 = s6 = 0.0001 100 x1 + 10 x2 + x3 = z x1 ≤ 1 20 x1 + x2 ≤ 100 200 x1 + 20 x2 + x3 ≤ 10, 000 x1 , x2 , x3 ≥ 0