SlideShare a Scribd company logo
02/11/13   FOSTIIMA Business School   1
STEP BY STEP GUIDE
1.     Formulate the problem
       (i)      Pick out important information
       (ii)     Formulate constraints
       (iii)    Formulate objective function

2.     Introduce slack variables

3.     Form initial tableau

4.     Obtain new tableaux
       (i)      Identify pivotal column
       (ii)     Find θ-values
       (iii)    Identify pivotal row
       (iv)     Identify pivot
       (v)      Pivot

5.     Get the solution
02/11/13                  FOSTIIMA Business School   2
THE PROBLEM
• A small factory produces two types of toys: cars and
  dolls. In the manufacturing process two machines
  are used: the moulder and the assembler. A doll
  needs 2 hours on the moulder and 1 hour on the
  assembler. A car needs 1 hour on the moulder and 1
  hour on the assembler. The moulder can be
  operated for 16 hours a day and the assembler for 9
  hours a day. Each doll gives a profit of Rs.16 and
  each car gives a profit of Rs.14. The profit needs to
  be maximised.

• How do we formulate this problem?

02/11/13           FOSTIIMA Business School           3
STEP BY STEP GUIDE
1.     Formulate the problem
       (i)    pick out important information
       (ii)   formulate constraints
       (iii)  formulate objective function

2.     Introduce slack variables

3.     Form initial tableau

4.     Obtain new tableaux

5.     Get the solution

02/11/13               FOSTIIMA Business School   4
PICKING OUT IMPORTANT
                INFORMATION
• A small factory produces two types of toys: cars and
  dolls. In the manufacturing process two machines
  are used: the moulder and the assembler.

• A doll needs 2 hours on the moulder and 1 hour on
  the assembler. A car needs 1 hour on the moulder
  and 1 hour on the assembler.

• The moulder can be operated for 16 hours a day and
  the assembler for 9 hours a day.

• Each doll gives a profit of Rs.16 and each car gives a
  profit of Rs.14.
02/11/13           FOSTIIMA Business School            5
PICKING OUT IMPORTANT
                INFORMATION
• A small factory produces two types of toys: cars and
  dolls. In the manufacturing process two machines
  are used: the moulder and the assembler.

• A doll needs 2 hours on the moulder and 1 hour on
  the assembler. A car needs 1 hour on the moulder
  and 1 hour on the assembler.

• The moulder can be operated for 16 hours a day and
  the assembler for 9 hours a day.

• Each doll gives a profit of Rs.16 and each car gives a
  profit of Rs.14.
02/11/13           FOSTIIMA Business School            6
• A doll needs 2 hours on the moulder
  and 1 hour on the assembler. A car
  needs 1 hour on the moulder and 1
  hour on the assembler.




02/11/13      FOSTIIMA Business School   7
PICKING OUT IMPORTANT
                INFORMATION
• A small factory produces two types of toys: cars and
  dolls. In the manufacturing process two machines
  are used: the moulder and the assembler.




• The moulder can be operated for 16 hours a day and
  the assembler for 9 hours a day.

• Each doll gives a profit of Rs.16 and each car gives a
  profit of Rs.14.
02/11/13           FOSTIIMA Business School            8
• A doll needs 2 hours on the moulder and 1 hour on
  the assembler. A car needs 1 hour on the moulder
  and 1 hour on the assembler.

• The moulder can be operated for 16 hours a day
  and the assembler for 9 hours a day.




  02/11/13        FOSTIIMA Business School     9
STEP BY STEP GUIDE
1.     Formulate the problem
       (i)    pick out important information
       (ii)   formulate constraints
       (iii)  formulate objective function

2.     Introduce slack variables

3.     Form initial tableau

4.     Obtain new tableaux

5.     Get the solution

02/11/13               FOSTIIMA Business School   10
• A doll needs 2 hours on the moulder and 1 hour on
  the assembler. A car needs 1 hour on the moulder
  and 1 hour on the assembler.

• The moulder can be operated for 16 hours a day
  and the assembler for 9 hours a day.

