Module 2 Lesson 9 Linear Programming
Module 2 Lesson 9 Linear Programming
Module 2 Lesson 9 Linear Programming
MODULE 2
Lesson 9
Introduction to Linear Programming
Graphical Solution and Simplex Method
Maximize
Subject to
Solution
x+y=6
x y
y 0 6
6 0
6
0 6 x
Mathematics in the Modern World by Earnhart & Adina
Copyright 2019 C&E
https://www.cebookshop.com/
9
EXAMPLE 1
Solution
Test at origin:
0 6 x
Mathematics in the Modern World by Earnhart & Adina
Copyright 2019 C&E
https://www.cebookshop.com/
10
EXAMPLE 1
Solution
− 𝑥+2 𝑦=6
x y
y 0 3
-6 0
6
0 6 x
Mathematics in the Modern World by Earnhart & Adina
Copyright 2019 C&E
https://www.cebookshop.com/
11
EXAMPLE 1
Solution
Test at origin:
y
==> avoid the
6 origin
0 6 x
Mathematics in the Modern World by Earnhart & Adina
Copyright 2019 C&E
https://www.cebookshop.com/
12
EXAMPLE 1
Solution
We obtain the graph as follows.
y
Feasible solution
6 -x + 2y = 6
3
x+y=6
0 6 x
Mathematics in the Modern World by Earnhart & Adina
Copyright 2019 C&E
https://www.cebookshop.com/
13
EXAMPLE 1
Hence, .
Compute for z at the corner points.
x y Z = 3x + 4y Remark
0 6 24
2 4 22 minimum
600
x + y = 600
y=300
Feasible
solution
600
0 x
x=400
Corner Points :
Mathematics in the Modern World by Earnhart & Adina
Copyright 2019 C&E
https://www.cebookshop.com/
18
EXAMPLE 2
Solution
• Hence, the maximum profit will be obtained if the store will
keep 300 bags of each type per week.
Remark
400 0 12000
0 300 15000
Solution
Set up the table and the formula for the objective
function (C5) as shown below. Assign the decision
variable cells: C6 and C7.
Note: Use dollar sign to fix the cells for the decision variables (C6 & C7).
Move the cursor down to cells C11 and C12 to copy the formula from C10.
Mathematics in the Modern World by Earnhart & Adina
Copyright 2019 C&E
https://www.cebookshop.com/
22
EXAMPLE 3
Solution
Now, click solver from data menu. Select the indicated cells for the
objective function and decision variables. Add the constraints by clicking
the add button and then select the Max and non-negative options.
28
SIMPLEX METHOD: Illustration
Step 4 Perform elementary row operations (Gauss-Jordan reduction method) to make
the pivot element equal to 1 and make the other entries in that column containing the
pivot element all equal to zero. Repeat the process, until the entries in the bottom row
are all positive.
Simplex Table
Operations x y a b Z R
1 1 1 0 0 12 a
1 1/2 0 1/4 0 8 x
-36 -24 0 0 1 0 Z
Operations x y a b Z R Operations x y a b Z R
1 1 1 0 0 12 a 0 1/2 1 -1/4 0 4 a
1 1/2 0 1/4 0 8 x 1 1/2 0 1/4 0 8 x
-36 -24 0 0 1 0 Z 0 -6 0 9 1 288 Z
Outgoing variable
Mathematics in the Modern World by Earnhart & Adina
Copyright 2019 C&E
https://www.cebookshop.com/
34
SIMPLEX METHOD: Illustration
Step 4 Perform elementary row operations (Gauss-Jordan reduction method) to make
the pivot element equal to 1 and make the other entries in that column containing the
pivot element all equal to zero. Repeat the process, until the entries in the bottom row
are all positive.
Simplex Table
Operations x y a b Z R
0 1 2 -1/2 0 8 y
1 1/2 0 1/4 0 8 x
0 -6 0 9 1 288 Z