SlideShare una empresa de 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

Más contenido relacionado

La actualidad más candente

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
 

La actualidad más candente (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
 

Destacado

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
 

Destacado (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
 

Similar 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
 

Similar 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

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 

Último (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.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