• Using the decision variables

             d = number of dolls
             c = number of cars

        make two constraints from this information.
  02/11/13           FOSTIIMA Business School     11
FORMING CONSTRAINT 1
             THE MOULDER
• A doll needs 2 hours on the moulder and 1
  hour on the assembler. A car needs 1 hour
  on the moulder and 1 hour on the assembler.

• The moulder can be operated for 16 hours a
  day and the assembler for 9 hours a day.


           2d + c ≤ 16
02/11/13        FOSTIIMA Business School       12
FORMING CONSTRAINT 2
             The assembler

• A doll needs 2 hours on the moulder and 1
  hour on the assembler. A car needs 1 hour
  on the moulder and 1 hour on the assembler.

• The moulder can be operated for 16 hours a
  day and the assembler for 9 hours a day.


              d+c≤9
02/11/13        FOSTIIMA Business School       13
STEP BY STEP GUIDE
1.     Formulate the problem
       i)     pick out important information
       ii)    formulate constraints
       iii)   formulate objective function

2.     Introduce slack variables

3.     Form initial tableau

4.     Obtain new tableaux

5.     Get the solution

02/11/13               FOSTIIMA Business School   14
PICKING OUT IMPORTANT
                INFORMATION
• A small factory produces two types of toys: cars and
  dolls. In the manufacturing process two machines
  are used: the moulder and the assembler.




• Each doll gives a profit of Rs.16 and each car gives a
  profit of Rs.14.


02/11/13           FOSTIIMA Business School           15
FORMING THE OBJECTIVE
                   FUNCTION

• Each doll gives a profit of Rs.16 and each
  car gives a profit of Rs.14.



• Let Z be the total profit; formulate the
  objective function

  02/11/13         FOSTIIMA Business School   16
FORMING THE OBJECTIVE
                 FUNCTION
• Each doll gives a profit of Rs.16 and
  each car gives a profit of Rs.14.




            Z = 16d + 14c
02/11/13         FOSTIIMA Business School   17
THE LINEAR PROGRAMMING
             PROBLEM
•        MAXIMISE      Z = 16d + 14c
          subject to the constraints:
                       (i)   2d + c ≤ 16
                       (ii)   d+c≤ 9
                       (iii)  c≥0,d≥0

     •     VERY IMPORTANT

     •     DON’T FORGET YOUR NON – NEGATIVITY
           CONSTRAINTS !



02/11/13               FOSTIIMA Business School   18
STEP BY STEP GUIDE
1. Formulate the problem

2. Introduce slack variables

3. Form initial tableau

4. Obtain new tableaux

5. Get the solution


02/11/13        FOSTIIMA Business School   19
INTRODUCING SLACK
                     VARIABLES
   To change inequalities (i) and (ii) into
   equations we add slack variables s and t

   This gives:

           (i)    2d + c + s = 16

           (ii)    d+c+t = 9



02/11/13                FOSTIIMA Business School   20
THE NEW LINEAR
           PROGRAMMING PROBLEM
• MAXIMISE            Z = 16d + 14c + 0s + 0t

           subject to the constraints:

                     2d + c + s + 0t = 16

                      d + c + 0s + t = 9

                  c≥0,d≥0,s≥0,t≥0

02/11/13              FOSTIIMA Business School   21
STEP BY STEP GUIDE
1. Formulate the problem

2. Introduce slack variables

3. Form initial tableau

4. Obtain new tableaux

5. Get the solution


02/11/13        FOSTIIMA Business School   22
We want to put all the information in the
form of a table. This is called the
initial tableau.

To form the initial tableau we need to
change the objective function from

           Z = 16d + 14c + 0s + 0t
to
           Z – 16d – 14c – 0s – 0t = 0
02/11/13        FOSTIIMA Business School    23
FORMING THE INITIAL TABLEAU
Label the table with your basic variables, s and
  t
and with your non – basic variables, d and c.


  BASIC
VARIABLES
            d        c             s        t   VALUE


      s
      t
     Z
02/11/13         FOSTIIMA Business School               24
FORMING THE INITIAL TABLEAU
      2d + 1c + 1s + 0t = 16
       1d + 1c + 0s + 1t = 9
    Z – 16d – 14c – 0s – 0t = 0
  BASIC
