SlideShare a Scribd company logo
1 of 45
Solving Linear Programs:
  The Simplex Method




                           Simplex-1
The Essence
• Simplex method is an algebraic procedure
• However, its underlying concepts are geometric
• Understanding these geometric concepts helps before
  going into their algebraic equivalents




                                                   Simplex-2
Back to Wyndor Glass
                                          •   Constraint boundaries
X2                                        •   Feasible region
     (0,9)
                                          •   Corner-point solutions
                                          •   Corner-point feasible (CPF)
                                              solutions
     (0,6)   (2,6)   (4,6)                •   Adjacent CPF solutions
                                          •   Edges of the feasible region

                     (4,3)
                                              Optimality test in the
                                              Simplex Method:
                                              If a CPF solution has no
                                              adjacent solutions that are
     (0,0)           (4,0)   (6,0)
                                              better, then it must be an
                                     X1       optimal solution
                                                                        Simplex-3
The Simplex Method in a Nutshell
An iterative
 procedure            Initialization
               (Find initial CPF solution)


                        Is the
                       current
                                             Yes
                         CPF                       Stop
                       solution
                       optimal?

                             No
                  Move to a better
                adjacent CPF solution




                                                          Simplex-4
Solving Wyndor Glass
                                   •   Initial CPF
X2                                 •   Optimality test
     (0,6)   (2,6)                 •   If not optimal, then move to a
     Z=30
               Z=36                    better adjacent CPF solution:
                                        – Consider the edges that
                                          emanate from current CPF
                      (4,3)
                      Z=27
                                        – Move along the edge that
                                          increases Z at a faster rate
                                        – Stop at the first constraint
                                          boundary
     (0,0)            (4,0)             – Solve for the intersection of
                      Z=12
     Z=0                      X1          the new boundaries
                                        – Back to optimality test


                                                                    Simplex-5
Key Concepts
• Focus only on CPF solutions
• An iterative algorithm
• If possible, use the origin as the initial CPF solution
• Move always to adjacent CPF solutions
• Don’t calculate the Z value at adjacent solutions, instead
  move directly to the one that ‘looks’ better (on the edge
  with the higher rate of improvement)
• Optimality test also looks at the rate of improvement
  (If all negative, then optimal)


                                                        Simplex-6
‘Language’ of the Simplex Method




                               Simplex-7
Initial Assumptions
• All constraints are of the form ≤

• All right-hand-side values (bj, j=1, …,m) are positive


• We’ll learn how to address other forms later




                                                           Simplex-8
The Augmented Form
Set up the method first:
Convert inequality constraints to equality constraints by
adding slack variables
                                 Augmented Form
Original Form

                                 Maximize Z = 3x1+ 5x2
Maximize Z = 3x1+ 5x2


                                 subject to   x1            +s1        =4
subject to      x1          ≤4
                                                      2x2              = 12
                     2x2 ≤ 12
                                              3x1+ 2x2                 = 18
                3x1+ 2x2 ≤ 18


                                              x1,x2               ≥0
                x1,x2 ≥ 0
                                                                       Simplex-9
Basic and Basic Feasible Solutions
X2
                                                  Augmented Form
     (0,9,4,-6,0)
                                                  Maximize         Z=   3x1+    5x2

                                                  subject to            x1             +s1                  =4
                                                                                2x2             +s2         = 12
                                                                        3x1+    2x2                   +s3   = 18
     (0,6,4,0,6)     (2,6,2,0,0)   (4,6,0,0,-6)
                                                                        x1,x2, s1, s2, s3 ≥ 0



                                                               •    Augmented solution
              (2,3,2,6,6)
                                   (4,3,0,6,0)
                                                               •    Basic infeasible solution

                                                               •    Basic feasible solution (BFS)
     (0,2,4,8,14)
                                                               •    Nonbasic feasible solution
     (0,0,4,12,18)                 (4,0,0,12,6)        (6,0,-2,12,0)


                                                                               X1                                  Simplex-10
Basic, Nonbasic Solutions and the Basis

• In an LP, number of variables > number of equations
• The difference is the degrees of freedom of the system
   – e.g. in Wyndor Glass, degrees of freedom (d.f.)=
• Can set some variables (# = d.f.) to an arbitrary value
  (simplex uses 0)
• These variables (set to 0) are called nonbasic variables
• The rest can be found by solving the remaining system
• The basis: the set of basic variables
• If all basic variables are ≥ 0, we have a BFS
• Between two basic solutions, if their bases are the same
  except for one variable, then they are adjacent
                                                        Simplex-11
Basis Examples: Wyndor Glass
               Maximize     Z = 3x1+ 5x2

               subject to       x1          +s1              =4
                                     2x2           +s2       = 12
                                3x1+ 2x2                 +s3 = 18

                                x1,x2, s1, s2, s3 ≥ 0

• If the basis was:
(x1,x2,s1) →


(x1,x2,s2) →


(s1,s2,s3) →


• Which ones are BFS? Which pairs are adjacent?
                                                                    Simplex-12
Algebra of the Simplex Method
                                 Initialization
               Maximize     Z = 3x1+ 5x2

               subject to       x1          +s1              =4
                                     2x2           +s2       = 12
                                3x1+ 2x2                 +s3 = 18

                                x1,x2, s1, s2, s3 ≥ 0

•   Find an initial basic feasible solution
•   Remember from key concepts:
    “If possible, use the origin as the initial CPF solution”
•   Equivalent to:
    Choose original variables to be nonbasic (xi=0, i=1,…n) and let
    the slack variables be basic (sj=bj, j=1,…m))



                                                                    Simplex-13
Algebra of the Simplex Method
                               Optimality Test
               Maximize     Z = 3x1+ 5x2

               subject to       x1          +s1              =4
                                     2x2           +s2       = 12
                                3x1+ 2x2                 +s3 = 18

                                x1,x2, s1, s2, s3 ≥ 0
•   Are any adjacent BF solutions better than the current one?
•   Rewrite Z in terms of nonbasic variables and investigate rate of
    improvement
•   Current nonbasic variables:
•   Corresponding Z:



•   Optimal?
                                                                    Simplex-14
Algebra of the Simplex Method
         Step 1 of Iteration 1: Direction of Movement
               Maximize     Z = 3x1+ 5x2

               subject to       x1          +s1              =4
                                     2x2           +s2       = 12
                                3x1+ 2x2                 +s3 = 18

                                x1,x2, s1, s2, s3 ≥ 0
