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

The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxheathfieldcps1
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/siemaillard
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxjmorse8
 
factors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptxfactors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptxSanjay Shekar
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxShibin Azad
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...Sayali Powar
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Abhinav Gaur Kaptaan
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...Nguyen Thanh Tu Collection
 
Keeping Your Information Safe with Centralized Security Services
Keeping Your Information Safe with Centralized Security ServicesKeeping Your Information Safe with Centralized Security Services
Keeping Your Information Safe with Centralized Security ServicesTechSoup
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxCeline George
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff17thcssbs2
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Celine George
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesashishpaul799
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya - UEM Kolkata Quiz Club
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...Nguyen Thanh Tu Collection
 
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPragya - UEM Kolkata Quiz Club
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the lifeNitinDeodare
 

Último (20)

The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
factors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptxfactors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptx
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
Keeping Your Information Safe with Centralized Security Services
Keeping Your Information Safe with Centralized Security ServicesKeeping Your Information Safe with Centralized Security Services
Keeping Your Information Safe with Centralized Security Services
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
ppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyesppt your views.ppt your views of your college in your eyes
ppt your views.ppt your views of your college in your eyes
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the 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
  • 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