Management Science_Linear Programming Examples
Management Science_Linear Programming Examples
CORNER POINTS 𝟓𝟔
X1 = 12 . X2 =
5 𝟓
─ Corner points define the area of intersection
─ Look for area where all constraints intersect 12 56
D=( , )
─ Where you see all the colors is where the area 5 5
intersect Find the coordinate (X1, X2), such that when you put it
─ It is only in the read area where we can all the colors into objective function, and it will give the highest value
─ Red is the area of intersection (maximize profit).
─ The best answer will always lies in corner points.
Look for an area where all those constraints intersect.
APRIL KAE APRIL KAE APRIL KAE APRIL KAE APRIL KAE APRIL KAE
2|Page
Minimize z = 0.75 X1 + X2 CORNER POINTS
Constraints: Note:
We want the slope (objective function) to move
Subject to: inward because we are minimizing. As we move
inward, we are moving towards (0,0), which
Technological Constraints
means we spend less. But as we move outward,
40 X1 + 30 X2 ≥ 100 the costs are increasing.
We cannot find a point below the area or line
40 X1 + 60 X2 ≥ 160 because of constraints
The last point to hit before leaving the area is
(1,2)—the answer.
Non-Negativity Constraints We must always find a point inside the area
because that is where all constraints are satisfied
X1 ≥ 0 X2 ≥ 0
LINE
Note: 40 X1 + 30 X2 = 100
… … ≥ (greater than – upwards)
─ Graphing can only solve for 2 variables X1 = 0 X2 = ? X1 = ? X2 = 0
─ One line per constraint
─ 2 or more variables have other method (0) X1 + 30 X2 = 100 40 X1+ (0) X2 = 100 A = (0, 3.33) B=? C = (4, 0)
30 X2 = 100 . 40 X1 = 100 .
30 30 40 40 Intersection of C1 and C2
𝑿𝟐 = 3.33 𝑿𝟏 = 2.5
2ND EXAMPLE: X1 X2
(0, 3.33) (2.5, 0) Multiply a number to get Substitute the value of X2
A doctor has ordered his patient to take at least 100 mg
rid of 1 variable and get to either
of Drug A and 160 mg of Drug B twice a day as part of
(2.5, 3.33) the other variable
his treatment for tuberculosis.
40 X1 + 30 X2 = 100
These drugs are not available in pure form but the 40 X1 + 30 X2 = 100 40 X1 + 30 (2) = 100
40 X1 + 60 = 100
drugstore stocks tablets containing 40 mg of A and 40 mg
-1 (40 X1 + 60 X2 = 160) 40 X1 = 100 – 60
of B and capsules containing 30 mg of A and 60 mg of B. 40 X1 + 60 X2 = 160 -40 X1 - 60 X2 = -160
The cost is 75 centavos per tablet and one peso per 40 X2 = 40
X1 = 0 X2 = ? X1 = ? X2 = 0 Maximization = We want the line to be as high it can be
30 X2 - 60 X2 = 100 – 160 40 40
capsule. How many of each must the patients buy to without going out to the constraints
-30 X2 = -60
minimize his cost? (0) X1 + 60 X2 = 160 40 X1 + (0) X2 = 160 -30 -30 Minimization = We want the line to be as low as possible
60 X2 = 160 . 40 X1 = 160 .
Tablets Capsules Constraints 60 60 40 40 without leaving the area.
X2 = 2 X1= 1
At least 100 𝑿𝟐 = 2.67 𝑿𝟏 = 4
Drug A 40 mg 30 mg
mg (2x / day)
At least 160 (0, 2.67) (4, 0) B = (1, 2) 3RD EXAMPLE:
Drug B 40 mg 60 mg mg
(2x / day) You are constrained to the red area and choose the Solve the following problems given these constraints and
(4, 2.67)
Profit P0.75 P1.00 highest profit. this objective.
AREA The optimal/best answer always lies in a corner point. Objective Function:
How many of each must the patients buy to minimize his
cost? ─ All of the constraints must be satisfied Corner Points Minimize z = 0.75 X1 + X2 Maximize z = 30 X1 + 40 X2
A. (0, 3.33) 0.75 (0) + (3.33) = z
Defining Variables: 0 + 3.33 = 3.33
B. (1, 2) 0.75 (1) + (2) = z
X1 = number of Tablets to buy 0.75 + 2 = 2.75 Constraints:
C. (4, 0) 0.75 (4) + (0) = z
X2 = number of Capsules to buy Subject to:
4+0=8
Technological Constraints
APRIL KAE APRIL KAE APRIL KAE APRIL KAE APRIL KAE APRIL KAE
3|Page 4|Page
2 X1 – X 2 ≥ 2 CORNER POINTS
4 (0) + 2 X2 = 16 4 X1 + 2 (0) = 16
2 X2 = 16 . 4 X1 = 16 . 4TH EXAMPLE: 100 X1 + 50 X2 = 8,000
2 2 4 4
𝑿𝟐 = 8 𝑿𝟏 = 4 Personal Mini Warehouses is planning to expand its X1 = 0 X2 = ? X1 = ? X2 = 0
successful Orlando business into Tampa. In doing so, the
(0, 8) (4, 0) company must determine how many storage rooms of 100 (0) + 50 X2 = 8,000 100 X1 + 50 (0) = 8,000
each size to build. Its objective and constraints follow: 50 X2 = 8,000 100 X1 = 8,000
(4, 8) 50 50 100 100
A = (1, 0) B=? C=? D = (4, 0) Defining Variables: 𝑿𝟐 = 160 𝑿𝟏 = 80
Intersection of C2 and C3 X1 = number of large spaces developed
2 X1 – X 2 = 2 (0, 160) (80, 0)
X1 X2 X2 = number of small spaces developed
X1 = 0 X2 = ? X1 = ? X2 = 0 2 X1 – X 2 = 2 2 X 1 – X2 = 2 (80, 160)
2 (2) – X2 = 2
2 (0) – X2 = 2 2 X 1 – X2 = 2 X2 = 2 4 - 2 = X2 Objective Function:
– X2 = 2 . 2 X1 = 2 . X1 = 60
-1 -1 2 2 2 X1 = 2 + 2 Maximize monthly earnings = 50 X1 + 20 X2
𝑿𝟐 = -2 𝑿𝟏 = 1 2 X1 = 4 (60, 0)
2 2
(0, -2) (1, 0) Constraints:
CORNER POINTS
X1 = 2 X1= 2
(1, -2) Subject to:
Technological Constraints
B = (2, 2)
X2 = 2
2 X1 + 4 X2 ≤ 400 (advertising budget available)
(0, 2)
100 X1 + 50 X2 ≤ 8,000 (square footage required)
A = (1, 0) B = (2, 2) C=? D = (4, 0)
X1 ≤ 60 (rental limit expected)
Intersection of C1 and C3
X1 X2
Non-Negativity Constraints
4 X1 + 2 X2 = 16 4 X1 + 2 X2 = 16
4 (3) + 2 X2 = 16 X1 ≥ 0 X2 ≥ 0
-2 (X2 = 2) 12 + 2 X2 = 16
-2 X2 = -4 2 X1 = 16 - 12
4 X1 = 16 – 4 2 X2 = 4
4 X1 = 12 2 2
4 4
X1 = 3 X2 = 2
C = (3, 2)
APRIL KAE APRIL KAE APRIL KAE APRIL KAE APRIL KAE APRIL KAE
5|Page 6|Page
CONCLUSION: Personal Mini Warehouses should develop (20, 60) 6TH EXAMPLE:
60 large spaces and 40 small spaces to maximize profit
A = (0, 0) B = (0, 100) C=? D=? of P3,800. Consider this LP formulation
CORNER POINTS
E = (60,0) Objective Function:
X2 = 80 X1= 40 Y ≤ 70
Constraints:
APRIL KAE APRIL KAE APRIL KAE APRIL KAE APRIL KAE APRIL KAE
7|Page 8|Page
A = (2.5, 70) B=? C=? D = (90, 0)
3 (0) + 2Y = 120 3X + 2 (0) = 120
2Y = 120 3X = 120 Intersection of C2 and C3
2 2 3 3
Y = 60 X = 40 X Y
8X + 2Y = 160 8X + 2Y = 160
(0, 60) (40, 0) 8 (8) + 2Y = 160
-1 (3X + 2Y = 120) 64 + 2Y = 160
-3X – 2Y = -120 2Y = 160 – 64
(40, 60)
8X – 3X = 160 – 120 2Y = 96
2 2
Y = 70
5X = 40
(0, 70) 5 5
CORNER POINTS X= 8 Y = 48
Notes
X Y
3X + 2Y = 120 3X + 2Y = 120
3X + 2 (21.43) = 120
-3 (X + 3Y = 90) 3X + 42.86 = 120
-3X – 9Y = -270 3X = 120 – 42.86
Y = 21.43 X = 25.71
A=? B=? C=? D = (90, 0)
X Y
8X + 2Y = 160 8X + 2Y = 160
8 (2.50) + 2Y = 160 Corner Points Minimize z = X + 2Y
-2 (Y = 70) 20 + 2Y = 160 A. (2.5, 70) (2.5) + 2 (70) = z
-2Y = -140 2Y = 160 – 20 2.5 + 140 = 142.5
B. (8, 48) (8) + 2 (48) = z
8X = 160 – 140 2Y = 140 8 + 96 = 104
2 2 C. (25.71, 21.43) (25.71) + 2 (21.43) = z
8X = 20 25.71 + 42.86 = 68.57
8 8 D. (90, 0) (90) + 2 (0) = z
90 + 0 = 90
X = 2.5 Y = 70
CONCLUSION: C (25.71, 21.43) = to minimize costs of
$68.57
A = (2.5, 70)
APRIL KAE APRIL KAE APRIL KAE APRIL KAE APRIL KAE APRIL KAE
9|Page 10 | P a g e