•   Which edge to move on?
•   Determine the direction of movement by selecting the entering
    variable (variable ‘entering’ the basis)
•   Choose the direction of steepest ascent
     – x1: Rate of improvement in Z =
     – x2: Rate of improvement in Z =
•   Entering basic variable =


                                                                    Simplex-15
Algebra of the Simplex Method
               Step 2 of Iteration 1: Where to Stop
                Maximize     Z = 3x1+ 5x2

                subject to       x1          +s1              =4     (1)
                                      2x2           +s2       = 12   (2)
                                 3x1+ 2x2                 +s3 = 18   (3)

                                 x1,x2, s1, s2, s3 ≥ 0
•   How far can we go?
•   Determine where to stop by selecting the leaving variable
    (variable ‘leaving’ the basis)
•   Increasing the value of x2 decreases the value of basic variables
•   The minimum ratio test
     – Constraint (1):
     – Constraint (2):
     – Constraint (3):
•   Leaving basic variable =
                                                                           Simplex-16
Algebra of the Simplex Method
    Step 3 of Iteration 1: Solving for the New BF Solution
                  Z-   3x1- 5x2                  =0      (0)

                       x1         +s1             =4     (1)
                            2x2         +s2       = 12   (2)
                       3x1+ 2x2               +s3 = 18   (3)

•   Convert the system of equations to a more proper form for the
    new BF solution
•   Elementary algebraic operations: Gaussian elimination
     – Eliminate the entering basic variable (x2) from all but its
       equation




                                                                     Simplex-17
Algebra of the Simplex Method
                                Optimality Test
               Z-   3x1+              + 5/2 s2       = 30   (0)

                    x1          +s1                   =4    (1)
                           x2         + 1/2 s2        =6    (2)
                    3x1               - s2       + s3 = 6   (3)


•   Are any adjacent BF solutions better than the current one?
•   Rewrite Z in terms of nonbasic variables and investigate rate of
    improvement
•   Current nonbasic variables:
•   Corresponding Z:



•   Optimal?
                                                                  Simplex-18
Algebra of the Simplex Method
         Step 1 of Iteration 2: Direction of Movement
               Z-   3x1+              + 5/2 s2       = 30   (0)

                    x1          +s1                   =4    (1)
                           x2         + 1/2 s2        =6    (2)
                    3x1               - s2       + s3 = 6   (3)


•   Which edge to move on?
•   Determine the direction of movement by selecting the entering
    variable (variable ‘entering’ the basis)
•   Choose the direction of steepest ascent
     – x1: Rate of improvement in Z =
     – s2: Rate of improvement in Z =
•   Entering basic variable =


                                                                  Simplex-19
Algebra of the Simplex Method
               Step 2 of Iteration 2: Where to Stop
                Z-   3x1+              + 5/2 s2       = 30   (0)

                     x1          +s1                   =4    (1)
                            x2         + 1/2 s2        =6    (2)
                     3x1               - s2       + s3 = 6   (3)


•   How far can we go?
•   Determine where to stop by selecting the leaving variable
    (variable ‘leaving’ the basis)
•   Increasing the value of x1 decreases the value of basic variables
•   The minimum ratio test
     – Constraint (1):
     – Constraint (2):
     – Constraint (3):
•   Leaving basic variable =
                                                                   Simplex-20
Algebra of the Simplex Method
    Step 3 of Iteration 2: Solving for the New BF Solution
                Z-   3x1+              + 5/2 s2       = 30   (0)

                     x1          +s1                   =4    (1)
                            x2         + 1/2 s2        =6    (2)
                     3x1               - s2       + s3 = 6   (3)


•   Convert the system of equations to a more proper form for the
    new BF solution
•   Elementary algebraic operations: Gaussian elimination
     – Eliminate the entering basic variable (x1) from all but its
       equation




                                                                     Simplex-21
Algebra of the Simplex Method
                             Optimality Test
               Z                   + 3/2 s2 + s3    = 36   (0)

                             +s1   + 1/3 s2 - 1/3 s3 = 2   (1)
                        x2         + 1/2 s2          =6    (2)
                   x1              - 1/3 s2 + 1/3 s3 = 2   (3)


•   Are any adjacent BF solutions better than the current one?
•   Rewrite Z in terms of nonbasic variables and investigate rate of
    improvement
•   Current nonbasic variables:
•   Corresponding Z:



•   Optimal?
                                                                  Simplex-22
The Simplex Method in Tabular Form
• For convenience in performing the required calculations
• Record only the essential information of the (evolving)
  system of equations in tableaux
   – Coefficients of the variables
   – Constants on the right-hand-sides
   – Basic variables corresponding to equations




                                                     Simplex-23
Wyndor Glass
               Z-   3x1 - 5x2                      =0        (0)

                    x1          +s1              =4          (1)
                         2x2           +s2       = 12        (2)
                    3x1+ 2x2                 +s3 = 18        (3)



• Convert to initial tableau
     Basic
               Z         x1       x2          s1        s2         s3   r.h.s.
    variable




                                                                                 Simplex-24
Wyndor Glass, Iteration 1
        Basic
                      Z       x1      x2       s1        s2   s3   r.h.s.
       variable
          Z           1       -3      -5       0         0    0      0
          s1          0       1        0       1         0    0      4
          s2          0       0        2       0         1    0     12
          s3          0       3        2       0         0    1     18
•   Optimality test
•   Entering variable (steepest ascent) – pivot column
•   Leaving variable (minimum ratio test) – pivot row
•   Gaussian elimination
        Basic
                      Z       x1      x2       s1        s2   s3   r.h.s.
       variable
          Z           1
                      0
                      0
                      0
                                                                            Simplex-25
Wyndor Glass, Iteration 2
        Basic
                      Z       x1      x2       s1        s2    s3   r.h.s.
       variable
          Z           1       -3       0       0         5/2   0     30
          s1          0       1        0       1         0     0      4
          x2          0       0        1       0         1/2   0      6
          s3          0       3        0       0         -1    1      6
•   Optimality test
•   Entering variable (steepest ascent) – pivot column
•   Leaving variable (minimum ratio test) – pivot row
•   Gaussian elimination
        Basic
                      Z       x1      x2       s1        s2    s3   r.h.s.
       variable
          Z           1
                      0
                      0
                      0
                                                                             Simplex-26
Wyndor Glass, Iteration 3
        Basic
                      Z       x1      x2       s1        s2     s3     r.h.s.
       variable
          Z           1       0        0       0         3/2     1      36
          s1          0       0        0       1         1/3    -1/3     2
          x2          0       0        1       0         1/2     0       6
          x1          0       1        0       0         -1/3   1/3      2
