SlideShare uma empresa Scribd logo
1 de 22
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
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

Mais conteúdo relacionado

Mais procurados

Computer Graphic - Lines, Circles and Ellipse
Computer Graphic - Lines, Circles and EllipseComputer Graphic - Lines, Circles and Ellipse
Computer Graphic - Lines, Circles and Ellipse2013901097
 
Signyourd digital signature certificate provider
Signyourd   digital signature certificate providerSignyourd   digital signature certificate provider
Signyourd digital signature certificate providerKishankant Yadav
 
8 queens problem using back tracking
8 queens problem using back tracking8 queens problem using back tracking
8 queens problem using back trackingTech_MX
 
Complex analysis and differential equation
Complex analysis and differential equationComplex analysis and differential equation
Complex analysis and differential equationSpringer
 
Amth250 octave matlab some solutions (2)
Amth250 octave matlab some solutions (2)Amth250 octave matlab some solutions (2)
Amth250 octave matlab some solutions (2)asghar123456
 
Formulas de taylor
Formulas de taylorFormulas de taylor
Formulas de taylorERICK CONDE
 
Chapter 9 differentiation
Chapter 9  differentiationChapter 9  differentiation
Chapter 9 differentiationatiqah ayie
 
MinFill_Presentation
MinFill_PresentationMinFill_Presentation
MinFill_PresentationAnna Lasota
 
Lec05 circle ellipse
Lec05 circle ellipseLec05 circle ellipse
Lec05 circle ellipseMaaz Rizwan
 
Example triple integral
Example triple integralExample triple integral
Example triple integralZulaikha Ahmad
 
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSEAU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSEThiyagarajan G
 
Recurrences
RecurrencesRecurrences
RecurrencesDEVTYPE
 

Mais procurados (20)

Computer Graphic - Lines, Circles and Ellipse
Computer Graphic - Lines, Circles and EllipseComputer Graphic - Lines, Circles and Ellipse
Computer Graphic - Lines, Circles and Ellipse
 
Signyourd digital signature certificate provider
Signyourd   digital signature certificate providerSignyourd   digital signature certificate provider
Signyourd digital signature certificate provider
 
8 queens problem using back tracking
8 queens problem using back tracking8 queens problem using back tracking
8 queens problem using back tracking
 
Complex analysis and differential equation
Complex analysis and differential equationComplex analysis and differential equation
Complex analysis and differential equation
 
Alex1 group2
Alex1 group2Alex1 group2
Alex1 group2
 
Math11
Math11Math11
Math11
 
Sect2 1
Sect2 1Sect2 1
Sect2 1
 
Legendre
LegendreLegendre
Legendre
 
Add Maths 2
Add Maths 2Add Maths 2
Add Maths 2
 
Amth250 octave matlab some solutions (2)
Amth250 octave matlab some solutions (2)Amth250 octave matlab some solutions (2)
Amth250 octave matlab some solutions (2)
 
Formulas de taylor
Formulas de taylorFormulas de taylor
Formulas de taylor
 
Chapter 9 differentiation
Chapter 9  differentiationChapter 9  differentiation
Chapter 9 differentiation
 
MinFill_Presentation
MinFill_PresentationMinFill_Presentation
MinFill_Presentation
 
Assignment6
Assignment6Assignment6
Assignment6
 
Lec05 circle ellipse
Lec05 circle ellipseLec05 circle ellipse
Lec05 circle ellipse
 
Example triple integral
Example triple integralExample triple integral
Example triple integral
 
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSEAU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
AU QP Answer key NOv/Dec 2015 Computer Graphics 5 sem CSE
 
Teknik-Pengintegralan
Teknik-PengintegralanTeknik-Pengintegralan
Teknik-Pengintegralan
 
Gamma function
Gamma functionGamma function
Gamma function
 
Recurrences
RecurrencesRecurrences
Recurrences
 

Destaque

Radix 4 FFT algorithm and it time complexity computation
Radix 4 FFT algorithm and it time complexity computationRadix 4 FFT algorithm and it time complexity computation
Radix 4 FFT algorithm and it time complexity computationRaj Jaiswal
 
Time and space complexity
Time and space complexityTime and space complexity
Time and space complexityAnkit Katiyar
 
