Linear Programming
Linear Programming
Mathematical
LINEAR PROGRAMMING technique that permits the
determination of the best or
optimum use of the
available resources
namely, money, personnel,
materials, facilities and
time.
Two aspects:
Formulation of LP model
Solution part
SPECIFIC APPLICATIONS OF LP 3
A 2 4 3
B 5 2 4
MACHINE CAPACITY 120 80
FORMULATION OF LP MODEL
STEPS:
DECISION VARIABLES:
Let A = the number of units of product A to be produced
B = the number of units of product B to be produced
OBJECTIVE FUNCTION:
Total CM = 3A + 4B
CONSTRAINTS:
Explicit constraints
Grinding = 2A + 5B ≤ 120
Polishing = 4A + 2B ≤ 80
Implicit/non-negativity constraints
A, B ≥ 0
METHODS OF LINEAR PROGRAMMING 9
Graphic Method
Algebraic Method
Simplex Method
GRAPHICAL METHOD
11
LP MODEL
DECISION VARIABLES:
Let A = the number of units of product A to be produced
B = the number of units of product B to be produced
OBJECTIVE FUNCTION:
Total CM = 3A + 4B
CONSTRAINTS:
Explicit constraints
Grinding = 2A + 5B ≤ 120
Polishing = 4A + 2B ≤ 80
Implicit/non-negativity constraints
A, B ≥ 0
Grinding (2A + 5B ≤ 120) Polishing (4A + 2B ≤ 80) 13
if A = 60 B =0 if A = 20, B = 0
A = 0, B = 24 A = 0, B = 40
Feasible Region
60 A = 0:; B = 0
A = 20; B= 0
50 A = 0; B = 24
A= 10; B = 20
40
30
20
10
0 B
10 20 30 40 50 60
OBJECTIVE FUNCTION:
Total CM = 3A + 4B 15
A = 0; B = 0 Answer:
= 3(0) + 4(0) = P0 Produce 10 units of A
and 20 units of B. the total
A = 20; B= 0 contribution margin associated
= 3(20) + (0) = 60 with this combination is P110
which is the highest among the
A = 0; B = 24 four combinations.
= 3(0) + 4(24) = 96
A = 10; B = 20
= 3(10) + 4(20) = 110
ALGEBRAIC METHOD
ALGEBRAIC METHOD 17
4A + 2B = 80 4A + 2(20) = 80
2A + 5B = 120 4A = 40 = 80
4A = 80 – 40
4A + 2B = 80 4A = 40
4A + 10B = 240 4
8B = 160 A = 10
B = 20
Total CM = 3A + 4B
= 3(10) + 4(20)
Total CM = P110
SIMPLEX METHOD
SIMPLEX METHOD 19
0 3 4 0 0 Objective20
Cj Mix Row
Quantity A B S1 S2
Variable Row
0 S1 120 2 5 1 0
Problem Row
0 S2 80 4 2 0 1
Index Row
Zj 0 0 0 0 0
Cj - Zj 0 3 4 0 0
1. Check if it satisfies the constraints and objective.
2. It is the rule in simplex method that the optimum solution for maximization problem
has not been reached if the index row still carries positive values at the completion
of the iteration.
3. To determine the outgoing row, compute for the lowest positive ratio.
S1: 120/5 = 24 S2; 80/2 = 40, therefore S1 should be replaced.
4. The incoming variable is the highest possible value in the index row , i.e. B.
STEP 3:
0 3 4 0 0
Cj Mix B Row
Quantity A B S1 S2
120/5 = 24 21
0 S1 120 2 5 1 0 2/5 = 0.4
0 S2 80 4 2 0 1 5/5 = 1
Zj 0 0 0 0 0 1/5 = 0.2
C j - Zj 0 3 4 0 0 0/5 = 0
0 3 4 0 0 S2 Row
Cj Mix
Quantity a b S1 s2 80 – 2(24) = 32
4 B 24 0.4 1 0.2 0 4 – 2(0.4) = 3.20
0 S2 32 3.2 0 -0.4 1 2 – 2(1) = 0
Zj 96 1.6 4 0.8 0 0 – 2(0.2) = -0.4
Cj - Zj -96 1.4 0 -0.8 0 1 – 2(0) = 1
1. Optimum solution for maximization problem has not been reached if the index row
still carries positive values at the completion of the iteration.
2. To determine the outgoing row, compute for the lowest positive ratio.
B: 24/50.4 = 60 S2; 32/3.2 = 10 therefore S2 should be replaced.
4. The incoming variable is the highest possible value in the index row , i.e. A
STEP 4:
0 3 4 0 0 A Row
Cj Mix 22
Quantity A B S1 S2 32/3.2 = 10
4 B 24 0.4 1 0.2 0 3.20/3.2 = 1
0 S2 32 3.2 0 -0.4 1 0/3.2 = 0
Zj 96 1.6 4 0.8 0 -0.4/3.2 = -0.125
1/3.2 = 0.3125
Cj - Zj -96 1.4 0 -0.8 0
Cj Mix
0 3 4 0 0 B Row
Quantity A B S1 S2 24 – 0.4(10) = 20
4 B 20 0 1 0.25 -0.125 0.4 – 0.4(1) = 0
3 A 10 1 0 -0.125 0.3125 0.2 – 0.4(-0.125)
Zj 110 3 4 0.625 0.4375 = 0.25
Cj - Zj -110 0 0 -0.625 -0.4375 0 – 0.4(0.3125) =
-0.125
1. There is no positive figures anymore in the index row.
2. The optimum strategy therefore is 10 units of A and 2 units of B for a contribution margin of
P110.
SHADOW PRICE 23
END!