•   Optimality test
•   Entering variable (steepest ascent) – pivot column
•   Leaving variable (minimum ratio test) – pivot row
•   Gaussian elimination
        Basic
                      Z       x1      x2       s1        s2     s3     r.h.s.
       variable
          Z           1
                      0
                      0
                      0
                                                                                Simplex-27
Special Cases, Example 1
      Z-   3x1- 5x2               =0        (0)

           x1         +s1         =4        (1)

 Basic
                Z           x1   x2    s1         r.h.s.
variable




 Basic
                Z           x1   x2    s1         r.h.s.
variable




                                                           Simplex-28
Special Cases, Example 2
             Z-   6x1- 4x2                      =0        (0)

                  x1         +s1              =4          (1)
                       2x2          +s2       = 12        (2)
                  3x1+ 2x2                +s3 = 18        (3)
 Basic
             Z         x1      x2          s1        s2         s3   r.h.s.
variable




 Basic
             Z         x1      x2          s1        s2         s3   r.h.s.
variable




                                                                              Simplex-29
Special Cases, Example 2, cont’d

 Basic
           Z   x1   x2   s1   s2   s3   r.h.s.
variable




 Basic
           Z   x1   x2   s1   s2   s3   r.h.s.
variable




                                                 Simplex-30
Special Cases, Example 3
             Z-   3x1- 3x2                      =0        (0)

                  x1         +s1              =4          (1)
                       2x2          +s2       = 12        (2)
                  3x1+ 2x2                +s3 = 18        (3)

 Basic
             Z         x1      x2          s1        s2         s3   r.h.s.
variable




                                                                              Simplex-31
Special Cases, Example 4
             Z-   3x1- 5x2                      =0        (0)

                  x1         +s1              =4          (1)
                       2x2          +s2       = 12        (2)
                  3x1+ 3x2                +s3 = 18        (3)

 Basic
             Z         x1      x2          s1        s2         s3   r.h.s.
variable




                                                                              Simplex-32
Special Cases, Summary
•   If no variable qualifies to be the leaving variable, then the LP is
    unbounded
•   If the Z-row coefficient of a nonbasic variable is zero, the variable
    may enter the basis, however the objective function will not change
     – If, in addition, coefficients of all other nonbasic variables are ≥ 0, then
       there are multiple optimal solutions
•   If there is a tie for the entering variable, break it arbitrarily
     – It will only affect the path taken, but the same optimal solution will be
       reached
•   If there is a tie for the leaving variable, theoretically the way in which
    the tie is broken is important
     – The method can get trapped in an infinite loop (cycling under
       degeneracy)
     – Beyond the scope of this class
                                                                              Simplex-33
Other Problem Forms
• Until now, we assumed
   – Only constraints of the form ≤
   – Only positive right-hand-side values (bj ≥ 0)
   – Non-negativity
• We relaxed the maximization assumption earlier:
  min cx     =
• Time to relax the other assumptions




                                                     Simplex-34
Equality Constraints
• Consider the Wyndor Glass problem, where Plant 3 constraint is
  changed as follows:
              Maximize     Z = 3x1+ 5x2

              subject to       x1          ≤4
                                    2x2    ≤ 12
                               3x1+ 2x2    = 18

                               x1,x2 ≥ 0
• Convert to augmented form:




• Any problems you foresee with the simplex method?
                                                              Simplex-35
Artificial Variables and the Big M
• Introduce artificial variables to the problem
• Assign huge penalties in the objective function
Maximize     Z = 3x1+ 5x2

subject to       x1          ≤4
                      2x2    ≤ 12
                 3x1+ 2x2    = 18

                 x1,x2 ≥ 0




                                                    Simplex-36
Solving the new problem (1)
 Basic
           Z   x1   x2         r.h.s.
variable




 Basic
           Z   x1   x2         r.h.s.
variable




                                        Simplex-37
Solving the new problem (2)
 Basic
           Z   x1   x2         r.h.s.
variable




 Basic
           Z   x1   x2         r.h.s.
variable




                                        Simplex-38
Geometric Insight into Big M
  x2
          (2,6)



                               Original
                               feasible
                                region
                  (4,3)




                          x1


                                          Simplex-39
Geometric Insight into Big M

                   (0,6)




“Artificial”
 feasible          (0,0)       (4,0)
  region



                                              Simplex-40
Negative RHS Values

• Consider a constraint with bj < 0
   – e.g. The number of windows produced should be at most 5 less
     than the number of doors produced:



• Easy fix:



• Tough consequences


                                                             Simplex-41
≥ Constraints
• Consider the Wyndor Glass problem, where Plant 3 constraint is
  changed as follows:
              Maximize     Z = 3x1+ 5x2

              subject to       x1          ≤4
                                    2x2    ≤ 12
                               3x1+ 2x2    ≥ 18

                               x1,x2 ≥ 0
• Convert to augmented form:




• Then use Big-M method
                                                              Simplex-42
Variables Allowed to be Negative
             Maximize     Z = 3x1+ 5x2

             subject to       x1          ≤4
                                   2x2    ≤ 12
                              3x1+ 2x2    ≤ 18

                              x1 ≥ -10, x2 ≥ 0
(When there is a bound on the negative values allowed)




                                                         Simplex-43
Variables Allowed to be Negative
             Maximize     Z = 3x1+ 5x2

             subject to       x1         ≤4
                                   2x2   ≤ 12
                              3x1+ 2x2   ≤ 18

                              x1 unrestricted in sign, x2 ≥ 0
(When there is no bound on the negative values allowed)




                                                                Simplex-44
Traffic Signal Example
• Set green times for a crossroad
• Allocate a given cycle time of 62 seconds to E-W and
  N-S directions, less an all-red time of 2 seconds
• E-W direction should receive
   – at least 10 seconds of green time
   – at least 5 seconds less than twice the N-S green time
• A linear estimate for the average delay per car per lane
  is given as 120 - 2 (E-W GT) - 3 (N-S GT)
• Find the green time allocation to minimize average delay



                                                             Simplex-45

More Related Content

What's hot

Unit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisUnit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisDagnaygebawGoshme
 
Duality in Linear Programming Problem
Duality in Linear Programming ProblemDuality in Linear Programming Problem
Duality in Linear Programming ProblemRAVI PRASAD K.J.
 
