Linear Programming Model
Linear Programming Model
Course Teacher
Professor Dr. Md. Mazharul Hoque
6/7/2023 1
The Linear Programming(LP) Model
6/7/2023 2
The Linear Programming(LP) Model
General Form
X1 ≥ 0 , X2 ≥ 0, …………………………………….. , Xn ≥ 0 } … (3rd )
6/7/2023 4
Definitions
5
Interpretation
Z is the chosen overall measure of effectiveness e.g. profit.
- Maximize profit
- Maximize B/C ratio
- Maximize sales
- Maximize cost
- Minimize risk
Importance Properties of LP
6/7/2023 6
Formulation of the LP Problem
Example 1: Available machine capacities are
6/7/2023 8
Formulation: LP model
Let Xi (i=1, 2, 3,) be the number of units of product i produced per
week. Since the profit has been chosen as the measure of
effectiveness,
Z = 20 X1 + 6 X2 + 8 X3
Sales restriction
X3 ≤ 20
6/7/2023 9
Summary of LP:
Subject to restriction
St
8 X1 + 2X2 + 3X3 ≤ 200
4X1 + 3X2 ≤ 100 ….. (2)
2X1 + + X3 ≤ 50
X3 ≤ 20
And
X1 ≥ 0, X2 ≥ 0, X3 ≥ 0 ………(3)
6/7/2023 10
LP model: Solution
6/7/2023 11
LP model: Solution
Example
Consider the following linear programming model.
Maximize
Z = 3X1 + 5X2
X1 ≤ 4
X2 ≤ 6
3X1 + 2X2 ≤ 18
X1 ≥ 0, X2 ≥ 0
6/7/2023 12
LP model: Solution
6/7/2023 13
10
X1 = 4
7
c X2 = 6
d
X2 6
b 3X1 + 2X2 = 18
3
a
0
0 1 2 3 4 5 6 7 8 9 10
X1
15
Graphical Procedure
1st step: Plot graphically the values of (X1, X2 ) which are
permitted by the restrictions
2nd Step: Pick out the points in this region which maximizes the
value of
This is done by trial and error procedure.
6/7/2023 17
Simplex Method (Algebraic Procedure)
6/7/2023 18
Simplex Method (Algebraic Procedure)
S.t.
X1 + X3 =4
X2 + X4 =6
3X1 + 2X2 + X5 = 18
I Z 1 -3 -5 0 0 0 0
Initial
II X3 0 1 0 1 0 0 4
iteration
III X4 0 0 1 0 1 0 6
IV X5 0 3 2 0 0 1 18
Identity Matrix
This is called the simplex tableau:
Solution: Z = 0, X3 = 4, X4 = 6, X5 = 18, X1 = 0, X2 =0
Now we have to proceed further for optimal equation by choosing
“entering” and “leaving” basic variables.
6/7/2023 20
Algebraic Solution
6/7/2023 21
Algebraic Solution
Eqn. Basic Coefficients of RHS of
operations
No variables Z X1 X2 X3 X4 X5 Eqn
I-(-5)III I1 Z 1 -3 0 0 5 0 30
II-0(III) II2 X3 0 1 0 1 0 0 4
III3 X2 0 0 1 0 1 0 6
IV-2(III) IV4 X5 0 3 0 0 -2 1 6
Assignment:
6/7/2023 22
Algebraic Solution (continue)
Z=36 X1=
X2=
X3 = ??????
X4 = ??????
X5 = ??????
X
6/7/2023 23