CH 5 Class 2 OR 4 2024
CH 5 Class 2 OR 4 2024
Notes:
1. Each movement from tableau to the next makes an improvement of the objective function.
The amount of improvement = No. of units from entering variable * Amount of improvement per unit
أقل قيمة موجبة فى عمود النتائج المستخدمة القيمة الموجودة فى صف اختبار مثالية الحل
لتحديد المتغير المرشح للخروج أسفل عمود المتغير الداخل
2. Matrix under the additional variables in the final tableau represent the basic inverse Matrix (whose
columns are represented by the columns of variables included in the optimal solution but in the initial
solution).
2 4
−1 1
6 3
4 2 1 −1 1 0
3 6
* =
−1 1
2 4 6 3 0 1
3. Basic inverse matrix * Result to column in initial tableau produce the optimal values of decision variables.
1 −1 60 12
3 6
* =
−1 1
6 3 48 6
11
Khaled Rageh Grade Four OR Ch 5 – class 2
4. Shadow prices:
5
#1 60 * = 100 Contribution of const.
3
2
#1 48 * = 32
3
132
• Shadow prices represent the opportunity cost for one unit from the limited resource.
Economic cost of producing one unit = Economic cost of using limited resources
𝟓 𝟐
= 4 hours in department R * + 2 hours in department S *
𝟑 𝟑
20 4 24
= + = =𝟖
3 3 3
10 8 18
= + = =𝟔 = CM per unit
3 3 3
Example 2:
Solve the following problem by the simplex method:
Standard Form
12
Khaled Rageh Grade Four OR Ch 5 – class 2
Tableau Form
Sol:
Variables cB 12 18 10 0 0 0 output
s1 0 2 3 4 1 0 0 50 16.67
s2 0 -1 1 1 0 1 0 0 0
s3 0 0 -1 1.5 0 0 1 0
zj 0 0 0 0 0 0 0
cj - zj 12 18 10 0 0 0
s1 0 5 0 1 1 -3 0 50 10
x2 18 -1 1 1 0 1 0 0 (*row)
s3 0 -1 0 2.5 0 1 1 0
zj -18 18 18 0 18 0 0
cj - zj 30 0 -8 0 -18 0
x1 12 1 0 .2 .2 -.6 0 10 (*row)
x2 18 0 1 1.2 .2 .4 0 10
s3 0 0 0 2.7 .2 .4 1 10
zj 12 18 24 6 0 0 300
cj - zj 0 0 -14 -6 0 0
x1 = 10
x2 = 10
s3 = 10
z = 300
13
Khaled Rageh Grade Four OR Ch 5 – class 2
Second Tableau
Row * x2 New s1 New s3
-1 ÷ 1 = -1 2 - (3 × -1) = 5 0 - (-1 × -1) = -1
1 ÷ 1 = 1 3 - (3 × 1) = 0 -1 - (-1 × 1) = 0
1 ÷ 1 = 1 4 - (3 × 1) = 1 1.5 - (-1 × 1) = 2.5
0 ÷ 1 = 0 1 - (3 × 0) = 1 0 - (-1 × 0) = 0
1 ÷ 1 = 1 0 - (3 × 1) = -3 0 - (-1 × 1) = 1
0 ÷ 1 = 0 0 - (3 × 0) = 0 1 - (-1 × 0) = 1
0 ÷ 1 = 0 50 - (3 × 0) = 50 0 - (-1 × 0) = 0
Third Tableau:
Row * x1 New x2 New s3
5 ÷ 5 = 1 -1 - (-1 × 1) = 0 -1 - (-1 × 1) = 0
0 ÷ 5 = 0 1 - (-1 × 0) = 1 0 - (-1 × 0) = 0
1 ÷ 5 = .2 1 - (-1 × .2) = 1.2 2.5 - (-1 × .2) = 2.7
1 ÷ 5 = .2 0 - (-1 × .2) = 0.2 0 - (-1 × .2) = .2
-3 ÷ 5 = -.6 1 - (-1 × -.6) = 0.4 1 - (-1 × -.6) = .4
0 ÷ 5 = 0 0 - (-1 × 0) = 0 1 - (-1 × 0) = 1
50 ÷ 5 = 10 0 - (-1 × 10) = 10 0 - (-1 × 10) = 10
Example 3:
Max Z = 2x1 + 8x2
S.T. x1 ≤ 20
x2 ≥ 14
5x1 + 10x2 = 150
x1, x2 > 0
Standard Form
Tableau Form
Sol:
14
Khaled Rageh Grade Four OR Ch 5 – class 2
Variables cB 2 8 0 0 -M -M output
s1 0 1 0 1 0 0 0 20 X
a2 -M 0 1 0 -1 1 0 14 14
a3 -M 5 10 0 0 0 1 150 15
cj - zj 5M+2 11M+8 0 -M 0 0
s1 0 1 0 1 0 0 0 20 X
x2 8 0 1 0 -1 1 0 14 X
a3 -M 5 0 0 10 -10 1 10 1
s1 0 1 0 1 0 0 0 20
x2 8 .5 1 0 0 0 .1 15
s2 0 .5 0 0 1 -1 .1 1
zj 4 8 0 0 0 .8 120
cj - zj -2 0 0 0 -M -M-.8
s1 = 20
x2 = 15
s2 = 1
z = 120
Tableau 2:
15
Khaled Rageh Grade Four OR Ch 5 – class 2
Tableau 3:
Example 4:
Tableau Form
Sol:
Tableau 2:
Row * New a1
2 ÷ 4 = 1 4 - (2 × 1) = 3
2 2
4 ÷ 4 = 1 2 - (2 × 1) = 0
0 ÷ 4 = 0 -1 - (2 × 0) = -1
0 ÷ 0 = 0 1 - (2 × 0) = 1
-1 ÷ 4 = −1 0 - (2 × −1) = 1
4 4 2
1 ÷ 4 = 1 0 - (2 × 1) = −1
4 4 2
6 ÷ 4 = 3 8 - (2 × 3) = 5
2 2
16
Khaled Rageh Grade Four OR Ch 5 – class 2
Tableau 3:
Row * New x2
3 ÷ 3 = 1 1 - (1 × 1) = 0
2 2
0 ÷ 3 = 0 1 - (1 × 0) = 1
2
-1 ÷ 3 = −1 0 - (1 × −1) = 1
3 2 3 6
1 ÷ 3 = 1 0 - (1 × 1) = −1
3 2 3 6
1 ÷ 3 = 1 −1 - (1 × 1) = −1
2 6 4 2 6 3
−1 ÷ 3 = −1 1 - (1 × −1) = 1
2 6 4 2 6 3
5 ÷ 3 = 5 3 - (1 × 5) = 2
3 2 2 3 3
Variables cB 60 48 0 M 0 M output
a1 M 4 2 -1 1 0 0 8 4
a2 M 2 4 0 0 -1 1 6 1.5
zj 6M 6M -M M -M M 14M
zj - cj 6M-60 6M-48 -M 0 -M 0
a1 M 3 0 -1 1 1 −1 5 𝟓
= 1.7
𝟑
2 2
x2 48 1/2 1 0 0 −1 1 3/2 3
4 4
zj 3M+24 48 -M M 𝟏 𝟏 5M+72
M-12 - 𝟐
M+12
𝟐
zj - cj 3M-36 0 -M 0 𝟏 𝟑
M-12 - M+12
𝟐 𝟐
x1 60 1 0 −1 1 1 −1 5
3 3 6 6 3
x2 48 0 1 1 −1 −1 1 2
6 6 3 3 3
zj 60 48 -12 12 -6 6 132
x1 = 5/3
x2 = 2/3
z = 132
17