Simplex method: Slack, Surplus & Artificial variable
Simplex method:  Slack, Surplus & Artificial variableSimplex method:  Slack, Surplus & Artificial variable
Simplex method: Slack, Surplus & Artificial variableDevyaneeDevyanee2007
 
Simplex Method
Simplex MethodSimplex Method
Simplex Methodkzoe1996
 
Simplex Method
Simplex MethodSimplex Method
Simplex MethodSachin MK
 
Integer Linear Programming
Integer Linear ProgrammingInteger Linear Programming
Integer Linear ProgrammingSukhpalRamanand
 
Transportation Problem In Linear Programming
Transportation Problem In Linear ProgrammingTransportation Problem In Linear Programming
Transportation Problem In Linear ProgrammingMirza Tanzida
 
Duality in Linear Programming
Duality in Linear ProgrammingDuality in Linear Programming
Duality in Linear Programmingjyothimonc
 
Transportation Problem in Operational Research
Transportation Problem in Operational ResearchTransportation Problem in Operational Research
Transportation Problem in Operational ResearchNeha Sharma
 
Chapter 3 linear programming
Chapter 3   linear programmingChapter 3   linear programming
Chapter 3 linear programmingsarkissk
 
Waiting line model(or presentation)
Waiting line model(or presentation)Waiting line model(or presentation)
Waiting line model(or presentation)Muhammad NasRi
 

What's hot (20)

Unit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisisUnit.3. duality and sensetivity analisis
Unit.3. duality and sensetivity analisis
 
Duality in Linear Programming Problem
Duality in Linear Programming ProblemDuality in Linear Programming Problem
Duality in Linear Programming Problem
 
Simplex method: Slack, Surplus & Artificial variable
Simplex method:  Slack, Surplus & Artificial variableSimplex method:  Slack, Surplus & Artificial variable
Simplex method: Slack, Surplus & Artificial variable
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
Simplex method maximisation
Simplex method maximisationSimplex method maximisation
Simplex method maximisation
 
Minimization model by simplex method
Minimization model by simplex methodMinimization model by simplex method
Minimization model by simplex method
 
Simplex Method
Simplex MethodSimplex Method
Simplex Method
 
simplex method
simplex methodsimplex method
simplex method
 
Integer Linear Programming
Integer Linear ProgrammingInteger Linear Programming
Integer Linear Programming
 
Transportation Problem In Linear Programming
Transportation Problem In Linear ProgrammingTransportation Problem In Linear Programming
Transportation Problem In Linear Programming
 
Duality in Linear Programming
Duality in Linear ProgrammingDuality in Linear Programming
Duality in Linear Programming
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
Big m method
Big m methodBig m method
Big m method
 
Transportation Problem in Operational Research
Transportation Problem in Operational ResearchTransportation Problem in Operational Research
Transportation Problem in Operational Research
 
Linear Programming
Linear  ProgrammingLinear  Programming
Linear Programming
 
Duality
DualityDuality
Duality
 
Chapter 3 linear programming
Chapter 3   linear programmingChapter 3   linear programming
Chapter 3 linear programming
 
Simplex two phase
Simplex two phaseSimplex two phase
Simplex two phase
 
Waiting line model(or presentation)
Waiting line model(or presentation)Waiting line model(or presentation)
Waiting line model(or presentation)
 
Operations Research - The Dual Simplex Method
Operations Research - The Dual Simplex MethodOperations Research - The Dual Simplex Method
Operations Research - The Dual Simplex Method
 

Viewers also liked

Sequencing problems in Operations Research
Sequencing problems in Operations ResearchSequencing problems in Operations Research
Sequencing problems in Operations ResearchAbu Bashar
 
Sales forecasting techniques
Sales forecasting techniquesSales forecasting techniques
Sales forecasting techniquesAbu Bashar
 
Enterprise Resource Management by Dr. B. J. Mohite
Enterprise Resource Management by Dr. B. J. MohiteEnterprise Resource Management by Dr. B. J. Mohite
Enterprise Resource Management by Dr. B. J. MohiteZeal Education Society, Pune
 
Design and analysis of Algorithm By Dr. B. J. Mohite
Design and analysis of Algorithm By Dr. B. J. MohiteDesign and analysis of Algorithm By Dr. B. J. Mohite
Design and analysis of Algorithm By Dr. B. J. MohiteZeal Education Society, Pune
 
Plant location and layout
Plant location and layoutPlant location and layout
Plant location and layoutAbu Bashar
 
Role and importance of language in the curriculum
Role and importance of language in the curriculumRole and importance of language in the curriculum
Role and importance of language in the curriculumAbu Bashar
 
Problem Definition in research design
Problem Definition in research designProblem Definition in research design
Problem Definition in research designAbu Bashar
 
Study on consumer perception towards Public Transports
Study on consumer perception towards Public TransportsStudy on consumer perception towards Public Transports
Study on consumer perception towards Public TransportsAbu Bashar
 
Inventory Management
Inventory ManagementInventory Management
Inventory ManagementAbu Bashar
 
Simulation theory
Simulation theorySimulation theory
Simulation theoryAbu Bashar
 
Linear programming in market application
Linear programming in market applicationLinear programming in market application
Linear programming in market applicationAhmad Raza Bhatti
 
Payback model of risk management by Dr. B. J. Mohite
Payback model of risk management by Dr. B. J. MohitePayback model of risk management by Dr. B. J. Mohite
Payback model of risk management by Dr. B. J. MohiteZeal Education Society, Pune
 
Pedagogy of science
Pedagogy of sciencePedagogy of science
Pedagogy of scienceAbu Bashar
 

Viewers also liked (20)

Sequencing problems in Operations Research
Sequencing problems in Operations ResearchSequencing problems in Operations Research
Sequencing problems in Operations Research
 
Sales forecasting techniques
Sales forecasting techniquesSales forecasting techniques
Sales forecasting techniques
 
Enterprise Resource Management by Dr. B. J. Mohite
Enterprise Resource Management by Dr. B. J. MohiteEnterprise Resource Management by Dr. B. J. Mohite
Enterprise Resource Management by Dr. B. J. Mohite
 
Design and analysis of Algorithm By Dr. B. J. Mohite
Design and analysis of Algorithm By Dr. B. J. MohiteDesign and analysis of Algorithm By Dr. B. J. Mohite
Design and analysis of Algorithm By Dr. B. J. Mohite
 
Plant location and layout
Plant location and layoutPlant location and layout
Plant location and layout
 
Role and importance of language in the curriculum
Role and importance of language in the curriculumRole and importance of language in the curriculum
Role and importance of language in the curriculum
 
