Linear Programming
Linear Programming
Morning
!!!
Mr. Alexis R. Osorio
Learning Objectives:
1. Identify the objective function
in linear programming;
2. Find the minimum and
maximum value of z of the
objective function; and
3. Solve linear programming
problems using graphical
method.
Target –
Project
Based
Situation
s
Sales target Within a budget of
Within 15 days
within a month 7000php
CONSTRAINTS
Find the optimum
Optimization solution subject to
Problems the constraints of
the problem.
Optimization Techniques
Linear Programming
Linear
Programm
ing
Mr. Alexis R. Osorio
What is Linear Programming?
1. Product mix
2. Diet problem
3. The portfolio selection problem
4. Media selection
5. Blending problem
6. Transportation problem
7. Travelling salesman problem
Components of Linear
Programming
The basic components of the LP are as
follows:
1. Decision Variables
2. Constraints
3. Data
4. Objective Functions
Characteristics of Linear
Programming
The following are the six characteristics of
the linear programming problem:
Non-negative Constraints
x≥0
y≥0
Example #1
Maximize z = 50x + 18y
Subject to constraints
2x +
2x + y ≤ 100
y≤
x + y ≤ 80
100
x≥0
y≥0
x+
Corresponding Coordinates of Coordinates of y≤
Inequalities Equations x-intercept y-intercept 80
x + y ≤ 80 x + y = 80 (80,0) (0,80)
y
Example #1
100
Feasible Region
Maximize z = 50x + 18y
Corner point method
2x
Subject to constraints
+
A (0,0)
y≤
2x + y ≤ 100 80
100
x + y ≤ 80
x≥0 C B (0,80)
y≥0 C (20,60)
D (50,0)
2x + y = 100
x+
x + y = 80
y≤
80
D
x
A 50 80
y
Example #1
100
Maximize z = 50x + 18y
Corner point method
2x
Subject to constraints
+
A (0,0)
y≤
2x + y ≤ 100 80
100
x + y ≤ 80
x≥0 C B (0,80)
y≥0 C (20,60)
z = 50x + 18y D (50,0)
x+
A (0,0) 50(0)+18(0)=0
y≤
80
D
B (0,80) 50(0)+18(80)=1440 x
A 50 80
Non-negative Constraints
x≥0
y≥0
Example #2
x+
Maximize z = 4x+5y y≤
Subject to constraints 20
x + y ≤ 20
3x + 4y ≤ 72
x≥0
3x
y≥0 + 4y
≤ 72
Corresponding Coordinates of Coordinates of
Inequalities Equations x-intercept y-intercept
x + y ≤ 20 x + y = 20 (20,0) (0,20)
3x + 4y ≤ 72 3x + 4y = 72 (24,0) (0,18)
y
Example #2
Feasible Region
Maximize z = 4x+5y
Subject to constraints
Corner point method
x + y ≤ 20 20 A (0,0)
x+
3x + 4y ≤ 72 18
y≤
B (0,18)
B
20
x≥0
y≥0 C C (8,12)
x + y = 20 D (20,0)
3x + 4y = 72 3x
+ 4y
≤ 72
A x
20 D 24
y
Example #2
Maximize z = 4x+5y
Subject to constraints
Corner point method
x + y ≤ 20 20 A (0,0)
x+
3x + 4y ≤ 72 18
y≤
B (0,18)
B
20
x≥0
y≥0 C C (8,12)
z = 4x+5y D (20,0)
3x
+ 4y
A (0,0) 4(0)+5(0)=0 ≤ 72
B (0,18) 4(0)+5(18)=90 A x
20 D 24
Non-negative Constraints
x≥0
y≥0
Example #3
Minimize z = 2x+3y
3x +
Subject to constraints
y
3x + 6y ≥ 24
≥9
3x + y ≥ 9
x≥0 3x
+ 6y
y≥0 ≥ 24
3x + 6y ≥ 24 3x + 6y = 24 (8,0) (0,4)
3x + y ≥ 9 3x + y = 9 (3,0) (0,9)
y
Example #3
Minimize z = 2x+3y A
9
Subject to constraints
3x +
3x + 6y ≥ 24
3x + y ≥ 9
≥9 y
x≥0
y≥0
4
Corner point method
A (0,9) 3x + 6y = 24 B 3x +
3x + y = 9 6y ≥
B (2,3) 24
x
C (8,0) 3 8 C
y
Example #3
Minimize z = 2x+3y A
9
Subject to constraints
3x +
3x + 6y ≥ 24
3x + y ≥ 9
≥9 y
x≥0
y≥0
4
z = 2x+3y
Corner Points Value of z B 3x +
6y ≥
24
A (0,9) 2(0)+3(9)=27 x
3 8 C
B (2,3) 2(2)+3(3)=13 The minimum value of z is 13.
Book
Desks (y)
shelves (x)
Carpentry 2 hours 3 hours Constraint: 2x+3y ≤ 60
D (30,0) 15(30)+40(0)=450
Example #4
A furniture company makes book shelves and desks. Each shelf
requires 2 hours for carpentry work and 1 hour for painting. Each desk requires 3
hours for carpentry and 4 hours for painting. The company has a maximum of 60
hours for carpentry and 40 hours of painting available each week, and they make a
profit of $15 per shelf and $40 per desk. How many shelves and desks should they
make to maximize the profit?
A (0,0) 15(0)+40(0)=0
D (30,0) 15(30)+40(0)=450
Example #5
A self-employed carpenter earns $90 for the sale of a table and $180 for
the sale of a rocking chair. It takes 2 hours for him to make a table and 5 hours to
manufacture a rocking chair. He is limited to working 40 hours per week. The
average manufacturing cost is $15 per table and $45 per rocking chair. He wishes
to keep his manufacturing costs at $315 per week. How many tables and rocking
chairs should he make to maximize his weekly sales? Determine the maximum
sales and profit he can make per week?
Rocking
Table (T)
chair (R)
Sales $90 $180 Objective Function: S = 90T+180R
https://www.youtube.com/watch?v=Uo6aRV-mbeg
https://www.youtube.com/watch?v=uJFiR0DG2Bw
https://www.youtube.com/watch?v=qQFAvPF2OSI
https://www.youtube.com/watch?v=Y7e7DCsDUMY
https://www.youtube.com/watch?v=w9BlUqa2JpI&t=51s