Professional Documents
Culture Documents
Lecture 8
Lecture 8
• Outline:
– Duality
– Analisa Sensitivitas
• References:
– Frederick Hillier and Gerald J. Lieberman. Introduction
to Operations Research. 7th ed. The McGraw-Hill
Companies, Inc, 2001.
– Hamdy A. Taha. Operations Research: An Introduction.
DUALITAS
8th Edition. Prentice-Hall, Inc, 2007.
1
13/11/2013
Contoh
Complementary Variable Pairs M ax x1 3 x2 M ax x1 3x2
Subject to Subject to
2 x1 3 x2 8 2 x1 3x2 x3 8
x1 x2 1 x1 x2 x4 1
Primal Dual Slack x1 , x2 0 x1 , x2 , x3 , x4 0
Decision Variables
Variables z x1 x2 x3 x4 RHS
z 1 -1 -3 0 0 0
x3 0 2 3 1 0 8
x4 0 -1 1 0 1 1
z 1 -4 0 0 3 3
Primal x3 0 5 0 1 -3 5
Slack Dual Decision x2 0 -1 1 0 1 1
Variables Variables z 1 0 0 0.8 0.6 7
x1 0 1 0 0.2 -0.6 1
x2 0 0 1 0.2 0.4 2
2
13/11/2013
z x1 x2 x3 x4 RHS
Pada Problem Dual z 1 -1 -3 0 0 0
x3 0 2 3 1 0 8
x4 Hubungan
0 -1 1 Primal
0 - 1Dual1
z 1 -4 0 0 3 3
x3
Primal
x
0 5 0 1 -3 5
2 0 -1 1 0 1 1
z 1 0 0 0.8 0.6 7
x1 0 1 0 0.2 -0.6 1
x2 0 0 1 0.2 0.4 2
Dual
Shadow Price
• It is often important for managers to determine how a
change in a constraint’s right-hand side changes the
LP’s optimal z-value.
• With this in mind, we define the shadow price for the
ith constraint of an LP to be the amount by which the
optimal z-value is improved—increased in a max
problem and decreased in a min problem—if the right-
hand side of the ith constraint is increased by 1.
ANALISA SENSITIVITAS • This definition applies only if the change in the right-
hand side of Constraint i leaves the current basis
optimal.
3
13/11/2013
(6,11)
4
13/11/2013
Sensitivity Analysis
5
13/11/2013
Soal: Max z 60 x1 30 x2 20 x3
z 280, x1 2, x2 0, x3 8
s.t. 8 x1 6 x2 x3 48 s1 48 82 60 18 24
The Dakota Furniture Company manufactures desk, tables, and chairs. The 4 x1 2 x2 1.5 x3 20
manufacture of each type of furniture lumber and two types of skilled labor: s2 20 42 20 1.58 0
finishing and carpentry. The amount of each resource needed to make each 2 x1 1.5 x2 0.5 x3 8 s3 8 22 1.50 0.58 0
type of furniture is given in Table x1 , x2 , x3 0
Resource Desk Table Chair
Lumber 8 board ft 6 board ft 1 board ft
Finishing hours 4 hours 2 hours 1.5 hours Min w 48 y1 20 y2 8 y3
w 280, y1 0, y2 10, y3 10
s.t. 8 y1 4 y2 2 y3 60
e1 80 410 210 60 0
Carpentry hours 2 hours 1.5 hours 0.5 hours
6 y1 2 y2 1.5 y3 30
At present, 48 bard feet of lumber, 20 finishing hours, and 8 carpentry hours
e2 60 210 1.510 30 5
are available. A desk sells for $60, and a table for $30, and a chair for $20. y1 1.5 y2 0.5 y3 20
Dakota believes that demand for desks, chairs and tables is unlimited. Since e3 10 1.510 0.510 20 0
available resource have already been purchased. Dakota wants to maximize y1 , y2 , y3 0
total revenue. Do the sensitivity analysis for Dakota problem.
6
13/11/2013
Z=3600
200
z = 50x + 20y
Z=3000 200
150
x 60
Z=2000 150 (constraint 3 )
100
D 2 x 4 y 400 (constraint 1)
E
100 Optimal solution
D
( x = 60, y = 40) 100x 50 y 8000 (constraint 2)
50
C
50 C
0
A
D(40, 80) 0 50 B 100 150 200
0
A
0 50 B 100 150 200
200
150 x 60 (constraint 3 )
100
D
H 100x 50 y 8000 (constraint 2)
50
DUAL SIMPLEX
C
0
A
0 50 B I 100 150 200
H(60, 280)
7
13/11/2013
Dual Simplex
-langkah pengerjaan-
1. Initialization.
– Convert constraints in ≥ to ≤ (by multiplying both sides by -1)
– Add slack variables as needed
– Find a basic solution (Optimal solution is feasible if the values are zero for
basic variables and nonnegative for non basic variables)
– Go to feasiblity test.
2. Feasibility test.
– If all basic variables are nonnegative, then it is feasible, therefore optimal
– Otherwise, go to iteration.
3. Iterasi
a. Determine the leaving variable. Select basic variable with most negative
value.
b. Determine the entering variable. Select non basic variable with most
negative coefficient in the leaving variable row.
c. Determine the new basic solution. Solve by Gaussian elimination.
d. Return to feasibility test.
Dual Simplex
-latihan soal-
● Contoh:
Min 2x1 + 3x2 + 4x3 Max -2x1 – 3x2 – 4x3
s.t. s.t.
x1 + 2x2 + x3 3 -x1 – 2x2 – x3 + x4 -3
2x1 – x2 + 3x3 4 -2x1 + x2 – 3x3 + x5 -4
x1 , x2 , x3 0 xi 0
Dual Simplex
Lecture 9 – Preparation
-latihan soal-
z x1 x2 x3 x4 x5 RHS • Materi:
z 1 2 3 4 0 0 0
– Integer Linear Programming
x4 0 -1 -2 -1 1 0 -3
x5 0 -2 1 -3 0 1 -4
z x1 x2 x3 x4 x5 RHS
z
x…
x…
z x1 x2 x3 x4 x5 RHS
z
x…
x…
8
13/11/2013