Unit 4 or
Unit 4 orUnit 4 or
Unit 4 or
 
Problem Definition in research design
Problem Definition in research designProblem Definition in research design
Problem Definition in research design
 
Study on consumer perception towards Public Transports
Study on consumer perception towards Public TransportsStudy on consumer perception towards Public Transports
Study on consumer perception towards Public Transports
 
Inventory Management
Inventory ManagementInventory Management
Inventory Management
 
Simulation theory
Simulation theorySimulation theory
Simulation theory
 
Linear programming in market application
Linear programming in market applicationLinear programming in market application
Linear programming in market application
 
Function Point Analysis (FPA) by Dr. B. J. Mohite
Function Point Analysis (FPA) by Dr. B. J. MohiteFunction Point Analysis (FPA) by Dr. B. J. Mohite
Function Point Analysis (FPA) by Dr. B. J. Mohite
 
Replacement Theory. by Dr. Babasaheb. J. Mohite
Replacement Theory. by  Dr. Babasaheb. J. MohiteReplacement Theory. by  Dr. Babasaheb. J. Mohite
Replacement Theory. by Dr. Babasaheb. J. Mohite
 
Software metrics by Dr. B. J. Mohite
Software metrics by Dr. B. J. MohiteSoftware metrics by Dr. B. J. Mohite
Software metrics by Dr. B. J. Mohite
 
Greedy method by Dr. B. J. Mohite
Greedy method by Dr. B. J. MohiteGreedy method by Dr. B. J. Mohite
Greedy method by Dr. B. J. Mohite
 
Productivity
ProductivityProductivity
Productivity
 
Payback model of risk management by Dr. B. J. Mohite
Payback model of risk management by Dr. B. J. MohitePayback model of risk management by Dr. B. J. Mohite
Payback model of risk management by Dr. B. J. Mohite
 
Managerial Decision Making by Dr. B. J. Mohite
Managerial Decision Making by Dr. B. J. MohiteManagerial Decision Making by Dr. B. J. Mohite
Managerial Decision Making by Dr. B. J. Mohite
 
Pedagogy of science
Pedagogy of sciencePedagogy of science
Pedagogy of science
 

Similar to Simplex method

Logistics. Terminology
Logistics. TerminologyLogistics. Terminology
Logistics. TerminologySSA KPI
 
Notes solving polynomial equations
Notes   solving polynomial equationsNotes   solving polynomial equations
Notes solving polynomial equationsLori Rapp
 
Linear programming graphical method (feasibility)
Linear programming   graphical method (feasibility)Linear programming   graphical method (feasibility)
Linear programming graphical method (feasibility)Rajesh Timane, PhD
 
Support Vector Machines is the the the the the the the the the
Support Vector Machines is the the the the the the the the theSupport Vector Machines is the the the the the the the the the
Support Vector Machines is the the the the the the the the thesanjaibalajeessn
 
LP special cases and Duality.pptx
LP special cases and Duality.pptxLP special cases and Duality.pptx
LP special cases and Duality.pptxSnehal Athawale
 
cos323_s06_lecture03_optimization.ppt
cos323_s06_lecture03_optimization.pptcos323_s06_lecture03_optimization.ppt
cos323_s06_lecture03_optimization.pptdevesh604174
 
CMR_Graphical Method -Special cases.pdf
CMR_Graphical Method -Special cases.pdfCMR_Graphical Method -Special cases.pdf
CMR_Graphical Method -Special cases.pdfKhaderMohamet
 

Similar to Simplex method (8)

Logistics. Terminology
Logistics. TerminologyLogistics. Terminology
Logistics. Terminology
 
Branch&bound at
Branch&bound atBranch&bound at
Branch&bound at
 
Notes solving polynomial equations
Notes   solving polynomial equationsNotes   solving polynomial equations
Notes solving polynomial equations
 
Linear programming graphical method (feasibility)
Linear programming   graphical method (feasibility)Linear programming   graphical method (feasibility)
Linear programming graphical method (feasibility)
 
Support Vector Machines is the the the the the the the the the
Support Vector Machines is the the the the the the the the theSupport Vector Machines is the the the the the the the the the
Support Vector Machines is the the the the the the the the the
 
LP special cases and Duality.pptx
LP special cases and Duality.pptxLP special cases and Duality.pptx
LP special cases and Duality.pptx
 
cos323_s06_lecture03_optimization.ppt
cos323_s06_lecture03_optimization.pptcos323_s06_lecture03_optimization.ppt
cos323_s06_lecture03_optimization.ppt
 
CMR_Graphical Method -Special cases.pdf
CMR_Graphical Method -Special cases.pdfCMR_Graphical Method -Special cases.pdf
CMR_Graphical Method -Special cases.pdf
 

More from Abu Bashar

Rationalization Of Electricity Consumption In Bahrain.pptx
Rationalization Of Electricity Consumption In Bahrain.pptxRationalization Of Electricity Consumption In Bahrain.pptx
Rationalization Of Electricity Consumption In Bahrain.pptxAbu Bashar
 
Health and physical education
Health and physical educationHealth and physical education
Health and physical educationAbu Bashar
 
Pedagogy of biological science
Pedagogy of biological sciencePedagogy of biological science
Pedagogy of biological scienceAbu Bashar
 
Knowledge and curriculum
Knowledge and curriculumKnowledge and curriculum
Knowledge and curriculumAbu Bashar
 
Business Intelligence
Business IntelligenceBusiness Intelligence
Business IntelligenceAbu Bashar
 
Inclusive education & School
Inclusive education & SchoolInclusive education & School
Inclusive education & SchoolAbu Bashar
 
Assessments for learning -B.ed Second year notes
Assessments for learning -B.ed Second year notesAssessments for learning -B.ed Second year notes
Assessments for learning -B.ed Second year notesAbu Bashar
 
E satisfaction e-loyalty of consumers shopping online
E satisfaction e-loyalty of consumers shopping onlineE satisfaction e-loyalty of consumers shopping online
E satisfaction e-loyalty of consumers shopping onlineAbu Bashar
 
Impulse buying behaviour
Impulse buying behaviourImpulse buying behaviour
Impulse buying behaviourAbu Bashar
 
Gender school and society
Gender school and societyGender school and society
Gender school and societyAbu Bashar
 
The constitutional provision of education
The constitutional provision of educationThe constitutional provision of education
The constitutional provision of educationAbu Bashar
 
Teaching and its basic elements
Teaching and its basic elementsTeaching and its basic elements
Teaching and its basic elementsAbu Bashar
 
