MATERI KULIAH 1
PENGAMBILAN
KEPUTUSAN
OPTIMASI
TUJUAN
x1 , x2 ,......., xn 0
susy susmartini operations research 1, 2006 5
CONTOH 1 :
Perusahaan telah memutuskan untuk mengirim 54 ton bijian kualitas tinggi dan
65 ton bijian kualitas rendah tiap minggu. Formulasikan ke dalam model
Programa Linier untuk menentukan jumlah hari kerja di tiap tambang dalam
satu minggu, agar perusahaan dapat menekan biaya operasionalnya.
Subject to :
4 x1 6 x2 1x3 54
4 x1 4 x2 6 x3 65
x1 7
x2 7
x3 7
x1 , x2 , x3 0
A(0,6)
6 4 x1 4 x2 40 Optimal pada :
x1 8, x2 2 Z 64
4
Z = 64
2
B(8,2)
Z = 60
C(10,0)
0 2 4 6 8 10 12
susy susmartini operations research 1, 2006 11
METODE SIMPLEKS
(OPERASI PIVOT)
BEKERJA DALAM
KOLOM-KOLOM DALAM TABLO : TABLO
Cj Konst Perband
CB Var . . . Ruas Konst RK:
Basis x1 x2 Kanan Kolom Pivot
Cj
S1
0 1 0 1 0 0 4 4/1 = 4
S2
0 1 3 0 1 0 15 15/1 = 15
0 S3 2 1 0 0 1 10 10/2=5
Cj 3 2 0 0 0 Z=0
Cj 3 2 0 0 0 Konst Perband
CB Var x1 x2 S1 S2 S3
Ruas Konst RK:
Basis Kanan Kolom Pivot
x1
3 1 0 1 0 0 4 4/0
S2
0 0 3 -1 1 0 11 11/3=3.67
0 S3 0 1 -2 0 1 2 2/1=2
Cj 0 2 -3 0 0 Z=12
3 2 0 0 0 Konst Optimal
CB Cj Ruas pada
Var
Basis x1 x2 S1 S2 S3 Kanan
x1= 3
x1
3 1 0 0 -1/5 3/5 3
S1 x2= 4
0 0 0 1 1/5 -3/5 1
2 x2 0 1 0 2/5 -1/5 4 Z=17
0 0 0 -1/5 -7/5 Z=17
Cj
susy susmartini operations research 1, 2006 19
VARIABEL SEMU
CONTOH 5 :
Objective function :
Minimize Z 3x1 x2 x3
Subject to :
x1 2 x2 x3 11
4 x1 x2 2 x3 3
2 x1 x3 1
x1 , x2 , x3 0
SEHINGGA :
Objective function :
Minimize Z 3 x1 x2 x3 0S1 0S 2
Subject to :
x1 2 x2 x3 S1 11
4 x1 x2 2 x3 S 2 R1 3
2 x1 x3 R2 1
x1 , x2 , x3 , S1 , S 2 , R1 , R2 0
TAPI …………
KARENA DI ANTARA VARIABEL BASIS AWAL TERSEBUT
TERDAPAT VARIABEL SEMU, MAKA SOLUSI BASIS MENJADI
SOLUSI TAK LAYAK
KEADAAN INI DAPAT DIATASI DENGAN :
1. METODE SIMPLEKS M BESAR (BIG M)
2. METODE SIMPLEKS 2 PHASE
Objective function :
Minimize Z 3 x1 x2 x3 0 S1 0 S 2 MR1 MR2
Subject to :
x1 2 x2 x3 S1 11
4 x1 x2 2 x3 S 2 R1 3
2 x1 x3 R2 1
x1 , x2 , x3 , S1 , S 2 , R1 , R2 0
CATATAN :
S1
0 1 -2 1 1 0 0 0 11 11/1=11
R1
M -4 1 2 0 -1 1 0 3 3/2=1.5
M R2 -2 0 1 0 0 0 1 1 1/1=1
-3+ 1-M 1- 0 M 0 0 Z=4M
Cj 6M 3M
Cj -3 1 1 0 0 M M Konst Optimal
CB VB x1 x2 x3 Ruas Kn pada
S1 S2 R1 R2
x1 x1 = 4
-3 1 0 0 1/3 -2/3 2/3 -5/3 4
x2 x2 = 1
1 0 1 0 0 -1 1 -2 1
x3
x3 = 9
1 0 0 1 2/3 -4/3 4/3 -7/3 9
Cj 0 0 0 1/3 1/3 M- M- Z=-2 Z = -2
1/3 2/3
Cj 0 0 0 0 0 1 1 Konst Perband
CB x1 x2 x3 Ruas Kn RK : KP
VB S1 S2 R1 R2
S1
0 1 -2 1 1 0 0 0 11 11/1=11
R1
1 -4 1 2 0 -1 1 0 3 3/2=1.5
1
R2 -2 0 1 0 0 0 1 1 1/1=1
Cj 6 -1 -3 0 1 0 0 W=4
S1
0 3 -2 0 1 0 0 -1 10 10/-2
R1
1 0 1 0 0 -1 1 -2 1 1/1=1
0 x3 -2 0 1 0 0 0 1 1 1/0
Cj 0 -1 0 0 1 0 3 W=1
Cj 0 0 0 0 0 1 1 Konst Fasa I
CB x1 x2 x3 Ruas Kn optimal
VB S1 S2 R1 R2
S1
0 3 0 0 1 -2 2 -5 12
0
x2 0 1 0 0 -1 1 -2 1
0 x3 -2 0 1 0 0 0 1 1
Cj 0 0 0 0 0 1 1 W=0
S1
0 3 0 0 1 -2 12 12/3=4
x2
1 0 1 0 0 -1 1 1/0
1
x3 -2 0 1 0 0 1 1/-2
Cj -1 0 0 0 1 Z=2
Cj -3 1 1 0 0 Konst Optimal
CB x1 x2 x3
VB S1 S2 Ruas Kn pada :
x1 x1 =4
-3 1 0 0 1/3 -2/3 4
x2 x2 =1
1 0 1 0 0 -1 1
x3 =9
1 x3 0 0 1 2/3 -4/3 9
Cj 0 0 0 1/3 1/3 Z = -2 Z = -2
susy susmartini operations research 1, 2006 28
REVISED SIMPLEX
NOTASI-NOTASI :
C j C j Pj C B B 1
Kasus :
Maksimasi, pilih C j Terbesar
Minimasi, pilih C j Terkecil
Entering Variable x j dengan C j terpilih
Objective Function :
Maximize Z 3 x1 5 x2
Subject to
x1 4
2 x2 12
3 x1 2 x2 18
x1 , x2 0
Bentuk Standard
Objective Function :
Maximize Z 3x1 5 x2 0 S1 0 S 2 0 S3
Subject to
x1 S1 4
2 x2 S2 12
3 x1 2 x2 S3 18
x1 , x2 , S1 , S 2 , S3 0
C j C j Pj C B B 1
B P3 , P4 , P5
1 0 0 1 0 0
B 0 1 0 B 1 0 1 0
0 0 1 0 0 1
C B 0, 0, 0 0, 0, 0
1
C1 3 0, 0, 0 0 3
3
0
C2 5 0, 0, 0 2 5 x2 ENTERING VARIABLE
2
susy susmartini operations research 1, 2006 32
b. Memilih LEAVING VARIABLE
1 0 0 4 4
K B 1 K 0 1 0 12 12
0 0 1 18 18
1 0 0 0 0
Pj B 1 Pj P2 0 1 0 2 2
0 0 1 2 2
12 / 2 S 2 LEAVING VARIABLE
C j C j Pj C B B 1
1 0 0 1 0 0
B P3 , P2 , P5 B 0 2 0 B 1 0 1 2 0
0 2 1 0 1 1
1 0 0
C B 0, 5, 0 0, 5, 0 0 1 2 0 0, 2 1 2 , 0
0 1 1
1
C1 3 0, 2 1 2 , 0 0 3
3
x1 ENTERING VARIABLE
0
C4 0 0, 2 1 2 , 0 1 2 1 2
0
susy susmartini operations research 1, 2006 34
b. Memilih LEAVING VARIABLE
1 0 0 4 4
K B 1 K 0 2 1 2 0 12 6
0 1 1 18 6
1 0 0 1 1
Pj B 1 Pj P1 0 2 1 2 0 0 0
0 1 1 3 3
Min 4 / 1, 6 / 0, 6 / 3
C j C j Pj C B B 1
1 0 1 1 1 3 1 3
B P3 , P2 , P1 B 0 2 0 B 1 0 1 2 0
0 2 3 0 1 3 1 3
1 1 3 1 3
C B 0, 5, 3 0, 5, 3 0 1 2 0 0,1 1 2 ,1
0 13 1 3
0
SOLUSI OPTIMAL pada :
C4 0 0,1 1 2 ,1 1 1 1 2
0 1 3 4 2 S1 2
1 1 3
0 K 0 1 2 0 12 6 x2 6
C5 0 0,1 1 2 ,1 0 1 0 1 3 1 18
3 2 x1 2
1
Subject to : Subject to :
n
a x
j 1
ij j bi i 1, 2, ..., m m
a ij yi c j j 1, 2, ..., n
i 1
xj 0
yi 0
Maximize Z = cx Minimize : W = yb
0
x y 0, 2 1 2 , 0 cx 30 yb
6
x* : optimal solution
cx * y * b
y* : compl. opt. solution
Contoh :
Iterasi terakhir pada contoh 6 :
2
x* y * 0, 3 2 ,1 cx * 36 yb
6
C *
jB : adalah nilai C j* untuk Variabel Basis Awal pada saat xj
optimal (PRIMAL PROBLEM)
Maka : y *
= C *
jB =
*
= SHADOW PRICE
untuk PRIMAL PROBLEM
Cj 3 5 0 0 0 Z=0
Cj 3 5 0 0 0 Konst Perband
CB Var Ruas Konst RK:
Basis x1 x2 S1 S2 S3 Kanan Kolom Pivot
S1
0 1 0 1 0 0 4 4/1 = 4
x2
5 0 1 0 1/2 0 6 6/0
0 S3 3 0 0 -1 1 6 6/3 = 2
Cj 3 0 0 - 5/2 0 Z = 30
C jB* 0, 3
2 , 1
Subject to 1 y1 0 y2 3 y3 3
0 y1 2 y2 2 y3 5
y1 , y2 , y3 0
Bentuk Standard
Objective Function
Minimize W 4 y1 12 y2 18 y3 0 S1 0 S 2 0 S3 MR1 MR2
Subject to 1 y1 0 y2 3 y3 S1 R1 3
0 y1 2 y2 2 y3 S 2 R2 5
y1 , y2 , y3 , S1 , S 2 , R1 , R2 0
Cj 4 12 18 0 0 M M Konst Perband
Var
CB Basis
y1 y2 y3 S1 S2 R1 R2 Ruas Kn RK : KP
y3
18 1/3 0 1 -1/3 0 1/3 0 1 1/0
R2
M -2/3 2 0 2/3 -1 -2/3 1 3 3/2
Cj -2+ 12- 0 6- M 5/3M- 0 W=18+
2/3M 2M 2/3M 6 3M
y* = ( 0, 3/2, 1 )
KESIMPULAN :
y C
*
jB
*
Artinya :
(lihat contoh)
Jika :
• b1 dari 4 diubah menjadi 5,
maka Z optimal tidak berubah
• b2 dari 12 diubah menjadi 13,
maka Z optimal naik sebesar 3/2
• b3 dari 18 diubah menjadi 19,
maka Z optimal naik sebesar 1
Objective Function
Maximize Z 6 x1 3 x2
Subject to
2 x1 x2 8
3 x1 3 x2 18
x2 3
x1 , x2 0
susy susmartini operations research 1, 2006 53
Soal no. 2 :
Sebuah perusahaan persewaan truk memutuskan akan membeli
3 (tiga) jenis truk untuk menambah armadanya. Harga ketiga
jenis truk tersebut adalah $25,000 untuk truk ukuran besar,
$20,000 untuk truk ukuran sedang, dan $15,000 untuk truk
ukuran kecil. Dana yang tersedia adalah $400,000.
Agar terjadi keseimbangan dalam armadanya, diputuskan untuk
membeli truk ukuran besar paling sedikit 4 (empat) truk, paling
sedikit 5 (lima) truk ukuran sedang dan paling sedikit 10 truk
ukuran kecil.
Di samping itu, kapasitas garasi adalah 25 truk. Sedangkan
fasilitas pemeliharaan dapat menangani 40 (empat puluh) truk
kecil. Setiap truk ukuran sedang memerlukan 2 kali fasilitas
pemeliharaan truk kecil, dan fasilitas pemeliharaan truk besar
adalah 4 kali fasilitas pemeliharaan truk kecil.
Bentuklah dalam formasi Programa Linier
susy susmartini operations research 1, 2006 54
Soal no. 1
Objective Function
Maximize Z 4 x1 6 x2
Subject to
2 x1 3x2 12
6 x1 2 x2 18
x1 , x2 0