Tải bản đầy đủ (.ppt) (22 trang)

ÁP DỤNG THUẬT TOÁN TẠI TRẠM SẢN XUẤT VÀ TRẠM TIÊU THỤ ĐỂ MÔ PHỎNG QUÁ TRÌNH LÀM VIỆC CỦA HỆ PHÂN TÁN

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (627.02 KB, 22 trang )



Đề tài:
 !
"#"
GVHD: PGS.TS. Lê Văn Sơn
Học viên: Nguyễn Minh Quỳnh
$%&'()*+,-+.&(/&
0
%1%(+%,2
3
+%4(56-78%(9:;&<(9%,2<=%(>?@
A
+6&?'()*


B
%1%(+%,2C$%(D/&)$EF7DG+:H&<(9I&+
J
/GK%L77M&+(9D&<+,(%&+=G-+.&(/&



 !"#$

 # %&$'()*+,* /0
1234-5(6$78-"' 


96":$;!< .6/=>"
' /$:$?!"#$%


"'$@-#AB CD=EF
3.'5@(<:$%FG
9%,2<=%-+:H&<(+NG(>?@

HF$I5!J?&!J
!/;$KIL(:$
?&!G

$!C?AF'!/$ ?
=MM%(
(IFA
=<'?N&I O/.PG
O%4&(9PG

Q9,# %%$&/Fú3$I


R3SR/22'
)$!F#$
R3SR/22'
)$!F#$
)I$'-
;
/
;
:
?
Q9,
O%4&(9PG


$5$R3 R/22'T7?
<'$2'&IGU5R/22'&<-5R3
E$&/FQ9,GHC?E$<E$
VL#$

)I$!F#$TW E=B$!F5
 ?  W -6  #$  .  /F ?
2+R2-2G

)I$'-T%$&/F?)*+,*$!"
'!<G)I$'-Q9,F/FF
!J/F?$!2-5!R2-2G
+%4(56-<%@DE%,&(>?@Q%&(F9R@GFS

Đối tượng từ xa.:$!J5.X$'
Q2!'2

$'#$==!3='"C$T

Y$'#$=/$3'3

Y$'#$/F$Z$-$G!GQ2!'2

9L(=/$3'-5!'[C
/!C''< Z$-$G!GQ2!'2\#2'G

]:$?#$T=/$
3'./$'Q2!'2G
.TEU&<G/G51-G$%KV(G/G<%@DE%,&(>?@


^"$!:T

]$3'.X"!J$'#$

_W`$?#$

.X(L#$G
$%KV(G/G-+:H&<(+NG(>?@

U5.X?#$=.X=
(N/$3''$'
#$G

$!C?@W=-T./3
/a:$b$-$G
Lưu ý :H(63JKL'
4!J(6O4!Jbc9P@/L
#$G
/GKW&+G/GKX%(:Y&<EWG+)Z

_?#$&!6-6@!
/I?<<G

?Q9,!J3J>/BOQ9,2CP?
#$$/F-5&F2'dQU
<e++'C+'3Z2$!2f7$#W?
6-6G
[\K]&<^_9F<%`(9T

)$/L%F!.E$5$

R3  R/2G )$ %   . V ; 3& W
!G

?6-6!?;/
#$;=>/B-5Q9,2CGgJ>/B
..!J;W-6<V@M
2!JhC?N#WG

b$-$'iV;%<'3J>/B'&
!;G_ <' 3J >/B  % > /B ?@ $ CA
6  ( ` 2$2Q2COP :$ 5
U'$2Q2CG


_!/%-L?#$
N>/BG

)<!/$4(
H$!G''/OT'+2j'j'kPJ$/$2
Z$-$G!GC2-2l
m5; %& .
FG
U.!J=/='-L#$G
_N='-. $123
R2-2C$h&.%$L?G
=EF?-5-VA$T

n& I V E= W   !J C? h  /F
?G


RA6F$E$hop
c&(-Q9,.!JI/F?
-5.b$-$
H!T=%-/F?$?
E$hKWN!5G
q6'<<!C=# <!&6!
rE;.!-:$ G
g$'s!T

m %tR2-2'<J2'&B$'h


m %;3ub$-$(><
t<!&&

cF  ; ! r & !. ; E ;
'<J:$
_=EF3.'<!C=# <!&6$CA
6!JC?.!C$T

tang(E) T>W&!J-W

cho(E,i)T2''F/W:$C%/\
5'X3u

send(S)TAF<!SG

receive(S)T<!SG
)<!C=#*RKC=#C=8!FT H*
vHwxH

)<!&6RK&6C=8!FT
H*wvHyp
z Thuật toán tại trạm sản
xuất PS:
c{X
HFreceive(CS)
tang(NC’)
cho(NC’,NP – N + 1)
san_xuat()
send(CS)
NP = NP + 1
]F7-{X
z Thuật toán tại trạm tiêu thụ
CS:
c{X
HFreceive(PS)
tang(NP’)
cho(NP’,NP + 1)
tieu_thu()
send(PS)
NC = NC + 1
]F7-{X
+26((D/&Ka&<C\<%b@(9M7`c&?2d()$(9M7(%e2(+Z

O+f%(MDF9)F90
O+f%(MDF9)F90

O
O
+f%(MD

+f%(MD


F9)F93
F9)F93

g@`h5%F&(KL(+UG(+%5,&+
g@`h5%F&(KL(+UG(+%5,&+
$&+I&++%L&(+WG/G<%/(9WG8&<(H`U^%,&
ij!klm#
nokp
[qqq

×