how to calclute time complexity of algortihm
how to calclute time complexity of algortihmhow to calclute time complexity of algortihm
how to calclute time complexity of algortihmSajid Marwat
 
power consumption of household equipments in india
power consumption of household equipments in indiapower consumption of household equipments in india
power consumption of household equipments in indiaAlbi Thomas
 
Electical energy conservation & awareness
Electical energy  conservation & awareness Electical energy  conservation & awareness
Electical energy conservation & awareness Albi Thomas
 
Star rating of home appliances
Star rating  of home appliancesStar rating  of home appliances
Star rating of home appliancesAlbi Thomas
 
asymptotic notations i
asymptotic notations iasymptotic notations i
asymptotic notations iAli mahmood
 
Time complexity (linear search vs binary search)
Time complexity (linear search vs binary search)Time complexity (linear search vs binary search)
Time complexity (linear search vs binary search)Kumar
 
Algorithm Design and Complexity - Course 1&2
Algorithm Design and Complexity - Course 1&2Algorithm Design and Complexity - Course 1&2
Algorithm Design and Complexity - Course 1&2Traian Rebedea
 
Algorithm Analyzing
Algorithm AnalyzingAlgorithm Analyzing
Algorithm AnalyzingHaluan Irsad
 
Design and Analysis of Algorithms
Design and Analysis of AlgorithmsDesign and Analysis of Algorithms
Design and Analysis of AlgorithmsArvind Krishnaa
 

Destaque (19)

Complexity of Algorithm
Complexity of AlgorithmComplexity of Algorithm
Complexity of Algorithm
 
Time complexity
Time complexityTime complexity
Time complexity
 
Radix 4 FFT algorithm and it time complexity computation
Radix 4 FFT algorithm and it time complexity computationRadix 4 FFT algorithm and it time complexity computation
Radix 4 FFT algorithm and it time complexity computation
 
Time and space complexity
Time and space complexityTime and space complexity
Time and space complexity
 
how to calclute time complexity of algortihm
how to calclute time complexity of algortihmhow to calclute time complexity of algortihm
how to calclute time complexity of algortihm
 
power consumption of household equipments in india
power consumption of household equipments in indiapower consumption of household equipments in india
power consumption of household equipments in india
 
Electical energy conservation & awareness
Electical energy  conservation & awareness Electical energy  conservation & awareness
Electical energy conservation & awareness
 
Data structure
Data structureData structure
Data structure
 
Heapsort ppt
Heapsort pptHeapsort ppt
Heapsort ppt
 
Time andspacecomplexity
Time andspacecomplexityTime andspacecomplexity
Time andspacecomplexity
 
Star rating of home appliances
Star rating  of home appliancesStar rating  of home appliances
Star rating of home appliances
 
asymptotic notations i
asymptotic notations iasymptotic notations i
asymptotic notations i
 
Algorithmic Puzzles
Algorithmic PuzzlesAlgorithmic Puzzles
Algorithmic Puzzles
 
Time complexity (linear search vs binary search)
Time complexity (linear search vs binary search)Time complexity (linear search vs binary search)
Time complexity (linear search vs binary search)
 
Algorithm Design and Complexity - Course 1&2
Algorithm Design and Complexity - Course 1&2Algorithm Design and Complexity - Course 1&2
Algorithm Design and Complexity - Course 1&2
 
Energy calculation
Energy calculationEnergy calculation
Energy calculation
 
Algorithm Analyzing
Algorithm AnalyzingAlgorithm Analyzing
Algorithm Analyzing
 
Home Appliances
Home AppliancesHome Appliances
Home Appliances
 
Design and Analysis of Algorithms
Design and Analysis of AlgorithmsDesign and Analysis of Algorithms
Design and Analysis of Algorithms
 

Semelhante a Operational research

C2 st lecture 4 handout
C2 st lecture 4 handoutC2 st lecture 4 handout
C2 st lecture 4 handoutfatima d
 
Antiderivatives nako sa calculus official
Antiderivatives nako sa calculus officialAntiderivatives nako sa calculus official
Antiderivatives nako sa calculus officialZerick Lucernas
 