VARIABLES
             d        c             s        t   VALUE


      s     2        1             1         0    16
      t      1       1             0         1     9
     Z      -16     -14            0         0     0
02/11/13          FOSTIIMA Business School               26
FORMING THE INITIAL TABLEAU

  BASIC                                          VALUE
VARIABLES
             d        c             s        t
      s     2        1             1         0    16
      t      1       1             0         1     9
     Z      -16     -14            0         0     0


    This is the objective row
02/11/13          FOSTIIMA Business School               27
STEP BY STEP GUIDE
1.     Formulate the problem

2.     Introduce slack variables

3.     Form initial tableau

4.     Obtain new tableaux
       (i)      Identify pivotal column
       (ii)     Find θ-values
       (iii)    Identify pivotal row
       (iv)     Identify pivot
       (v)      Pivot

3.     Get the solution


02/11/13                  FOSTIIMA Business School   28
PIVOTAL COLUMN
• We now need to find where to pivot and we start by
  entering the basis by choosing the column with the
  most negative entry in the objective row.
  BASIC                                            VALUE
VARIABLES
              d        c         s         t
    s        2         1         1         0         16
   t         1         1         0         1         9
   Z        -16       -14        0         0         0




 This is the most negative coefficient with corresponding
 variable d and it’s column is called the pivotal column. 29
02/11/13              FOSTIIMA Business School
                                                           d
 is now called the entering variable.
STEP BY STEP GUIDE
1.     Formulate the problem

2.     Introduce slack variables

3.     Form initial tableau

4.     Obtain new tableaux
       (i)      Identify pivotal column
       (ii)     Find θ-values
       (iii)    Identify pivotal row
       (iv)     Identify pivot
       (v)      Pivot

3.     Get the solution


02/11/13                  FOSTIIMA Business School   31
FINDING θ-VALUES
• You are now going to find the pivotal row and the
  leaving variable.
• You need to find θ-values.
  1. Identify positive entries in the pivotal column.
  2. Divide each entry in value column by the corresponding
       positive entry in the pivotal column.
  BASIC                                               VALUE
VARIABLES
              d          c             s        t
      s       2         1             1         0      16
      t       1         1             0         1       9
     Z       -16       -14            0         0       0


02/11/13             FOSTIIMA Business School                 32
STEP BY STEP GUIDE
1.     Formulate the problem

2.     Introduce slack variables

3.     Form initial tableau

4.     Obtain new tableaux
       (i)      Identify pivotal column
       (ii)     Find θ-values
       (iii)    Identify pivotal row
       (iv)     Identify pivot
       (v)      Pivot

5.     Get the solution


02/11/13                  FOSTIIMA Business School   34
PIVOTAL ROW

 •    For row (i)    θ     =        16
                                     2          =   8

 •    For row (ii)   θ      =        9
                                     1          =   9

• The row with the smallest θ-value is called
  the pivotal row.

• Here the pivotal row is row (i)
02/11/13             FOSTIIMA Business School           35
STEP BY STEP GUIDE
1.     Formulate the problem

2.     Introduce slack variables

3.     Form initial tableau

4.     Obtain new tableaux
       (i)      Identify pivotal column
       (ii)     Find θ-values
       (iii)    Identify pivotal row
       (iv)     Identify pivot
       (v)      Pivot

5.     Get the solution


02/11/13                  FOSTIIMA Business School   36
THE PIVOT
                          The pivot!
                    BASIC                                      VALUE
                  VARIABLES    d          c          s     t
                     s         2          1          1     0    16
The pivotal row      t         1          1          0   1       9
                     Z        -16       -14          0   0       0

                                      The pivotal column



   02/11/13               FOSTIIMA Business School               37
STEP BY STEP GUIDE
1.     Formulate the problem

2.     Introduce slack variables

3.     Form initial tableau

4.     Obtain new tableaux
       (i)      Identify pivotal column
       (ii)     Find θ-values
       (iii)    Identify pivotal row
       (iv)     Identify pivot
       (v)      Pivot

