average completion time on multiple machinescs2035/courses/ieor4405.s20... · jw j p j 111 211...
TRANSCRIPT
Average Completion Time on Multiple Machines
P ||PCj
j pjA 1
B 3
C 4
D 5
E 6
F 9
G 12
H 20
I 50
J 60
What is the right algorithm?
Ms
Mz Bl E / H ITon
,* I 34 8 9 13 18 29 ' -
'63 78
- on each mache SPT OrdeEG!3. Pat -285Pa
,
=347 tpptpo)
- 3ppt2p⇐tp, TZCPDTPETPF )1- 3pct 2PptP± t (DatPiff)
Average Completion Time on Multiple Machines
P ||PCj
j pjA 1
B 3
C 4
D 5
E 6
F 9
G 12
H 20
I 50
J 60
What is the right algorithm?
⇐
hi
HE §. SPT
'.
I
⇒⇒ECj C ,t Gt G t Cy
=P,HP
,tBlt ( Rt Rt ftp.tpp.pe)=
4 p,t 3ft 2B t l Py
$1 sit $10 $100
Average Completion Time on Multiple Machines
• P ||PCJ – SPT is optimal.
• P ||PwjCj – Is WSPT optimal?
Example
j wj pj1 1 1
2 1 1
3 100 99
smaehis Smyth. Hewhips €←i "ool99#
EwjG= 1471102 't 100199 ) = 9903
b¥¥A 100
Ill ) till ) t 100400 ) > 90002
Average Completion Time on Multiple Machines
• P ||PCJ – SPT is optimal.
• P ||PwjCj – Is WSPT optimal?
Example
j wj pj1 1 1
2 1 1
3 100 99
Smiths rte
.÷÷: IP 10 )
ill ) ti'
A) t 9911017=999972I 1000 )#
oLose12 too
4) ' txt ) t 9911W ) I 9903
Average Completion Time on Multiple Machines
• P ||PCJ – SPT is optimal.
• P ||PwjCj – Is WSPT optimal?
Example
j wj pj1 1 1
2 1 1
3 100 99
• P ||PwjCj is NP-complete.
• WSPT is a (1 +p2)/2 -approximation for P ||PwjCj
ahh
R|| PCj
• Can be solved as a matching problem.
• Left side node for each job j
• Right hand side node for the k th from last job on machine i
Example
J1 J2 J3 J4M1 6 4 1 3
M2 7 5 2 3
M3 3 8 5 3
gum:# knew
in; ¥,
m
÷÷⇐¥e*÷
R|| PCj
• Can be solved as a matching problem.
• Left side node for each job j
• Right hand side node for the k th from last job on machine i
Example
J1 J2 J3 J4M1 6 4 1 3
M2 7 5 2 3
M3 3 8 5 3
6710--11
*¥-8 : mi
Io
'Hea
Og ' Mz
problem TO o }On
don't know 90g'
Mzhow many jets 2
on each meche o '
04
R|| PCj
• Can be solved as a matching problem.
• Left side node for each job j
• Right hand side node for the k th from last job on machine i
Example
J1 J2 J3 J4M1 6 4 1 3
M2 7 5 2 3
M3 3 8 5 3
@ostCjgMi.k )K - Pij
xosg÷÷÷÷¥¥¥i÷¥÷E÷¥¥¥i÷Ty O
'est,
a :c:* ¥¥¥¥m
÷**e÷÷ .
LP for the matching problem
Variable xijk = 1 if j is the k th from last job on Mi
minmX
i=1
nX
j=1
nX
k=1kpijxijk
s.t.
Each job runsmX
i=1
nX
k=1xijk = 1 j = 1 . . . n
Each machine/slot has at most 1 jobnX
j=1xijk 1 i = 1 . . .m; k = 1 . . . n
xijk 2 {0, 1} i = 1 . . .m; j = 1 . . . n; k = 1 . . . n
• Note that the may be unforced idleness e.g.
J1 J2M1 1 1
M2 10 10 it ③
Q|pmtn| PCj
• Algorithm is SRPT-FM. Shortest Remaining Processing Time on the
Fastest Machines.
• What about preemption in other models?
• P – doesn’t help
• R – NP-complete
rem
¥¥.:÷...H oY O
I¥'s
insistentTugit 4 's 7 I