SlideShare a Scribd company logo
Linear Programming

– set up and solve linear programming
  problems to find real life minimums and
  maximums.
Linear Programming Hints
   To write the constraints and objective
    function:
    – Identify the variables.
    – Write the objective function
    – Identify each constraint. Then write an
      inequality for each.
       • Start with x > 0 and y > 0 (usually).
Example 1
       The West Hartford Senior Center is trying to establish a
        transportation system of small and large vans. It can
        spend no more than $100,000 for both sizes of vehicles
        and no more than $500 per month for maintenance. The
        WHSC can purchase a small van, which carries up to 7
        passengers, for $10,000 and maintain it for $100 per
        month. The large vans, which carry up to 15
        passengers, cost $20,000 each and can be maintained for
        $75 per month. How many of each type of van should
        they purchase if they want to maximize the number of
        passengers?
                          s 0
s       # of small vans
l       # of large vans   l 0            Initial purchase cost
                          10,000s 20,000l 100, 000
# of passengers           100 s 75l 500 Monthly maintenance
P = 7s + 15l
s 0                                                           s # of small vans
l 0                                  Example 1               l # of large vans
10, 000s 20, 000l 100, 000                                   P 7 s 15l
100s 75l 500
                                                    The vertices that should
                           10
                                                    be tested are
                                                    (0,5), (2,4), and (5,0).
                            8
      # of large vans, l


                                                    P(0,5)  7(0) 15(5) 75
                            6                       P(2,4)   7(2) 15(4) 74
                                                    P(5,0)   7(5) 15(0) 35
                            4                       The WHSC should buy 5
                                                    large vans which can
                            2                       hold 75 passengers.

                            00   2      4     6     8        10
                                     # of small vans, s
Example 2
       Pancakes                   Waffles
        3 cups Bisquick            2 cups Bisquick
        1 cup Milk                 2 cups Milk
        2 Eggs                     2 Eggs
        Serves 6                   Serves 5
       You have 24 cups of Bisquick, 18 cups of milk, and 20
        eggs. If you want to feed as many people as
        possible, how many batches of each should you make?
p       # of batches of pancakes             p       0
w       # of batches of waffles              w       0
Servings                            Bisquick 3 p      2w 24
S 6 p 5w                               Milk p        2 w 18
                                       Eggs 2 p       2w 20
3p    2w 24
p    2w 18                                 Example 2
2p    2w 20                                            p    # of batches of pancakes
p    0                                                 w    # of batches of waffles
w    0                                                                   S 6 p 5w
        10                                                  The vertices that should
                                                            be tested are
     # of batches of waffles, w

                                  8                         (0,9), (2,8), (4,6), and
                                                            (8,0). 6(0) 5(9) 45
                                                            S(0,9)
                                  6                        S(2,8) 6(2) 5(8) 52
                                                           S(4,6) 6(4) 5(6) 54
                                  4
                                                           S(8,0) 6(8) 5(0) 48
                                  2                                 Make 4 batches of
                                                                    pancakes and 6
                                  00                                batches of waffles
                                        2      4     6     8       10 feed 54 people.
                                                                    to
                                       # of batches of pancakes, p
Example 3
   Kayla works no more than 20 hours per
    week during the school year. She is
    paid $10 an hour for tutoring Geometry
    students and $7 an hour for babysitting.
    She wants to spend at least 3 hours but
    no more than 8 hours a week tutoring.
    Find Kayla’s maximum weekly earnings.
    t   # of hrs spent tutoring                  t   3
    b   # of hrs spent babysitting               t   8
    Earnings                                     b    0
    E 10t 7b                  Total hours worked t   b 20
t                               3
t                               8                Example 3
b                                0                           t    # of hrs spent tutoring
t                               b 20                         b    # of hrs spent babysitting
                                                                               E 10t 7b
                                20
# of hrs spent babysitting, b


                                                                  The vertices that should
                                                                  be tested are (3,17) and
                                16
                                                                  (8,12).
                                                                 E(3,17) 10(3) 7(17) 149
                                12
                                                                 E(8,12) 10(8) 7(12) 164
                                 8                                Kayla should tutor for 8
                                                                  hours and babysit for 12
                                 4                                hours.

                                 00     2      4     6      8     10
                                       # of hrs spent tutoring, t
