Professional Documents
Culture Documents
Bahan
Mentah A
Bahan
Mentah B
xE + 2xI 6
2xE + xI 8
-xE + xI 1
xI 2
xE
0
xI 0
8
7
6
2
5
1
2
3
4
5
6
4
1
3
2
Ruang
pemecahan
1 F
A
0
B
1
J
4
xE
Z = 3 Xe + 2 Xi +0 S1+ 0 S2 + 0 S3 + 0 S4
Dengan batasan : Xe + 2 Xi + S1
=6
2 Xe + Xi
+ S2
=8
- Xe + Xi
+ S3
=1
Xi
+ S4 = 2
Xe, Xi, S1, S2, S3, S4
0
Dasar
Xe
Xi
S1
S2
S3
S4
Solution
-3
-2
Persamaan Z
S1
Persamaan S1
Persamaan S2
S2
S3
-1
Persamaan S3
S4
Persamaan S4
7
IN
Iterasi I
Out
Titik potong
Solution (Ratio)
Dasar
Xe
Xi
S1
S2
S3
S4
-3
-2
0/-3= 0
S1
6/1 = 6
S2
2( titik
pivot)
8/2 = 4
(terkecil)
S3
-1
- 1 (tidak
boleh negatif)
S4
tidak boleh
dibagi 0 8
Dasar
Pers.Pivot
Xe
Xe
Xi
S1
S2
S3
S4
Solution
0/2
2/2
1/2
0/2
1/2
0/2
0/2
8/2
1/2
1/2
Ratio
8/2 =4
10
Operasi Gauss-Jordan
Persamaan Z lama
-3
-2
3/2
3/2
12
Persamaan Z baru
-1/2
3/2
12
Persamaan S1 lama
-1
-1/2
-1/2
-4
Persamaan S1 baru
3/2
-1/2
Persamaan S3 lama
-1
1/2
1/2
Persamaan S3 baru
3/2
1/2
11
IN
Iterasi 2
Dasar
Xe
Xi
S1
S2
S3
S4
Solution
Ratio
-1/2
3/2
12
S1
3/2
-1/2
2/3/2=4/3
Xe
1/2
1/2
4/(1/2)=8
S3
3/2
1/2
5/3/2=10/3
S4
2/1=2
Out
12
13
Iterasi 3
Dasar
Xe
Xi
S1
S2
S3
S4
Solution
1/3
4/3
12
Xi
2/3
-1/3
4/3
Xe
-1/3
2/3
10/3
S3
-1
S4
- 2/3
1/3
2/3
Pemecahan ini optimal karena tidak ada kofisien negatif pada persamaan Z, dengan
besaran Xi = 4/3, Xe = 10/3 dan Z = 12
14
15
17
19
Tabel 1
Iterasi
Dasar
x1
x2
x3
R1
R2
x4
Pemecahan
0
(awal)
x1 masuk
R1 keluar
- 4 + 7M
- 1 + 4M
-M
9M
R1
R2
R3
z
3
4
1
0
0
-1
0
-M
0
0
1
0
3
6
4
4 + 2M
1
0
0
0
1
0
0
0
1
0
0
1
0
0
4 - 7M
3
1/3
- 4/3
- 1/3
8/5 - M
3/5
-4/5
1
7/5 - M
2/5
-1/5
1
0
1
0
0
x1
R2
x4
z
x1
x2
x4
z
x1
x2
x3
1
3
2
1 + 5M
3
1/3
5/3
5/3
0
0
1
0
0
0
1
0
0
1
0
-1/5 - M
-1/5
3/5
-1
-M
0
0
-1
0
0
1
0
0
0
1
-1/5
-1/5
3/5
1
1
2
3
18/5
3/5
6/5
1
17/5
2/5
9/5
1
1
x2 masuk
R2 keluar
2
x3 masuk
x4 keluar
3
(optimum)
0
-1
0
1/5
1/5
-3/5
1
0
0
0
1
Kolom z telah dihapus untuk memudahkan, karena kolom tidak pernah berubah. Kita
akan mengikuti konvensi diseluruh teori ini.
24
Latihan 1
a) Tuliskan persamaan z untuk contoh di atas sebagaimana tampil dalam tabel
ketika masing-masing dari perubahan ini terjadi secara independen.
1)Batasan ketiga pada awalnya berjenis .
[Jawab. z + (-4 + 8M) x1 + (-1 + 6 M) x2 Mx3 Mx4 = 13M.
Gunakan variabel buatan dalam ketiga persamaan.]
2)Batasan kedua pada awalnya berjenis
[Jawab. z + (-4 + 3M) x1 + (-1 + M) x2 = 3M. Gunakan variabel
buatan hanya dalam persamaan pertama.]
3)Fungsi tujuan adalah memaksimumkan z = 4 x1 + x2
[Jawab. z + (-4 - 7M) x1 + (-1 - 4M) x2 + M x3 = 3M. Gunakan
variabel buatan hanya dalam persamaan pertama dan kedua.]
b) Dalam masing-masing kasus di bawah ini, tunjukkan apakah sepenuhnya
diperlukan untuk menggunakan variabel buatan untuk memperoleh
pemecahan awal. Asumsikan bahwa semua variabel adalah nonnegatif.
(1) Maksimumkan z = x1 + x2
dengan batasan
25
7x1 + 2x2 6
3x1 + 3x2 = 5
[Jawab. Ya, gunakan R1 dalam persamaan pertama dan
variabel slack dalam persamaan kedua.]
(2) Minimumkan z = x1 + x2 + x3 + x4
Kendala
2 x1 + x2+ x3
=7
4 x3 + 3x2 + x4 = 8
[Jawab. Tidak, gunakan x3 dan x4; tetapi, pertama-tama
substitusikan keduanya keluar dalam fungsi z dengan
menggunakan x3 = 7 - 2x1 x2 dan x4 = 8 - 4 x1 - R2.]
26
Latihan Komputer
Rancangan metode M didasari oleh persyaratan bahwa
nilai M harus cukup besar. Secara teoritis, M cenderung
tak terhingga. Tetapi, dari sudut pandang perhitungan,
pilihan M yang spesifik dapat memiliki pengaruh
dramatis terhadap hasil, karena kesalahan pembulatan
oleh komputer. Untuk mengilustrasikan hal ini,
pertimbangkan masalah berikut ini:
maksimumkan z = 0,2 x1 + 0,5 x2
dengan batasan
3 x1 +2 x2 6
x1 + 2 x2 4
x1, x2 0
27
28
Tabel dibawah ini hasil operasi iterasi ke 3 untuk mendapatkan besaran yang
tertera dapat dijelaskan pada penjabaran berikut
29
30
31
32
33
34
35
+ R1
4 x1 + 3 x2 x3
=3
+
R2 = 6
36
x1
x2
x3
R1
R2
x4
Pemecahan
-1
R1
R2
x4
3
4
1
1
3
2
0
-1
0
1
0
0
0
1
0
0
0
1
3
6
4
x1
x2
x3
R1
R2
x4
Pemecahan
-1
-1
x1
x2
x4
1
0
0
0
1
0
1/5
-3/5
1
3/5
-4/5
1
-1/5
3/5
-1
0
0
1
3/5
6/5
1
= 3/5
38
minimumkan z = 4 x1 + x2
dengan batasan
x1 + (1/5)x3
= 3/5
= -1/5 x + 18/5
x1
x2
x3
x4
Pemecahan
1/5
18/5
x1
x2
x4
1
0
0
0
1
0
1/5
- 3/5
1
0
0
1
3/5
6/5
1
41
koefisien itu nol, walaupun elemen pivot akan berada tempat lain di
kolom masuk, sifat operasi baris menjamin bahwa baris buatan
tersebut tetap tidak berubah, yang membuat variabel dasar buatan
tersebut berada di tingkat nol sebagaimana diinginkan. Kasus satusatunya yang tersisa adalah koefisien negatif. Dalam kasus ini,
elemen pivot pasti berada di tempat lain dalam kolom masuk dan
jika rasio minimum yang dihasilkan kebetulan positif, maka variabel
buatan tersebut akan memiliki nilai positif dalam. iterasi berikutnya
(dapatkah anda melihat mengapa?). Untuk mencegah hal ini terjadi,
semua yang perlu kita lakukan adalah memaksa variabel buatan
tersebut untuk tetap meninggalkan pemecahan,
43
46
47
x1
x2
x3
R1
R2
x4
Solution
-1
9/7=1 2/7
R1
3/3=1 *
R2
-1
6/4=1 1/2
x4
4/1=4
x1=pivot
1/3
1/3
r lama
-1
-7x pivot
-7
-7/3
-7/3
-7
r baru
5/3
-1
-7/3
R2lama
-1
-4xpivot
-4
-4/3
-4/3
-4
R2baru
5/3
-1
-4/3
48
Dasar
x1
x2
x3
R1
R2
x4
Solution
x4 lama
-1x pivot
-1
-1/3
1/3
-1
x4 baru
5/3
1/3
5/3
-1
-7/3
x1
1/3
1/3
1:1/3=3
R2
5/3
-1
-4/3
2:5/3=6/5*
x4
5/3
1/3
3:5/3=9/5
X2=pivot
-3/5
-4/5
3/5
6/5
r lama
5/3
-1
-7/3
-5/3xpivot
-5/3
4/3
-1
-2
r baru
-1
-1
0
49
Dasar
x1
x2
x3
R1
R2
x4
Solution
x1lama
1/3
-1/3xpivot
-1/3
1/5
4/15
-1/5
-2/5
x1baru
1/5
4/15
-1/5
3/5
x4 lama
5/3
-5/3xpivot
-5/3
4/3
-1
-2
x4 baru
4/3
-1
x1
x2
x3
R1
R2
x4
Solution
-1
-1
x1
1/5
-4/15
-1/5
3/5
X2
-3/5
-4/5
3/5
6/5
x4
4/3
-1
50
x1
x2
x3
x4
Pemecahan
1/5
18/5
x1
1/5
3/5
x2
- 3/5
6/5
x4
3/5:1/5=3
1:1=1*
51
Dasar
x1
x2
x3
x4
Solution
X4= pivot
Z lama
1/5
18/5
-1/5xpivot
-1/5
-1/5
-1/5
Z baru
-1/5
17/5
x1 lama
1/5
3/5
-1/5xpivot
-1/5
-1/5
-1/5
x1 baru
-1/5
2/5
x2 lama
- 3/5
6/5
3/5xpivot
3/5
3/5
3/5
x2 baru
3/5
9/5
1:1=1*
52
X1
X2
X3
X4
Pemecahan
Zbaru
-1/5
17/5
X1 baru
-1/5
2/5
X2 baru
3/5
9/5
X1 -pivot
53
Site
2
Existing quality 3
Desired quality 7
BOD
Waste input = W2
= 100 units/day
Waste removed = W2X2
3
2
6
55
Assume that for each unit of waste removed (not discharged into the
stream) at site 1 the quality index at site 2 improves by 0.025 mg/l,
and the quality index at the site 3 improves by 0.0125 mg/l. For each
unit of waste removed at site 2 the quality index at site 3 improves
by 0.025 mg/l. In this example the water quality at site 2 is measured
just upstream of the point of waste water discharge; hence waste
discharged from site 2 affects the quality only at site 3. Denote these
transfer coefficients as aij (the improvement in the quality index at
site j per unit of waste removed at site i), Wi as the amount of waste
to be treated at site i, and Xi as the fraction of waste removed by
treatment at site i. Then the quality improvement at site j due to
WiXi units of waste removed at site i is (aij )(WiXi) mg/l. For all
56
i = 1, 2 .. 4
Xi 0.95
i = 1, 2 .. 5
58
q2 + a12 W1X1 Q2
3 + (0.025)(200) X1 7
which yield
X1 0.8 ..6
or
2 + (0.0125)(200) X1 + (0.025)(100) X2 6
or
X1 + X2 6 . 7
61
and X1 0.95
X2 0.95 9
Graphical Solution and Analysis.
Since this problem involving only two unknown variables, all
combinations of X1 and X2 that satisfy the constraint 2 through 9
can be determined graphically or use simplex solution. ( solution
will be explain in class session )
62
Waste input = W1
= 200 units/day
Waste removed = W1X1
Site
2
Existing quality 3
Desired quality 7
Waste input = W2
= 100 units/day
Waste removed = W2X2
3
2
6
i = 1, 2
Xi 0.95
i = 1, 2 5
q2 + a12 W1X1 Q2
3 + (0.025)(200) X1 7
X1 0.8 ... 1
64
2 + (0.0125)(200) X1 + (0.025)(100) X2 6
X1 + X2 1.6 .... 2
or
65
X2
Region of
feasible solutions
1.0
0.95
0.8
X20.95
X1 + X2 1.6
0.6
X1 08
X1 0.3
0.4
X2 0.3
0.3
0.2
X10.95
X1
0
0.2
0.3
0.4
0.6
0.8
0.95
1.0
66
Min Z = 4 X1 + 6 X2
Constraint :
0.8
X1
X1 + X2
1.6
X1
0.3
X2
0.3
0.95
X1
X2
0.95
X1 + X2 = 1.6
X1
X1 = 0.95
X2 = 0.8
= 0.8
X2 = 0.65
67
Bila Z = 4 X1 + 6 X2
Dan X1, X2 = (0.95, 0.65) Titik paling Extrim minimal.
Maka Z = 4 x 0.95 + 6 x 0.65 = 7.7 (Optimal)
68
Basic
X1
X2
X3
X4
X5
X6
X7
R1
R2
Sol
-(4-2M)
-(6-M)
-M
-M
2.4M
R1
-1
0.8
0.8/1=0.8
R2
-1
1.6
1.6/1=1.6
X2
-1
0.3
0.3/0=
X1
0.95
0.95/1=0.95
X2
0.95
0.95/0=
X1 masuk R1 keluar
X1 Pivot
-1
0.8
Zlama
-(4-2M)
-(6-M)
-M
-M
2.4M
(4-2M)x Pivot
4-2M
-4+2M
4-2M
3.2-1.6M
Z Baru
M-6
M-4
-M
4-2M
3.2+0.8M
R2 lama
-1
1.6
-1x pivot
-1
-1
-0.8
R2 Baru
-1
0.8
X2lama=X2baru
-1
0.3
70
X1 lama
0.95
Basic
X1
X2
X3
X4
X5
X6
X7
R1
R2
Sol
M-6
M-4
-M
4-2M
3.2+0.8M
X1
-1
0.8
R2
-1
0.8
X2
-1
0.3
X1
-1
0.15
X2
0.95
0.8/1=0.8
0.15/1=0.15
-1
0.15
Z lama
M-6
M-4
-M
4-2M
3.2+0.8M
(4-M)xpivot
4-M
4-M
M-4
0.6-0.15 M
Z baru
M-6
-M
4-M
-M
0.65M+3.8
X1lama
-1
0.8
1x pivot
-1
0.15
X1baru
0.95
R2 lama
-1
0.8
-1x pivot
-1
-1
-0.15
R2 baru
-1
0.65
71
Basic
X1
X2
X3
X4
X5
X6
X7
R1
R2
Sol
M-6
-M
4-M
-M
0.65M+3.8
X1
0.95
R2
-1
0.65
0.65/1=0.65
X2
-1
0.3
0.3/1=0.3
X3
-1
0.15
X2
0.95
-1
0.3
X1lama=baru
0.95
R2 lama
-1
0.65
-1x pivot
-1
-0.3
R2 baru
-1
0.35
X3lama=baru 0
-1
0.15
X2lama
0.95
-1x pivot
-1
-0.3
X2 baru
0.65
72
Basic
X1
X2
X3
X4
X5
X6
X7
R1
R2
Sol
-M
M-6 4-M
-M
0.35M+5.6
X1
0.95
R2
-1
0.35
X2
-1
0.3
X3
-1
0.15
X2
0.65
-1
0.35
0.35/1=0.35
0.65/1=0.65
Z lama
-M
M-6 4-M
-M
0.35M+5.6
(6-M)x pivot
6-M M-6
6-M
-0.35M+2.1
Z baru
-M
-2
-M
7.7
X1 lama=baru
0.95
X2lama
-1
0.3
1x pivot
-1
0.35
X2 baru
-1
0.65
X3lama=baru
-1
0.15
73
X2 lama
0.65
-1x pivot
-1
-1
-0.35
X2 baru
-1
0.30
X1
X2
X3
X4
X5
X6
X7
R1
R2
Sol
-M
-2
-M
7.7
X1
0.95
X2
-1
0.65
X3
-1
0.15
X5
-1
0.35
X2
-1
0.30
74
W1= 100
Q2 = 6
A13 = 1/40
W2= 75
Q3 = 4
A23 = 1/30
q2= 3
q3= 1
75
Min Z = 6 X1 + 10 X2
A12 = 1/20
W1= 100
Q2= 6
A13 = 1/40
W2= 75
Q3= 4
A23 = 1/30
q2= 3
q3= 1
While meeting the desired quality standards Q j at sites j = 2 and 3:
q2 + a12 W1X1 Q2
q3 + a13 W1X1 + a23 W2X2 Q3
The desired water quality at site 2 :
which yield
or
q2 + a12 W1X1 Q2
3 + (0.05)(100) X 1 6
X 1 6.1
1 + (0.025)(100) X1 + (0.033)(75) X2 4
X 1 + X2 .2.276
X2
1.2
1.0
0.5
(0.6,0.6)
X1 + X2 1.2
X1 0.6
0.6
( 1.2,0)
77
X1
Min Z = 6 X1 + 10 X2
Constraint :
X1
0.6
X1 + X2
1.2
X2 0
X1 + X2 = 1.2
X2
=0
Bila Z = 6 X1 + 10 X2
X1 = 1.2
Min Z = 6 X1 + 10 X2
Constraint :
X1
>= 0.6
X1 + X2 >= 1.2
X2 >= 0
X1
X2
OBJ. Func
1.2
7.2
X1
Constraint
>=
0.6
X1+ X2 >=
1.2
79
Maximum Available
Crop A
Crop B
Resources
Water
60
Land
80
Fertilizer
60
Labor
40
Unit price
30
25
80
X2
40
30
2)
3)
20
10
4)
10.91, 12.73
0
10
1)
20
30
40
82
X1
=0
2 X1 + 3 X2 + S1
= 60
5 X1 + 2 X2
= 80
3 X1 + 2 X2
X1 + 2 X2
+ S2
+ S3
+ S4
= 60
= 40
83
Basic
X1
X2
S1
S2
S3
S4
Sol
-30
-25
S1
60
60/2=30
S2
80
80/5=16 *
S3
60
60/3=20
S4
40
40/1=40
X1=pivot
2/5
1/5
16
Z lama
-30
-25
30xpivot
30
12
480
30xpivot
Z baru
-13
480
Z baru
S1lama
60
-2xpivot
-2
-4/5
-2/5
-32
-2xpivot
S1baru
11/5
-2/5
28
S1baru
S3lama
60
S3lama
-3xpivot
-3
-6/5
-3/5
-48
-3xpivot
84
Basic
X1
X2
S1
S2
S3
S4
Sol
-13
480
S1
11/5
-2/5
28
28:11/5=12.73
X1
2/5
1/5
16
16:2/5= 40
S3
4/5
-3/5
12
12:4/5=15
S4
8/5
-1/5
24
24:8/5=15
5/11
-2/11
140/11
Z lama
-13
480
-(-13)x pivot
13
65/11
-26/11
165.4
Z baru
65/11
40/11
645.4
X1 lama
2/5
1/5
16
-2/5x pivot
-2/5
-2/11
4/55
-56/11
X1 baru
-2/11
15/55
120/11
S3 lama
4/5
-3/5
12
-4/5x pivot
-4/5
-4/11
8/55
-112/11
S3 baru
-4/11
25/55
20/11
85
X1
X2
S1
S2
S3
S4
Sol
65/11
40/11
645.4
X2
5/11
-2/11
140/11
X1
-2/11
15/55
120/11
S3
-4/11
25/55
20/11
S4
-8/11
5/55
40/11
they are 4000 m3 per hectare. The annual net production returns are
4000 and 2000 dinars respectively. If the total water available is
320,000 m3, show that as the available land area A increases, the
rotation policy that maximizes total net income changes from one
that is totally intensive to one that is increasingly extensive.
Would the same conclusions hold if instead of fixed net incomes of
4000 and 2000 dinars per hectare of intensive and extensive rotation,
the net income depended on the quantity of crop produced?
Assuming that intensive rotation produces twice the crop yield of
extensive rotation, and that the net income per unit of crop yield Y is
defined by simple linear function 5-0.05 Y, develop and solve a
linear programming model to determine the optimal rotation policies
if A equals 20, 50,80.
87
X2 20
Solving Graficaly :
16000 X1 + 4000 X2 = 320000
X1 +
X2 = 20
88
X2
80
20
( 20 ,0)
X1
89
1) X1 + X2 = 20 X1 = 20 80+4X1 X1 = 20 ;X2 = 0
2) X1 + X2 = 50 X1 = 50 - 80+4X1 X1 = 10 ; X2 = 40
3) X1 + X2 = 80 X1 = 80 - 80+4X1 X1 = 0 ; X2 = 80
Using Solver Solution
Exercise Solution 16 a
Max : Z = 4000 X1 + 2000 X2
Constraints : 16000 X1 + 4000 X2 <= 320000
X1 +
X2<= 20
Intensif
Extensif
Objective Function
Area (X1)
Area (X2)
20
80000
X1
16000 X1
X2
<=
+ 4000 X2 <=
Constrain
t
20
20
Area (Ha)
320000
320000
Water(M903)
X2<= 50
91
16000 X1
40
X2
X2<= 50
120000
<=
50
50 Area (Ha)
+ 4000 X2 <=
320000
320000 Water(M3)
80
X2
X2<= 80
160000
<=
80
80 Area (Ha)
+ 4000 X2 <=
320000
320000 Water(M3)
92
Exercise Solution
Max :
16 b
Z=X1(5-0.05 T1) T1+ X2 (5-0.05 T2 )T2
Constraint : T1 = 2xT2
1) X1 + X2 <= 20
2) X1 + X2 <= 50
3) X1 + X2 <= 80
X1>=5
X2>=5
Intensive
Extensive
T1
T2
54
27
2356
54
Yield (T1,T2)
15
20
20
Area( X1 + X2)
16000
4000
260000
320000
Water(M3)
93
75
37
5625
75
Yield (T1,T2)
10
40
50
50
Area( X1 + X2)
16000
4000
320000
320000
87.5
43.75
7656.25
60
65
16000
4000
320000
Water(M3)
94
Penjelasan Kuliah Ke 17
Selesaikan semua contoh soal dan latihan pada kuliah 13-16
dengan menggunakan program Solver.
Soal 13
Minimumkan z = 4x1 + x2
Dengan batasan
3x1 + x2 = 3
4x1 + 3x2 >=6
x1 + 2x2 <= 4
x1, x2 >= 0
x1
x2
0.4
Z
1.8
Batasan
3.40
3
95
Soal
13
Minimumkan z = 4x1 + x2
Dengan batasan
3x1 + x2 = 3
4x1 + 3x2 >=6
x1 + 2x2 <= 4
x1, x2 >= 0
x1
x2
0.4
1.8
3.40
Batasan
4
96