5.     Get a solution


02/11/13                  FOSTIIMA Business School   38
PIVOTING
1. Replace the leaving variable with the
   entering variable.

2. Divide all entries in the pivotal row by the
   pivot. The pivot becomes 1.

3. Add suitable multiples of the pivotal row to
   all other rows until all entries, apart from
   the pivot, in the pivotal column are zero.
02/11/13         FOSTIIMA Business School         39
Step 1     - Replace the leaving variable with the entering variable.
   BASIC                                                                    VALUE
 VARIABLES
                       d            c             s             t
           s            2           1             1             0            16
       t               1            1             0            1              9
       Z              -16          -14            0            0              0
   Step 2 - Divide all entries in the pivotal row by the pivot. The pivot
            becomes 1.

   BASIC                                                                    VALUE
 VARIABLES
                       d            c             s             t
           s
           d           1          1/2            1/2           0             8
       t
       Z
02/11/13                       FOSTIIMA Business School                           40
PIVOTING
    BASIC                                                              VALUE
  VARIABLES
                        d         c             s            t
           s         2            1            1             0           16
           t        1             1            0            1             9
           Z       -16           -14           0            0             0
       Step 3 - Add suitable multiples of the pivotal row to all other rows until
          all
       entries, apart from the pivot, in the pivotal column are zero.

                                   row (ii) – ½ row (i)
                                          gives

       t            0           1/2          -1/2          1             1


02/11/13                    FOSTIIMA Business School                          41
PIVOTING


  BASIC                                          VALUE
VARIABLES
             d        c             s        t
      d      1      1/2           1/2        0    8
      tt     0      1/2           -1/2       1    1
     Z      -16     -14            0         0    0

     x16     16       8            8         0   128
              0      -6            8         0   128

02/11/13          FOSTIIMA Business School               42
PIVOTING


  BASIC                                        VALUE
VARIABLES
            d       c             s        t
      d     1     1/2           1/2        0    8
      tt    0     1/2           -1/2       1    1
     Z




02/11/13        FOSTIIMA Business School               43
BASIC                                        VALUE
VARIABLES
            d       c             s        t
     d      1     1/2           1/2        0    8
     tt     0     1/2           -1/2       1    1
     Z
     Z      0      -6            8         0   128


This is our second tableau
02/11/13        FOSTIIMA Business School               44
PIVOTING
• Follow the rules for finding a pivot on
  your second tableau.
• Pivot as before.
• Continue this process until there are no
  negative entries in the objective row.
• This will be your final tableau. This is
  called the optimal tableau.

02/11/13      FOSTIIMA Business School   45
BASIC
                    ⇓                 VALUE
    VARIABLES
                d   c      s     t
       d        1   1/2   1/2    0     8
⇒      tt       0   1/2   -1/2   1     1
       Z
       Z        0    -6    8     0    128
        d       1    0     1     -1     7
        c       0    1     -1    2      2
        Z       0    0     2     12    140
OPTIMAL TABLEAU
  BASIC
VARIABLES
             d       c             s        t    VALUE


      d      1      0              1        -1    7
      c      0      1             -1        2     2
      Z      0      0              2        12   140

• Note there are no negative entries in the
  objective row.
• Can you see the solution?

02/11/13         FOSTIIMA Business School                47
STEP BY STEP GUIDE
1. Formulate the problem

2. Introduce slack variables

3. Form initial tableau

4. Obtain new tableaux

5. Get the solution


02/11/13        FOSTIIMA Business School   48
OBTAINING THE SOLUTION
  BASIC
VARIABLES
            d         c             s        t    VALUE


      d     1         0             1        -1    7
      c     0         1            -1        2     2
      Z     0         0             2        12   140
• Remember that since s and t are now non–basic
  variables they are set to zero.
• This corresponds to the solution:
                      s = 0, t = 0,
                          d=7
                          c=2
                         Z = 140
02/11/13          FOSTIIMA Business School                49
THE SOLUTION
• Don’t forget to put your solution back
  into the context of the problem.
                  Z = 140
                   d=7
                   c=2