Performance of Optimal Registration Estimator
Performance of Optimal Registration EstimatorPerformance of Optimal Registration Estimator
Performance of Optimal Registration EstimatorTuan Q. Pham
 
Calculus First Test 2011/10/20
Calculus First Test 2011/10/20Calculus First Test 2011/10/20
Calculus First Test 2011/10/20Kuan-Lun Wang
 
Nov. 17 Rational Inequalities
Nov. 17 Rational InequalitiesNov. 17 Rational Inequalities
Nov. 17 Rational InequalitiesRyanWatt
 
8-6 Solving Rational Functions
8-6 Solving Rational Functions8-6 Solving Rational Functions
8-6 Solving Rational Functionsrfrettig
 
solving a trig problem and sketching a graph example problems
solving a trig problem and sketching a graph example problemssolving a trig problem and sketching a graph example problems
solving a trig problem and sketching a graph example problemsTyler Murphy
 
Applications of maxima and minima
Applications of maxima and minimaApplications of maxima and minima
Applications of maxima and minimarouwejan
 
LP Graphical Solution
LP Graphical SolutionLP Graphical Solution
LP Graphical Solutionunemployedmba
 
Pde unit 1
Pde unit 1Pde unit 1
Pde unit 1Rajini10
 
simplex method-maths 4 mumbai university
simplex method-maths 4 mumbai universitysimplex method-maths 4 mumbai university
simplex method-maths 4 mumbai universityshobhakedari59
 
Gaussian Integration
Gaussian IntegrationGaussian Integration
Gaussian IntegrationReza Rahimi
 
Lesson 2.2 division
Lesson 2.2 divisionLesson 2.2 division
Lesson 2.2 divisionA V Prakasam
 

Semelhante a Operational research (20)

C2 st lecture 4 handout
C2 st lecture 4 handoutC2 st lecture 4 handout
C2 st lecture 4 handout
 
Antiderivatives nako sa calculus official
Antiderivatives nako sa calculus officialAntiderivatives nako sa calculus official
Antiderivatives nako sa calculus official
 
Performance of Optimal Registration Estimator
Performance of Optimal Registration EstimatorPerformance of Optimal Registration Estimator
Performance of Optimal Registration Estimator
 
Calculus First Test 2011/10/20
Calculus First Test 2011/10/20Calculus First Test 2011/10/20
Calculus First Test 2011/10/20
 
Nov. 17 Rational Inequalities
Nov. 17 Rational InequalitiesNov. 17 Rational Inequalities
Nov. 17 Rational Inequalities
 
8-6 Solving Rational Functions
8-6 Solving Rational Functions8-6 Solving Rational Functions
8-6 Solving Rational Functions
 
solving a trig problem and sketching a graph example problems
solving a trig problem and sketching a graph example problemssolving a trig problem and sketching a graph example problems
solving a trig problem and sketching a graph example problems
 
πιασαμε τα ορια
πιασαμε τα ορια πιασαμε τα ορια
πιασαμε τα ορια
 
Taylor problem
Taylor problemTaylor problem
Taylor problem
 
Applications of maxima and minima
Applications of maxima and minimaApplications of maxima and minima
Applications of maxima and minima
 
Jackson d.e.v.
Jackson d.e.v.Jackson d.e.v.
Jackson d.e.v.
 
Lagrange_Multipliers.pdf
Lagrange_Multipliers.pdfLagrange_Multipliers.pdf
Lagrange_Multipliers.pdf
 
Branch&bound at
Branch&bound atBranch&bound at
Branch&bound at
 
Chithra
ChithraChithra
Chithra
 
LP Graphical Solution
LP Graphical SolutionLP Graphical Solution
LP Graphical Solution
 
Pde unit 1
Pde unit 1Pde unit 1
Pde unit 1
 
simplex method-maths 4 mumbai university
simplex method-maths 4 mumbai universitysimplex method-maths 4 mumbai university
simplex method-maths 4 mumbai university
 
Gaussian Integration
Gaussian IntegrationGaussian Integration
Gaussian Integration
 
Lesson 2.2 division
Lesson 2.2 divisionLesson 2.2 division
Lesson 2.2 division
 
Cross product
Cross productCross product
Cross product
 

Último

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 

Último (20)

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

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
  • 13.
  • 14.
  • 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