Example 4
   As part of your weight training regimen, you want to
    consume lean sources of protein. You want to
    consume at least 300 Calories a day from at least 48
    grams of protein. One ounce of chicken provides 35
    Calories and 8.5 g of protein. One ounce of tofu
    provides 20 Calories and 2.5 g of protein. Your local
    supermarket charges $5 a pound for chicken and
    $2.50 a pound for tofu. How much of each food
    should you eat each day if you want to meet your
    requirements with the lowest cost? What is this daily
    cost?
    c # of lbs of chicken               c 0
    t # of lbs of tofu                  t 0
                               Calories 560c 320t 300
    Price Paid
    P 5c 2.50t                  Protein 136c 40t 48
560c                     320t 300                              c # of lbs of chicken
      136c                     40t 48       Example 4                t # of lbs of tofu
      c 0                                                            P 5c 2.50t
      t 0                                                     The vertices that should
                                                              be tested are approx.
c   0.536
                                                              (0, 1.2), (0.16, 0.65), and
t   0.9375                     1.0
c   0.35                                                      (.536,0).
t   1.2                                         P(0,1.2)     5(0) 2.5(1.2) 3
                               0.8
         # of lbs of tofu, t



                                                P(0.16,0.65)    5(0.16) 2.5(0.65) 2.425
                               0.6              P(0.536,0)     5(0.536) 2.5(0) 2.68
                                                       You should eat about 0.16
                               0.4                     pounds of chicken and 0.65
                                                       pounds of tofu, which will
                               0.2                     cost about $2.43 per day.

                                00   0.2     0.4 0.6 0.8 1.0
                                           # of lbs of chicken, c

More Related Content

What's hot

Linear programming formulation in inventory management decision problems with...
Linear programming formulation in inventory management decision problems with...Linear programming formulation in inventory management decision problems with...
Linear programming formulation in inventory management decision problems with...
Asaye Dessie
 
Linear programming - Model formulation, Graphical Method
Linear programming  - Model formulation, Graphical MethodLinear programming  - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical Method
Joseph Konnully
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
Abu Bashar
 

What's hot (20)

Linear programming formulation in inventory management decision problems with...
Linear programming formulation in inventory management decision problems with...Linear programming formulation in inventory management decision problems with...
Linear programming formulation in inventory management decision problems with...
 
Chapter 18 - Sensitivity Analysis.pdf
Chapter 18 - Sensitivity Analysis.pdfChapter 18 - Sensitivity Analysis.pdf
Chapter 18 - Sensitivity Analysis.pdf
 
Linear programming - Model formulation, Graphical Method
Linear programming  - Model formulation, Graphical MethodLinear programming  - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical Method
 
165662191 chapter-03-answers-1
165662191 chapter-03-answers-1165662191 chapter-03-answers-1
165662191 chapter-03-answers-1
 
Minimization model by simplex method
Minimization model by simplex methodMinimization model by simplex method
Minimization model by simplex method
 
Stress in Beams (solid Mechanics)
Stress in Beams (solid Mechanics)Stress in Beams (solid Mechanics)
Stress in Beams (solid Mechanics)
 
Rsh qam11 ch10 ge
Rsh qam11 ch10 geRsh qam11 ch10 ge
Rsh qam11 ch10 ge
 
Engineering Economics Paper solution
Engineering Economics Paper solutionEngineering Economics Paper solution
Engineering Economics Paper solution
 
Chap02-A.pdf
Chap02-A.pdfChap02-A.pdf
Chap02-A.pdf
 
Q2 physics
Q2 physicsQ2 physics
Q2 physics
 
3. linear programming senstivity analysis
3. linear programming senstivity analysis3. linear programming senstivity analysis
3. linear programming senstivity analysis
 
Rsh qam11 ch08 ge
Rsh qam11 ch08 geRsh qam11 ch08 ge
Rsh qam11 ch08 ge
 
Vector mechanics for engineers statics and dynamics 11th edition beer solutio...
Vector mechanics for engineers statics and dynamics 11th edition beer solutio...Vector mechanics for engineers statics and dynamics 11th edition beer solutio...
Vector mechanics for engineers statics and dynamics 11th edition beer solutio...
 
Decision theory Problems
Decision theory ProblemsDecision theory Problems
Decision theory Problems
 
Linear Programming: The Construction Problem
Linear Programming: The Construction ProblemLinear Programming: The Construction Problem
Linear Programming: The Construction Problem
 