• The maximum profit is Rs.140
• To make this profit the factory should
  produce 7 dolls and 2 cars.
02/11/13       FOSTIIMA Business School    50
PIVOTING
    BASIC                                                              VALUE
  VARIABLES
                        d         c               s          t
           s         2            1              1           0           16
           t        1             1              0           1            9
           Z       -16           -14             0           0            0
       Step 3 - Add suitable multiples of the pivotal row to all other rows until
          all
       entries, apart from the pivot, in the pivotal column are zero.

                                     row (iii) + 8 row (i)
                                            gives

       Z            0           -6               8           0         128


02/11/13                    FOSTIIMA Business School                          51

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Simplex part i

  • 1. 02/11/13 FOSTIIMA Business School 1
  • 2. STEP BY STEP GUIDE 1. Formulate the problem (i) Pick out important information (ii) Formulate constraints (iii) Formulate objective function 2. Introduce slack variables 3. Form initial tableau 4. Obtain new tableaux (i) Identify pivotal column (ii) Find θ-values (iii) Identify pivotal row (iv) Identify pivot (v) Pivot 5. Get the solution 02/11/13 FOSTIIMA Business School 2
  • 3. THE PROBLEM • A small factory produces two types of toys: cars and dolls. In the manufacturing process two machines are used: the moulder and the assembler. A doll needs 2 hours on the moulder and 1 hour on the assembler. A car needs 1 hour on the moulder and 1 hour on the assembler. The moulder can be operated for 16 hours a day and the assembler for 9 hours a day. Each doll gives a profit of Rs.16 and each car gives a profit of Rs.14. The profit needs to be maximised. • How do we formulate this problem? 02/11/13 FOSTIIMA Business School 3
  • 4. STEP BY STEP GUIDE 1. Formulate the problem (i) pick out important information (ii) formulate constraints (iii) formulate objective function 2. Introduce slack variables 3. Form initial tableau 4. Obtain new tableaux 5. Get the solution 02/11/13 FOSTIIMA Business School 4
  • 5. PICKING OUT IMPORTANT INFORMATION • A small factory produces two types of toys: cars and dolls. In the manufacturing process two machines are used: the moulder and the assembler. • A doll needs 2 hours on the moulder and 1 hour on the assembler. A car needs 1 hour on the moulder and 1 hour on the assembler. • The moulder can be operated for 16 hours a day and the assembler for 9 hours a day. • Each doll gives a profit of Rs.16 and each car gives a profit of Rs.14. 02/11/13 FOSTIIMA Business School 5
  • 6. PICKING OUT IMPORTANT INFORMATION • A small factory produces two types of toys: cars and dolls. In the manufacturing process two machines are used: the moulder and the assembler. • A doll needs 2 hours on the moulder and 1 hour on the assembler. A car needs 1 hour on the moulder and 1 hour on the assembler. • The moulder can be operated for 16 hours a day and the assembler for 9 hours a day. • Each doll gives a profit of Rs.16 and each car gives a profit of Rs.14. 02/11/13 FOSTIIMA Business School 6
  • 7. • A doll needs 2 hours on the moulder and 1 hour on the assembler. A car needs 1 hour on the moulder and 1 hour on the assembler. 02/11/13 FOSTIIMA Business School 7
  • 8. PICKING OUT IMPORTANT INFORMATION • A small factory produces two types of toys: cars and dolls. In the manufacturing process two machines are used: the moulder and the assembler. • The moulder can be operated for 16 hours a day and the assembler for 9 hours a day. • Each doll gives a profit of Rs.16 and each car gives a profit of Rs.14. 02/11/13 FOSTIIMA Business School 8
  • 9. • A doll needs 2 hours on the moulder and 1 hour on the assembler. A car needs 1 hour on the moulder and 1 hour on the assembler. • The moulder can be operated for 16 hours a day and the assembler for 9 hours a day. 02/11/13 FOSTIIMA Business School 9
  • 10. STEP BY STEP GUIDE 1. Formulate the problem (i) pick out important information (ii) formulate constraints (iii) formulate objective function 2. Introduce slack variables 3. Form initial tableau 4. Obtain new tableaux 5. Get the solution 02/11/13 FOSTIIMA Business School 10
  • 11. • A doll needs 2 hours on the moulder and 1 hour on the assembler. A car needs 1 hour on the moulder and 1 hour on the assembler. • The moulder can be operated for 16 hours a day and the assembler for 9 hours a day. • Using the decision variables d = number of dolls c = number of cars make two constraints from this information. 02/11/13 FOSTIIMA Business School 11
  • 12. FORMING CONSTRAINT 1 THE MOULDER • A doll needs 2 hours on the moulder and 1 hour on the assembler. A car needs 1 hour on the moulder and 1 hour on the assembler. • The moulder can be operated for 16 hours a day and the assembler for 9 hours a day. 2d + c ≤ 16 02/11/13 FOSTIIMA Business School 12
  • 13. FORMING CONSTRAINT 2 The assembler • A doll needs 2 hours on the moulder and 1 hour on the assembler. A car needs 1 hour on the moulder and 1 hour on the assembler. • The moulder can be operated for 16 hours a day and the assembler for 9 hours a day. d+c≤9 02/11/13 FOSTIIMA Business School 13
  • 14. STEP BY STEP GUIDE 1. Formulate the problem i) pick out important information ii) formulate constraints iii) formulate objective function 2. Introduce slack variables 3. Form initial tableau 4. Obtain new tableaux 5. Get the solution 02/11/13 FOSTIIMA Business School 14
  • 15. PICKING OUT IMPORTANT INFORMATION • A small factory produces two types of toys: cars and dolls. In the manufacturing process two machines are used: the moulder and the assembler. • Each doll gives a profit of Rs.16 and each car gives a profit of Rs.14. 02/11/13 FOSTIIMA Business School 15
  • 16. FORMING THE OBJECTIVE FUNCTION • Each doll gives a profit of Rs.16 and each car gives a profit of Rs.14. • Let Z be the total profit; formulate the objective function 02/11/13 FOSTIIMA Business School 16
  • 17. FORMING THE OBJECTIVE FUNCTION • Each doll gives a profit of Rs.16 and each car gives a profit of Rs.14. Z = 16d + 14c 02/11/13 FOSTIIMA Business School 17
  • 18. THE LINEAR PROGRAMMING PROBLEM • MAXIMISE Z = 16d + 14c subject to the constraints: (i) 2d + c ≤ 16 (ii) d+c≤ 9 (iii) c≥0,d≥0 • VERY IMPORTANT • DON’T FORGET YOUR NON – NEGATIVITY CONSTRAINTS ! 02/11/13 FOSTIIMA Business School 18
  • 19. STEP BY STEP GUIDE 1. Formulate the problem 2. Introduce slack variables 3. Form initial tableau 4. Obtain new tableaux 5. Get the solution 02/11/13 FOSTIIMA Business School 19
  • 20. INTRODUCING SLACK VARIABLES To change inequalities (i) and (ii) into equations we add slack variables s and t This gives: (i) 2d + c + s = 16 (ii) d+c+t = 9 02/11/13 FOSTIIMA Business School 20
  • 21. THE NEW LINEAR PROGRAMMING PROBLEM • MAXIMISE Z = 16d + 14c + 0s + 0t subject to the constraints: 2d + c + s + 0t = 16 d + c + 0s + t = 9 c≥0,d≥0,s≥0,t≥0 02/11/13 FOSTIIMA Business School 21
  • 22. STEP BY STEP GUIDE 1. Formulate the problem 2. Introduce slack variables 3. Form initial tableau 4. Obtain new tableaux 5. Get the solution 02/11/13 FOSTIIMA Business School 22
  • 23. We want to put all the information in the form of a table. This is called the initial tableau. To form the initial tableau we need to change the objective function from Z = 16d + 14c + 0s + 0t to Z – 16d – 14c – 0s – 0t = 0 02/11/13 FOSTIIMA Business School 23
  • 24. FORMING THE INITIAL TABLEAU Label the table with your basic variables, s and t and with your non – basic variables, d and c. BASIC VARIABLES d c s t VALUE s t Z 02/11/13 FOSTIIMA Business School 24
  • 25. FORMING THE INITIAL TABLEAU 2d + 1c + 1s + 0t = 16 1d + 1c + 0s + 1t = 9 Z – 16d – 14c – 0s – 0t = 0 BASIC VARIABLES d c s t VALUE s 2 1 1 0 16 t 1 1 0 1 9 Z -16 -14 0 0 0 02/11/13 FOSTIIMA Business School 26
  • 26. FORMING THE INITIAL TABLEAU BASIC VALUE VARIABLES d c s t s 2 1 1 0 16 t 1 1 0 1 9 Z -16 -14 0 0 0 This is the objective row 02/11/13 FOSTIIMA Business School 27
  • 27. STEP BY STEP GUIDE 1. Formulate the problem 2. Introduce slack variables 3. Form initial tableau 4. Obtain new tableaux (i) Identify pivotal column (ii) Find θ-values (iii) Identify pivotal row (iv) Identify pivot (v) Pivot 3. Get the solution 02/11/13 FOSTIIMA Business School 28
  • 28. PIVOTAL COLUMN • We now need to find where to pivot and we start by entering the basis by choosing the column with the most negative entry in the objective row. BASIC VALUE VARIABLES d c s t s 2 1 1 0 16 t 1 1 0 1 9 Z -16 -14 0 0 0 This is the most negative coefficient with corresponding variable d and it’s column is called the pivotal column. 29 02/11/13 FOSTIIMA Business School d is now called the entering variable.
  • 29. STEP BY STEP GUIDE 1. Formulate the problem 2. Introduce slack variables 3. Form initial tableau 4. Obtain new tableaux (i) Identify pivotal column (ii) Find θ-values (iii) Identify pivotal row (iv) Identify pivot (v) Pivot 3. Get the solution 02/11/13 FOSTIIMA Business School 31
  • 30. FINDING θ-VALUES • You are now going to find the pivotal row and the leaving variable. • You need to find θ-values. 1. Identify positive entries in the pivotal column. 2. Divide each entry in value column by the corresponding positive entry in the pivotal column. BASIC VALUE VARIABLES d c s t s 2 1 1 0 16 t 1 1 0 1 9 Z -16 -14 0 0 0 02/11/13 FOSTIIMA Business School 32
  • 31. STEP BY STEP GUIDE 1. Formulate the problem 2. Introduce slack variables 3. Form initial tableau 4. Obtain new tableaux (i) Identify pivotal column (ii) Find θ-values (iii) Identify pivotal row (iv) Identify pivot (v) Pivot 5. Get the solution 02/11/13 FOSTIIMA Business School 34
  • 32. PIVOTAL ROW • For row (i) θ = 16 2 = 8 • For row (ii) θ = 9 1 = 9 • The row with the smallest θ-value is called the pivotal row. • Here the pivotal row is row (i) 02/11/13 FOSTIIMA Business School 35
  • 33. STEP BY STEP GUIDE 1. Formulate the problem 2. Introduce slack variables 3. Form initial tableau 4. Obtain new tableaux (i) Identify pivotal column (ii) Find θ-values (iii) Identify pivotal row (iv) Identify pivot (v) Pivot 5. Get the solution 02/11/13 FOSTIIMA Business School 36
  • 34. THE PIVOT The pivot! BASIC VALUE VARIABLES d c s t s 2 1 1 0 16 The pivotal row t 1 1 0 1 9 Z -16 -14 0 0 0 The pivotal column 02/11/13 FOSTIIMA Business School 37
  • 35. STEP BY STEP GUIDE 1. Formulate the problem 2. Introduce slack variables 3. Form initial tableau 4. Obtain new tableaux (i) Identify pivotal column (ii) Find θ-values (iii) Identify pivotal row (iv) Identify pivot (v) Pivot 5. Get a solution 02/11/13 FOSTIIMA Business School 38
  • 36. PIVOTING 1. Replace the leaving variable with the entering variable. 2. Divide all entries in the pivotal row by the pivot. The pivot becomes 1. 3. Add suitable multiples of the pivotal row to all other rows until all entries, apart from the pivot, in the pivotal column are zero. 02/11/13 FOSTIIMA Business School 39
  • 37. Step 1 - Replace the leaving variable with the entering variable. BASIC VALUE VARIABLES d c s t s 2 1 1 0 16 t 1 1 0 1 9 Z -16 -14 0 0 0 Step 2 - Divide all entries in the pivotal row by the pivot. The pivot becomes 1. BASIC VALUE VARIABLES d c s t s d 1 1/2 1/2 0 8 t Z 02/11/13 FOSTIIMA Business School 40
  • 38. PIVOTING BASIC VALUE VARIABLES d c s t s 2 1 1 0 16 t 1 1 0 1 9 Z -16 -14 0 0 0 Step 3 - Add suitable multiples of the pivotal row to all other rows until all entries, apart from the pivot, in the pivotal column are zero. row (ii) – ½ row (i) gives t 0 1/2 -1/2 1 1 02/11/13 FOSTIIMA Business School 41
  • 39. PIVOTING BASIC VALUE VARIABLES d c s t d 1 1/2 1/2 0 8 tt 0 1/2 -1/2 1 1 Z -16 -14 0 0 0 x16 16 8 8 0 128 0 -6 8 0 128 02/11/13 FOSTIIMA Business School 42
  • 40. PIVOTING BASIC VALUE VARIABLES d c s t d 1 1/2 1/2 0 8 tt 0 1/2 -1/2 1 1 Z 02/11/13 FOSTIIMA Business School 43
  • 41. BASIC VALUE VARIABLES d c s t d 1 1/2 1/2 0 8 tt 0 1/2 -1/2 1 1 Z Z 0 -6 8 0 128 This is our second tableau 02/11/13 FOSTIIMA Business School 44
  • 42. PIVOTING • Follow the rules for finding a pivot on your second tableau. • Pivot as before. • Continue this process until there are no negative entries in the objective row. • This will be your final tableau. This is called the optimal tableau. 02/11/13 FOSTIIMA Business School 45
  • 43. BASIC ⇓ VALUE VARIABLES d c s t d 1 1/2 1/2 0 8 ⇒ tt 0 1/2 -1/2 1 1 Z Z 0 -6 8 0 128 d 1 0 1 -1 7 c 0 1 -1 2 2 Z 0 0 2 12 140
  • 44. OPTIMAL TABLEAU BASIC VARIABLES d c s t VALUE d 1 0 1 -1 7 c 0 1 -1 2 2 Z 0 0 2 12 140 • Note there are no negative entries in the objective row. • Can you see the solution? 02/11/13 FOSTIIMA Business School 47
  • 45. STEP BY STEP GUIDE 1. Formulate the problem 2. Introduce slack variables 3. Form initial tableau 4. Obtain new tableaux 5. Get the solution 02/11/13 FOSTIIMA Business School 48
  • 46. OBTAINING THE SOLUTION BASIC VARIABLES d c s t VALUE d 1 0 1 -1 7 c 0 1 -1 2 2 Z 0 0 2 12 140 • Remember that since s and t are now non–basic variables they are set to zero. • This corresponds to the solution: s = 0, t = 0, d=7 c=2 Z = 140 02/11/13 FOSTIIMA Business School 49
  • 47. THE SOLUTION • Don’t forget to put your solution back into the context of the problem. Z = 140 d=7 c=2 • The maximum profit is Rs.140 • To make this profit the factory should produce 7 dolls and 2 cars. 02/11/13 FOSTIIMA Business School 50
  • 48. PIVOTING BASIC VALUE VARIABLES d c s t s 2 1 1 0 16 t 1 1 0 1 9 Z -16 -14 0 0 0 Step 3 - Add suitable multiples of the pivotal row to all other rows until all entries, apart from the pivot, in the pivotal column are zero. row (iii) + 8 row (i) gives Z 0 -6 8 0 128 02/11/13 FOSTIIMA Business School 51