Qba Lec 7 2023
Qba Lec 7 2023
Linear Programming
Simplex Method
1
Chapter (3)
Linear Programming
X1, X2 > 0
Where,
Solution:
We will start by plotting the problem constraints as straight lines, the
situation that necessitates converting the inequalities into equations:
X2 = 100
2
Put X2 = 0
2X1 + 4 (0) = 400
X1 = 200
Constraint (2)
100X1 + 50X2 = 8,000
Put X1 = 0
100 (0) + 50X2 = 8,000
X2 = 160
Put X2 = 0
X1 = 80
Constraint (3)
X1 = 60
3
The next step is to determine the corner points:
=
100X1 + 50X2 = 8,000
-100 X1 = -6000
50 X2 = 2000
X2 = 40
4
(2X1 + 4X2 = 400)*(-50)
100X1 + 50X2 = 8,000
-150 X2 = -12000
X2 = 80
By substituting in equation (1)
Based on the previous table, corner point (C) is the optimal point that
yields the maximum profits.
5
2) Simplex Method:
Simplex method is used when there are two or more variables in the
linear programing problems.
It examines the corner points in a systematic fashion, using basic algebraic
concepts. It does so in an iterative manner that is, repeating the same set
of procedures time after time until an optimal solution is reached.
In this lecture, we will discuss the following:
1- Convert LP constraints to equalities with slack variables.
2- Set up and solve LP problems with simplex tableau.
3- Interpret the meaning of every number in the simplex tableau.
Example (1): The national company produces 2 products X1 , X 2
according to 3 constraints. The following linear programming model
Max Z (profit) = 50 𝐗 𝟏 +40 𝐗 𝟐
Subject to
3 X1 +5 X 2 ≤ 150
1 X1 ≤ 20
8 X1 +5 X 2 ≤ 300
Solution:
We will follow specific steps:
First step: The start will be with converting the inequalities into equalities through
adding a slack variable to each of the constraints. This allows us to write the problem
in standard form.
6
Note
S1 0 3 5 1 0 0 150
S2 0 1 0 0 1 0 20
S3 0 8 5 0 0 1 300
𝒛 0 0 0 0 0 0
𝒄−𝒛 50 40 0 0 0
7
Note
We will select the variable that has the lowest value through dividing the
(Value column / entering variable column)
S1 = 150 / 3 = 50
S2 = 20 / 1 = 20
S3 = 300 / 8 = 37.5
So S2 will leave the current basic and X1 will enter into the basic column,
because S2 will be the bottle neck resource.
8
Note
We select the variable that has the lowest value because that resource
presents a bottle neck; because this is the maximum units can be produced
from the three resources.
Determine the new values (pivot row) to the variable that will enter into the basic
column. Note that: The pivot element is the intersection point between the entering variable and
leaving variable.
𝑆1 𝑆3
0 - (0 *3) = 0 1 - (0 * 8) = 1
0 - (1* 3) = -3 0 - (1*8) = -8
1 - (0*3) = 1 0 - (0 *8) = 0
5 - (0* 3) = 5 5 - (0*8) = 5
3 - (1 *3) = 0 8 - (1*8) =0
9
Third step: Setting up the new simplex tableau:
So S1 will leave the current basic column and X 2 will enter into the basic
column, because S1 is the bottle neck resource.
10
Determine the new values (pivot row) to the variable that will enter into
the basic column.
X 2 =old value (pivot row equivalent to S1) / pivot element
90 / 5 = 18
0 / 5 =0
-3 / 5 = -0.6
1 / 5 = 0.2
5 / 5 =1
0 / 5 =0
Determine the new rows (𝐗 𝟏 , 𝐒𝟑 ) = old row – (new pivot row * above (below) the
pivot element respectively.
𝑋1 𝑆3
0 - (0 *0) = 0 1 - (0* 5) = 1
1 - (-0.6* 0) = 1 -8 - (-0.6*5) = -5
0 - (0.2*0) = 0 0 - (0.2*5) = -1
0- (1* 0) = 0 5 - (1*5) = 0
1 - (0 *0) = 1 0 - (0*5) = 0
11
Fourth step: Setting up the new simplex tableau:
12