Fundamentals of Engineering Economics 4th Edition Park Solutions Manual
Fundamentals of Engineering Economics 4th Edition Park Solutions ManualFundamentals of Engineering Economics 4th Edition Park Solutions Manual
Fundamentals of Engineering Economics 4th Edition Park Solutions Manual
 
Chapter 5 present worth analysis -with examples
Chapter 5   present worth analysis -with examplesChapter 5   present worth analysis -with examples
Chapter 5 present worth analysis -with examples
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Mecanica
MecanicaMecanica
Mecanica
 
Integer programming
Integer programmingInteger programming
Integer programming
 

More from Chadwick International School

More from Chadwick International School (20)

Math Journal - Grade 7 Chadwick International School
Math Journal - Grade 7 Chadwick International SchoolMath Journal - Grade 7 Chadwick International School
Math Journal - Grade 7 Chadwick International School
 
Myp10 system of linear equations with solution
Myp10 system of linear equations with solutionMyp10 system of linear equations with solution
Myp10 system of linear equations with solution
 
Math Studies conditional probability
Math Studies conditional probabilityMath Studies conditional probability
Math Studies conditional probability
 
Math Studies Calculus Application
Math Studies Calculus ApplicationMath Studies Calculus Application
Math Studies Calculus Application
 
MS2 Max and Min Points
MS2 Max and Min PointsMS2 Max and Min Points
MS2 Max and Min Points
 
Gradient of a curve and equation of a
Gradient of a curve and equation of aGradient of a curve and equation of a
Gradient of a curve and equation of a
 
MS2 POwer Rules
MS2 POwer RulesMS2 POwer Rules
MS2 POwer Rules
 
VANAS 2013 Digital Tools in Math 2013
VANAS 2013 Digital Tools in Math 2013VANAS 2013 Digital Tools in Math 2013
VANAS 2013 Digital Tools in Math 2013
 
Myp7 multiply terms
Myp7 multiply termsMyp7 multiply terms
Myp7 multiply terms
 
Gr10 writing linear equations
Gr10 writing linear equationsGr10 writing linear equations
Gr10 writing linear equations
 
Linear equations 2-3
Linear equations   2-3Linear equations   2-3
Linear equations 2-3
 
Linear equations 2-2 a graphing and x-y intercepts
Linear equations   2-2 a graphing and x-y interceptsLinear equations   2-2 a graphing and x-y intercepts
Linear equations 2-2 a graphing and x-y intercepts
 
Linear equation 2 2
Linear equation 2 2Linear equation 2 2
Linear equation 2 2
 
Gr 10 scatter graphs and lines of best fit
Gr 10 scatter graphs and lines of best fitGr 10 scatter graphs and lines of best fit
Gr 10 scatter graphs and lines of best fit
 
Gr 10 absolute value functions and graphs
Gr 10 absolute value functions and graphsGr 10 absolute value functions and graphs
Gr 10 absolute value functions and graphs
 
Gr10 step function ppt
Gr10 step function pptGr10 step function ppt
Gr10 step function ppt
 
Gr10 piecewise functions
Gr10 piecewise functionsGr10 piecewise functions
Gr10 piecewise functions
 
Mariana project reality-series
Mariana   project reality-seriesMariana   project reality-series
Mariana project reality-series
 
Jhomny reality series project
Jhomny reality series projectJhomny reality series project
Jhomny reality series project
 
Anthony reality series project
Anthony reality series projectAnthony reality series project
Anthony reality series project
 

Recently uploaded

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
YibeltalNibretu
 

Recently uploaded (20)

Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Forest and Wildlife Resources Class 10 Free Study Material PDF
Forest and Wildlife Resources Class 10 Free Study Material PDFForest and Wildlife Resources Class 10 Free Study Material PDF
Forest and Wildlife Resources Class 10 Free Study Material PDF
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
 