Women empowerment
Women empowermentWomen empowerment
Women empowermentAbu Bashar
 
Gender inequality
Gender inequalityGender inequality
Gender inequalityAbu Bashar
 
Language and its importance
Language and its importanceLanguage and its importance
Language and its importanceAbu Bashar
 
Classification of languages
Classification of languagesClassification of languages
Classification of languagesAbu Bashar
 
Drama and its types
Drama and its typesDrama and its types
Drama and its typesAbu Bashar
 
The elements of drama
The elements of dramaThe elements of drama
The elements of dramaAbu Bashar
 
What is e mail
What is e mailWhat is e mail
What is e mailAbu Bashar
 

More from Abu Bashar (20)

Rationalization Of Electricity Consumption In Bahrain.pptx
Rationalization Of Electricity Consumption In Bahrain.pptxRationalization Of Electricity Consumption In Bahrain.pptx
Rationalization Of Electricity Consumption In Bahrain.pptx
 
Health and physical education
Health and physical educationHealth and physical education
Health and physical education
 
Pedagogy of biological science
Pedagogy of biological sciencePedagogy of biological science
Pedagogy of biological science
 
Knowledge and curriculum
Knowledge and curriculumKnowledge and curriculum
Knowledge and curriculum
 
Business Intelligence
Business IntelligenceBusiness Intelligence
Business Intelligence
 
Inclusive education & School
Inclusive education & SchoolInclusive education & School
Inclusive education & School
 
Assessments for learning -B.ed Second year notes
Assessments for learning -B.ed Second year notesAssessments for learning -B.ed Second year notes
Assessments for learning -B.ed Second year notes
 
E satisfaction e-loyalty of consumers shopping online
E satisfaction e-loyalty of consumers shopping onlineE satisfaction e-loyalty of consumers shopping online
E satisfaction e-loyalty of consumers shopping online
 
Impulse buying behaviour
Impulse buying behaviourImpulse buying behaviour
Impulse buying behaviour
 
Gender school and society
Gender school and societyGender school and society
Gender school and society
 
The constitutional provision of education
The constitutional provision of educationThe constitutional provision of education
The constitutional provision of education
 
Teaching and its basic elements
Teaching and its basic elementsTeaching and its basic elements
Teaching and its basic elements
 
Women empowerment
Women empowermentWomen empowerment
Women empowerment
 
Gender inequality
Gender inequalityGender inequality
Gender inequality
 
Language and its importance
Language and its importanceLanguage and its importance
Language and its importance
 
Classification of languages
Classification of languagesClassification of languages
Classification of languages
 
Reading types
Reading typesReading types
Reading types
 
Drama and its types
Drama and its typesDrama and its types
Drama and its types
 
The elements of drama
The elements of dramaThe elements of drama
The elements of drama
 
What is e mail
What is e mailWhat is e mail
What is e mail
 

