Linear Programming
Linear Programming
100
Assembly
Number of Watch-TVs (X2)
(Constraint B)
80
60
40
20
0
0 10 20 30 40 50 60 70 80
Number of Walkmans (X1)
Company Feasible Region
Electronics
120 (Constraint A)
100 Assembly
(Constraint B)
Number of Watch-TVs (X2)
80
60
40 Feasible
Region
20
0
0 10 20 30 40 50 60 70 80
80
60
Iso-profit line
40 7*X
1 +5
*X
2 =
210
20
0
0 10 20 30 40 50 60 70 80
60
40
20
0
0 10 20 30 40 50 60 70 80
Number of Walkmans (X1)
Company Optimal Solution
Electronics
(Constraint A)
Iso-profit line
Assembly
120 (Constraint B)
Number of Watch-TVs (X2)
20
0
0 10 20 30 40 50 60 70 80
Number of Walkmans (X1)
Company Optimal Solution
Electronics
(Constraint A)
Iso-profit line Assembly
120 (Constraint B)
Number of Watch-TVs (X2)
20
0
0 10 20 30 40 50 60 70 80
Number of Walkmans (X1)
Formulation of Solution
• Decision variables
X1 = tons of BW chemical produced
X2 = tons of color chemical produced
• Objective
Minimize Z = 2500X1 + 3000X2
• Constraints
X1 ≥ 30 (BW); X2 ≥ 20 (Color)
X1 + X2 ≥ 60 (Total tonnage)
X1 ≥ 0; X2 ≥ 0 (Non-negativity)
Simplex Steps for Maximization
• Choose the variable with the greatest positive
Cj- Zj to enter the solution
• Determine the row to be replaced by selecting
that one with the smallest (non-negative)
quantity-to-pivot column ratio
• Calculate the new values for the pivot row
• Calculate the new values for the other row(s)
• Calculate the Cj and Cj-Zj values for this
tableau.
• If there are any Cj-Zj numbers greater than
zero, return to step 1.
Simplex Steps for Minimization
• Choose the variable with the greatest negative Cj- Zj
to enter the solution
• Determine the row to be replaced by selecting that one
with the smallest (non-negative) quantity-to-pivot
column ratio
• Calculate the new values for the pivot row
• Calculate the new values for the other row(s)
• Calculate the Cj and Cj-Zj values for this tableau. If
there are any Cj-Zj numbers less than zero, return to
step 1.
Simplex
1. Menentukan fungsi tujuan
fungsi tujuan (cj) max = 420x1 + 320X2 + 260X3
fungsi kendala/batasan =
120x1 + 100x2 + 80x3 ≤ 8.000
6x1 + 4x2 + 2x3 288
x1; x2; x3 ≥ 0
Cont’……
Standarisasi model:
Fungsi Tujuan:
Z – 420X1 – 328X2 – 260X3 = 0
Fungsi batasan:
120x1 +100x2 + 80x3 + S1 = 8.000
6x1 + 4x2 + 2x3 +S2 = 288
X1; x2; x3; S1; S2 ≥ 0
Cont’……
2. Membuat tabel /matrik awal dengan variabel
“slack”
Var. Z X1 X2 X3 S1 S2 NK Tes
Basis (RHS) Ration
Z -420 -320 -260 0 0
S1 0 120 100 80 1 0 8000 66,67
S2 0 6 4 2 0 1 288 48
Kolom kunci
Cont’..
3. Menentukan kolom kunci yaitu: “pay off” terbesar cj – Zj
4. Menentukan baris kunci yaitu : “angka index” terkecil NK = tes ratio
KK
5. Membuat matrix baru :
• Pada baris kunci = bilangan pada baris kunci (S2)
angka index
Kolom kunci
baru
6. Tentukan baris dan kolom kunci yang baru
S1 3 – (3 x 3/3) = 0 S2 2 – (2 x 3/3) = 0
3 – (3 x 0/3) = 3 4 – (2 x 0/3) = 4
1 – (3 x 0/3) = 1 0 – (2 x 0/3) = 0
0 – (3 x 0/3) = 0 1 – (2 x 0/3) = 1
0 – (3 x 1/3) = -1 0 – (2 x 1/3) = -2/3
24 – (3 x 21/3) = 3 20 – (2 x 21/3) = 6
S2 0 – (4 x 0/3) = 0 X1 1 – (0 x 0/3) = 1
4 – (4 x 3/3) = 0 0 – (0 x 3/3) = 0
0 – (4 x 1/3) = -4/3 0 – (0 x 1/3) = 0
1 – (4 x 0) = 1 0 – (0 x 0/3) = 0
-2/3 – (4 x -1/3) = 2/3 1/3 – (0 x -1/3) =
1/3
6 – (4 x 3/3) = 2 7 – (0 x 3/3) = 7
cj – Zj 0 – (15 x 0/3) = 0
15 – (15 x 3/3) = 0
0 – (15 x 1/3) = -5
0 – (15 x 0/3) = 0
-25/3 – (15 x -1/3) = -10/3
Matrix baru
Basis Cj X1 X2 S1 S2 S3 Q Tes
ratio
25 15 0 0 0
X2 15 0 1 1/3 0 -1/3 1
S2 0 0 0 -4/3 1 2/3 2
X1 25 1 0 0 0 1/3 7
Zj 25 15 5 0 10/3 190
Cj-zj 0 0 -5 0 -10/3
Ketentuan-ketentuan tambahan:
• Jika terdapat lebih dari satu kolom bernilai
negatif angka terbesar pilih salah satu
diantara 2 secara sembarang, akan
menghasilkan keputusan yang sama.
• Dua baris atau lebih memiliki indeks positif
terkecil pilih baris kunci secara bebas
diantara keduanya.
• Kenaikan nilai Z tidak terbatas LP tidak perlu
diteruskan cukup disebutkan bahwa kenaikan
nilai Z dapat tidak terbatas. (mis: batasan X2
tidak ada).
Penyimpangan-penyimpangan dari
bentuk standar
• Batasan dengan tanda “sama dengan”.
Jika batasan menggunakan tanda “sama
dengan” maka cara mengatasi dengan
menambah variabel buatan (artificial variabel).
Misal: fungsi tujuan: Z = 3X1 + 5X2
Batasan: 1) 2X1 ≤ 8
2) 3X2 ≤ 15
3) 6X1 + 5X2 = 30
Penambahan var artificial
Standarisasi model:
Fungsi tujuan: Z = 3X1 + 5X2 – MX5, sehingga
menjadi:
Z – 3X1 – 5X1 + MX5 = 0
Batasan:
1) 2X1 + X3 = 8
2) 3X2 + X4 = 15
3) 6X1 + 5X2 + X5 = 30
Karena ada penambahan var buatan, maka fungsi
tujuan harus disesuaikan dengan menambah
bilangan M
Sehingga fungsi tujuan menjadi
Z = 3X1 + 5X2 – MX5
Bilangan M bernilai besar tetapi tidak
terbatas, sehingga nilai Z bisa diperoleh
jika nilai X5 = 0. sehingga standarisasi
funhgsi tujuan menjadi:
Z – 3X1 – 5X1 + MX5 = 0
• Persamaan tersebut tidak memungkinkan menggunakan
metode simplex, sebab nilai pada var dasar pada
persamaan harus bernilai 0, padahal X5 merupakan var
dasar pada tabel permulaan. Oleh karena itu diubah
dengan cara: mengurangi dengan M dikalikan dengan
baris batasan yang bersangkutan. Contoh diatas
menjadi:
( -3 ; -5 ; 0 ; 0; M ;0 )
M ( 6 ; 5 ; 0 ; 0 ; 1 ; 30 ) –
((-6M-3); (-5M-5) ; 0 ; 0 ; 0 ;-30M)
Analisis Sensitivitas
• Setelah ditemukan yang optimal dari LP model,
kadang dirasa perlu ditelaah lagi kemungkinan-
kemungkinan yang terjadi sebagai akibat
terjadinya perubahan-perubahan pada koefisien
dalam model.
• Apabila hal itu terjadi, harus memutuskan
menghitung lagi dari awal dengan masalah baru
(karena perubahan koefisien).
• Ini memakan waktu yang lama
mempermudah dilakukan analisis sensitivitas
(Post Optimality Analysis).
Perubahan yang mungkin
terjadi:
• Katerbatasan kapasitass resources nilai
kanan fungsi batasan
• Koefisien-koefisien fungsi tujuan
• Koefisien teknis fungsi batasan, yaitu
koefisien yang menunjukkan erapa bagian
kapasitas resources yang di “konsumsi”
oleh satu satuan kegiatan
• Penambahan variabel baru
• Penambahan batasan baru
Akibat perubahan:
• Penyelesaian optimal tidak berubah
var. dasar maupun nilai-nilainya tidak
mengalami perubahan
• Variabel-variabel dasar mengalami
perubahan, tetapi nilai-nilainya tidak
berubah
• Penyelesaian optimal sama sekali
berubah