MYP 5 Real Life linear programming

  • 1. Linear Programming – set up and solve linear programming problems to find real life minimums and maximums.
  • 2. Linear Programming Hints  To write the constraints and objective function: – Identify the variables. – Write the objective function – Identify each constraint. Then write an inequality for each. • Start with x > 0 and y > 0 (usually).
  • 3. Example 1  The West Hartford Senior Center is trying to establish a transportation system of small and large vans. It can spend no more than $100,000 for both sizes of vehicles and no more than $500 per month for maintenance. The WHSC can purchase a small van, which carries up to 7 passengers, for $10,000 and maintain it for $100 per month. The large vans, which carry up to 15 passengers, cost $20,000 each and can be maintained for $75 per month. How many of each type of van should they purchase if they want to maximize the number of passengers? s 0 s # of small vans l # of large vans l 0 Initial purchase cost 10,000s 20,000l 100, 000 # of passengers 100 s 75l 500 Monthly maintenance P = 7s + 15l
  • 4. s 0 s # of small vans l 0 Example 1 l # of large vans 10, 000s 20, 000l 100, 000 P 7 s 15l 100s 75l 500 The vertices that should 10 be tested are (0,5), (2,4), and (5,0). 8 # of large vans, l P(0,5) 7(0) 15(5) 75 6 P(2,4) 7(2) 15(4) 74 P(5,0) 7(5) 15(0) 35 4 The WHSC should buy 5 large vans which can 2 hold 75 passengers. 00 2 4 6 8 10 # of small vans, s
  • 5. Example 2  Pancakes Waffles 3 cups Bisquick 2 cups Bisquick 1 cup Milk 2 cups Milk 2 Eggs 2 Eggs Serves 6 Serves 5  You have 24 cups of Bisquick, 18 cups of milk, and 20 eggs. If you want to feed as many people as possible, how many batches of each should you make? p # of batches of pancakes p 0 w # of batches of waffles w 0 Servings Bisquick 3 p 2w 24 S 6 p 5w Milk p 2 w 18 Eggs 2 p 2w 20
  • 6. 3p 2w 24 p 2w 18 Example 2 2p 2w 20 p # of batches of pancakes p 0 w # of batches of waffles w 0 S 6 p 5w 10 The vertices that should be tested are # of batches of waffles, w 8 (0,9), (2,8), (4,6), and (8,0). 6(0) 5(9) 45 S(0,9) 6 S(2,8) 6(2) 5(8) 52 S(4,6) 6(4) 5(6) 54 4 S(8,0) 6(8) 5(0) 48 2 Make 4 batches of pancakes and 6 00 batches of waffles 2 4 6 8 10 feed 54 people. to # of batches of pancakes, p
  • 7. Example 3  Kayla works no more than 20 hours per week during the school year. She is paid $10 an hour for tutoring Geometry students and $7 an hour for babysitting. She wants to spend at least 3 hours but no more than 8 hours a week tutoring. Find Kayla’s maximum weekly earnings. t # of hrs spent tutoring t 3 b # of hrs spent babysitting t 8 Earnings b 0 E 10t 7b Total hours worked t b 20
  • 8. t 3 t 8 Example 3 b 0 t # of hrs spent tutoring t b 20 b # of hrs spent babysitting E 10t 7b 20 # of hrs spent babysitting, b The vertices that should be tested are (3,17) and 16 (8,12). E(3,17) 10(3) 7(17) 149 12 E(8,12) 10(8) 7(12) 164 8 Kayla should tutor for 8 hours and babysit for 12 4 hours. 00 2 4 6 8 10 # of hrs spent tutoring, t
  • 9. Example 4  As part of your weight training regimen, you want to consume lean sources of protein. You want to consume at least 300 Calories a day from at least 48 grams of protein. One ounce of chicken provides 35 Calories and 8.5 g of protein. One ounce of tofu provides 20 Calories and 2.5 g of protein. Your local supermarket charges $5 a pound for chicken and $2.50 a pound for tofu. How much of each food should you eat each day if you want to meet your requirements with the lowest cost? What is this daily cost? c # of lbs of chicken c 0 t # of lbs of tofu t 0 Calories 560c 320t 300 Price Paid P 5c 2.50t Protein 136c 40t 48
  • 10. 560c 320t 300 c # of lbs of chicken 136c 40t 48 Example 4 t # of lbs of tofu c 0 P 5c 2.50t t 0 The vertices that should be tested are approx. c 0.536 (0, 1.2), (0.16, 0.65), and t 0.9375 1.0 c 0.35 (.536,0). t 1.2 P(0,1.2) 5(0) 2.5(1.2) 3 0.8 # of lbs of tofu, t P(0.16,0.65) 5(0.16) 2.5(0.65) 2.425 0.6 P(0.536,0) 5(0.536) 2.5(0) 2.68 You should eat about 0.16 0.4 pounds of chicken and 0.65 pounds of tofu, which will 0.2 cost about $2.43 per day. 00 0.2 0.4 0.6 0.8 1.0 # of lbs of chicken, c