Simplex method

  • 1. Solving Linear Programs: The Simplex Method Simplex-1
  • 2. The Essence • Simplex method is an algebraic procedure • However, its underlying concepts are geometric • Understanding these geometric concepts helps before going into their algebraic equivalents Simplex-2
  • 3. Back to Wyndor Glass • Constraint boundaries X2 • Feasible region (0,9) • Corner-point solutions • Corner-point feasible (CPF) solutions (0,6) (2,6) (4,6) • Adjacent CPF solutions • Edges of the feasible region (4,3) Optimality test in the Simplex Method: If a CPF solution has no adjacent solutions that are (0,0) (4,0) (6,0) better, then it must be an X1 optimal solution Simplex-3
  • 4. The Simplex Method in a Nutshell An iterative procedure Initialization (Find initial CPF solution) Is the current Yes CPF Stop solution optimal? No Move to a better adjacent CPF solution Simplex-4
  • 5. Solving Wyndor Glass • Initial CPF X2 • Optimality test (0,6) (2,6) • If not optimal, then move to a Z=30 Z=36 better adjacent CPF solution: – Consider the edges that emanate from current CPF (4,3) Z=27 – Move along the edge that increases Z at a faster rate – Stop at the first constraint boundary (0,0) (4,0) – Solve for the intersection of Z=12 Z=0 X1 the new boundaries – Back to optimality test Simplex-5
  • 6. Key Concepts • Focus only on CPF solutions • An iterative algorithm • If possible, use the origin as the initial CPF solution • Move always to adjacent CPF solutions • Don’t calculate the Z value at adjacent solutions, instead move directly to the one that ‘looks’ better (on the edge with the higher rate of improvement) • Optimality test also looks at the rate of improvement (If all negative, then optimal) Simplex-6
  • 7. ‘Language’ of the Simplex Method Simplex-7
  • 8. Initial Assumptions • All constraints are of the form ≤ • All right-hand-side values (bj, j=1, …,m) are positive • We’ll learn how to address other forms later Simplex-8
  • 9. The Augmented Form Set up the method first: Convert inequality constraints to equality constraints by adding slack variables Augmented Form Original Form Maximize Z = 3x1+ 5x2 Maximize Z = 3x1+ 5x2 subject to x1 +s1 =4 subject to x1 ≤4 2x2 = 12 2x2 ≤ 12 3x1+ 2x2 = 18 3x1+ 2x2 ≤ 18 x1,x2 ≥0 x1,x2 ≥ 0 Simplex-9
  • 10. Basic and Basic Feasible Solutions X2 Augmented Form (0,9,4,-6,0) Maximize Z= 3x1+ 5x2 subject to x1 +s1 =4 2x2 +s2 = 12 3x1+ 2x2 +s3 = 18 (0,6,4,0,6) (2,6,2,0,0) (4,6,0,0,-6) x1,x2, s1, s2, s3 ≥ 0 • Augmented solution (2,3,2,6,6) (4,3,0,6,0) • Basic infeasible solution • Basic feasible solution (BFS) (0,2,4,8,14) • Nonbasic feasible solution (0,0,4,12,18) (4,0,0,12,6) (6,0,-2,12,0) X1 Simplex-10
  • 11. Basic, Nonbasic Solutions and the Basis • In an LP, number of variables > number of equations • The difference is the degrees of freedom of the system – e.g. in Wyndor Glass, degrees of freedom (d.f.)= • Can set some variables (# = d.f.) to an arbitrary value (simplex uses 0) • These variables (set to 0) are called nonbasic variables • The rest can be found by solving the remaining system • The basis: the set of basic variables • If all basic variables are ≥ 0, we have a BFS • Between two basic solutions, if their bases are the same except for one variable, then they are adjacent Simplex-11
  • 12. Basis Examples: Wyndor Glass Maximize Z = 3x1+ 5x2 subject to x1 +s1 =4 2x2 +s2 = 12 3x1+ 2x2 +s3 = 18 x1,x2, s1, s2, s3 ≥ 0 • If the basis was: (x1,x2,s1) → (x1,x2,s2) → (s1,s2,s3) → • Which ones are BFS? Which pairs are adjacent? Simplex-12
  • 13. Algebra of the Simplex Method Initialization Maximize Z = 3x1+ 5x2 subject to x1 +s1 =4 2x2 +s2 = 12 3x1+ 2x2 +s3 = 18 x1,x2, s1, s2, s3 ≥ 0 • Find an initial basic feasible solution • Remember from key concepts: “If possible, use the origin as the initial CPF solution” • Equivalent to: Choose original variables to be nonbasic (xi=0, i=1,…n) and let the slack variables be basic (sj=bj, j=1,…m)) Simplex-13
  • 14. Algebra of the Simplex Method Optimality Test Maximize Z = 3x1+ 5x2 subject to x1 +s1 =4 2x2 +s2 = 12 3x1+ 2x2 +s3 = 18 x1,x2, s1, s2, s3 ≥ 0 • Are any adjacent BF solutions better than the current one? • Rewrite Z in terms of nonbasic variables and investigate rate of improvement • Current nonbasic variables: • Corresponding Z: • Optimal? Simplex-14
  • 15. Algebra of the Simplex Method Step 1 of Iteration 1: Direction of Movement Maximize Z = 3x1+ 5x2 subject to x1 +s1 =4 2x2 +s2 = 12 3x1+ 2x2 +s3 = 18 x1,x2, s1, s2, s3 ≥ 0 • Which edge to move on? • Determine the direction of movement by selecting the entering variable (variable ‘entering’ the basis) • Choose the direction of steepest ascent – x1: Rate of improvement in Z = – x2: Rate of improvement in Z = • Entering basic variable = Simplex-15
  • 16. Algebra of the Simplex Method Step 2 of Iteration 1: Where to Stop Maximize Z = 3x1+ 5x2 subject to x1 +s1 =4 (1) 2x2 +s2 = 12 (2) 3x1+ 2x2 +s3 = 18 (3) x1,x2, s1, s2, s3 ≥ 0 • How far can we go? • Determine where to stop by selecting the leaving variable (variable ‘leaving’ the basis) • Increasing the value of x2 decreases the value of basic variables • The minimum ratio test – Constraint (1): – Constraint (2): – Constraint (3): • Leaving basic variable = Simplex-16
  • 17. Algebra of the Simplex Method Step 3 of Iteration 1: Solving for the New BF Solution Z- 3x1- 5x2 =0 (0) x1 +s1 =4 (1) 2x2 +s2 = 12 (2) 3x1+ 2x2 +s3 = 18 (3) • Convert the system of equations to a more proper form for the new BF solution • Elementary algebraic operations: Gaussian elimination – Eliminate the entering basic variable (x2) from all but its equation Simplex-17
  • 18. Algebra of the Simplex Method Optimality Test Z- 3x1+ + 5/2 s2 = 30 (0) x1 +s1 =4 (1) x2 + 1/2 s2 =6 (2) 3x1 - s2 + s3 = 6 (3) • Are any adjacent BF solutions better than the current one? • Rewrite Z in terms of nonbasic variables and investigate rate of improvement • Current nonbasic variables: • Corresponding Z: • Optimal? Simplex-18
  • 19. Algebra of the Simplex Method Step 1 of Iteration 2: Direction of Movement Z- 3x1+ + 5/2 s2 = 30 (0) x1 +s1 =4 (1) x2 + 1/2 s2 =6 (2) 3x1 - s2 + s3 = 6 (3) • Which edge to move on? • Determine the direction of movement by selecting the entering variable (variable ‘entering’ the basis) • Choose the direction of steepest ascent – x1: Rate of improvement in Z = – s2: Rate of improvement in Z = • Entering basic variable = Simplex-19
  • 20. Algebra of the Simplex Method Step 2 of Iteration 2: Where to Stop Z- 3x1+ + 5/2 s2 = 30 (0) x1 +s1 =4 (1) x2 + 1/2 s2 =6 (2) 3x1 - s2 + s3 = 6 (3) • How far can we go? • Determine where to stop by selecting the leaving variable (variable ‘leaving’ the basis) • Increasing the value of x1 decreases the value of basic variables • The minimum ratio test – Constraint (1): – Constraint (2): – Constraint (3): • Leaving basic variable = Simplex-20
  • 21. Algebra of the Simplex Method Step 3 of Iteration 2: Solving for the New BF Solution Z- 3x1+ + 5/2 s2 = 30 (0) x1 +s1 =4 (1) x2 + 1/2 s2 =6 (2) 3x1 - s2 + s3 = 6 (3) • Convert the system of equations to a more proper form for the new BF solution • Elementary algebraic operations: Gaussian elimination – Eliminate the entering basic variable (x1) from all but its equation Simplex-21
  • 22. Algebra of the Simplex Method Optimality Test Z + 3/2 s2 + s3 = 36 (0) +s1 + 1/3 s2 - 1/3 s3 = 2 (1) x2 + 1/2 s2 =6 (2) x1 - 1/3 s2 + 1/3 s3 = 2 (3) • Are any adjacent BF solutions better than the current one? • Rewrite Z in terms of nonbasic variables and investigate rate of improvement • Current nonbasic variables: • Corresponding Z: • Optimal? Simplex-22
  • 23. The Simplex Method in Tabular Form • For convenience in performing the required calculations • Record only the essential information of the (evolving) system of equations in tableaux – Coefficients of the variables – Constants on the right-hand-sides – Basic variables corresponding to equations Simplex-23
  • 24. Wyndor Glass Z- 3x1 - 5x2 =0 (0) x1 +s1 =4 (1) 2x2 +s2 = 12 (2) 3x1+ 2x2 +s3 = 18 (3) • Convert to initial tableau Basic Z x1 x2 s1 s2 s3 r.h.s. variable Simplex-24
  • 25. Wyndor Glass, Iteration 1 Basic Z x1 x2 s1 s2 s3 r.h.s. variable Z 1 -3 -5 0 0 0 0 s1 0 1 0 1 0 0 4 s2 0 0 2 0 1 0 12 s3 0 3 2 0 0 1 18 • Optimality test • Entering variable (steepest ascent) – pivot column • Leaving variable (minimum ratio test) – pivot row • Gaussian elimination Basic Z x1 x2 s1 s2 s3 r.h.s. variable Z 1 0 0 0 Simplex-25
  • 26. Wyndor Glass, Iteration 2 Basic Z x1 x2 s1 s2 s3 r.h.s. variable Z 1 -3 0 0 5/2 0 30 s1 0 1 0 1 0 0 4 x2 0 0 1 0 1/2 0 6 s3 0 3 0 0 -1 1 6 • Optimality test • Entering variable (steepest ascent) – pivot column • Leaving variable (minimum ratio test) – pivot row • Gaussian elimination Basic Z x1 x2 s1 s2 s3 r.h.s. variable Z 1 0 0 0 Simplex-26
  • 27. Wyndor Glass, Iteration 3 Basic Z x1 x2 s1 s2 s3 r.h.s. variable Z 1 0 0 0 3/2 1 36 s1 0 0 0 1 1/3 -1/3 2 x2 0 0 1 0 1/2 0 6 x1 0 1 0 0 -1/3 1/3 2 • Optimality test • Entering variable (steepest ascent) – pivot column • Leaving variable (minimum ratio test) – pivot row • Gaussian elimination Basic Z x1 x2 s1 s2 s3 r.h.s. variable Z 1 0 0 0 Simplex-27
  • 28. Special Cases, Example 1 Z- 3x1- 5x2 =0 (0) x1 +s1 =4 (1) Basic Z x1 x2 s1 r.h.s. variable Basic Z x1 x2 s1 r.h.s. variable Simplex-28
  • 29. Special Cases, Example 2 Z- 6x1- 4x2 =0 (0) x1 +s1 =4 (1) 2x2 +s2 = 12 (2) 3x1+ 2x2 +s3 = 18 (3) Basic Z x1 x2 s1 s2 s3 r.h.s. variable Basic Z x1 x2 s1 s2 s3 r.h.s. variable Simplex-29
  • 30. Special Cases, Example 2, cont’d Basic Z x1 x2 s1 s2 s3 r.h.s. variable Basic Z x1 x2 s1 s2 s3 r.h.s. variable Simplex-30
  • 31. Special Cases, Example 3 Z- 3x1- 3x2 =0 (0) x1 +s1 =4 (1) 2x2 +s2 = 12 (2) 3x1+ 2x2 +s3 = 18 (3) Basic Z x1 x2 s1 s2 s3 r.h.s. variable Simplex-31
  • 32. Special Cases, Example 4 Z- 3x1- 5x2 =0 (0) x1 +s1 =4 (1) 2x2 +s2 = 12 (2) 3x1+ 3x2 +s3 = 18 (3) Basic Z x1 x2 s1 s2 s3 r.h.s. variable Simplex-32
  • 33. Special Cases, Summary • If no variable qualifies to be the leaving variable, then the LP is unbounded • If the Z-row coefficient of a nonbasic variable is zero, the variable may enter the basis, however the objective function will not change – If, in addition, coefficients of all other nonbasic variables are ≥ 0, then there are multiple optimal solutions • If there is a tie for the entering variable, break it arbitrarily – It will only affect the path taken, but the same optimal solution will be reached • If there is a tie for the leaving variable, theoretically the way in which the tie is broken is important – The method can get trapped in an infinite loop (cycling under degeneracy) – Beyond the scope of this class Simplex-33
  • 34. Other Problem Forms • Until now, we assumed – Only constraints of the form ≤ – Only positive right-hand-side values (bj ≥ 0) – Non-negativity • We relaxed the maximization assumption earlier: min cx = • Time to relax the other assumptions Simplex-34
  • 35. Equality Constraints • Consider the Wyndor Glass problem, where Plant 3 constraint is changed as follows: Maximize Z = 3x1+ 5x2 subject to x1 ≤4 2x2 ≤ 12 3x1+ 2x2 = 18 x1,x2 ≥ 0 • Convert to augmented form: • Any problems you foresee with the simplex method? Simplex-35
  • 36. Artificial Variables and the Big M • Introduce artificial variables to the problem • Assign huge penalties in the objective function Maximize Z = 3x1+ 5x2 subject to x1 ≤4 2x2 ≤ 12 3x1+ 2x2 = 18 x1,x2 ≥ 0 Simplex-36
  • 37. Solving the new problem (1) Basic Z x1 x2 r.h.s. variable Basic Z x1 x2 r.h.s. variable Simplex-37
  • 38. Solving the new problem (2) Basic Z x1 x2 r.h.s. variable Basic Z x1 x2 r.h.s. variable Simplex-38
  • 39. Geometric Insight into Big M x2 (2,6) Original feasible region (4,3) x1 Simplex-39
  • 40. Geometric Insight into Big M (0,6) “Artificial” feasible (0,0) (4,0) region Simplex-40
  • 41. Negative RHS Values • Consider a constraint with bj < 0 – e.g. The number of windows produced should be at most 5 less than the number of doors produced: • Easy fix: • Tough consequences Simplex-41
  • 42. ≥ Constraints • Consider the Wyndor Glass problem, where Plant 3 constraint is changed as follows: Maximize Z = 3x1+ 5x2 subject to x1 ≤4 2x2 ≤ 12 3x1+ 2x2 ≥ 18 x1,x2 ≥ 0 • Convert to augmented form: • Then use Big-M method Simplex-42
  • 43. Variables Allowed to be Negative Maximize Z = 3x1+ 5x2 subject to x1 ≤4 2x2 ≤ 12 3x1+ 2x2 ≤ 18 x1 ≥ -10, x2 ≥ 0 (When there is a bound on the negative values allowed) Simplex-43
  • 44. Variables Allowed to be Negative Maximize Z = 3x1+ 5x2 subject to x1 ≤4 2x2 ≤ 12 3x1+ 2x2 ≤ 18 x1 unrestricted in sign, x2 ≥ 0 (When there is no bound on the negative values allowed) Simplex-44
  • 45. Traffic Signal Example • Set green times for a crossroad • Allocate a given cycle time of 62 seconds to E-W and N-S directions, less an all-red time of 2 seconds • E-W direction should receive – at least 10 seconds of green time – at least 5 seconds less than twice the N-S green time • A linear estimate for the average delay per car per lane is given as 120 - 2 (E-W GT) - 3 (N-S GT) • Find the green time allocation to minimize average delay Simplex-45