Tải bản đầy đủ (.doc) (14 trang)

PHƯƠNG PHÁP PHƯƠNG TRÌNH TRUY TOÁN VÀ CÁC NGUYÊN TẮC CƠ BẢN CỦA QUI HOẠCH ĐỘNG

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 (130.03 KB, 14 trang )

Quy hoạch động

 !"#$%&'#
(
)*+,- $"(./0123&
456789:;<=!*7>?=@
:/:(-AB'BC$B':(-:
DE!,<F
3(:(->:(-/G:(-H!
+I$/!*J<=:(-$:(-H
<F7:$"KL
IM$7 8%!+,A:NO:!
B 8%C<;:!B 8%
C
PQ$*<=,RA81S?>.G@C
+,>87#87>$, 8$ST>@$S>$O@*
$1. PHƯƠNG PHÁP PHƯƠNG TRÌNH TRUY TOÁN VÀ CÁC NGUYÊN TẮC CƠ
BẢN CỦA QUI HOẠCH ĐỘNG
1.1 Bài toán phân phối một chiều và phương pháp phương trình truy toán.
1. Bài toán phân phối
U*7# :(8RLO?> :>(V0W:(
#%@X<=& $ C8J, EMO
:(#7%C@X<=.",
U+IO:($"A#@X<=L7@X<=
$K&GYZ[VL\@]C!^_;:K@$KM
<`&a%.C",
0?!#<
Y[[\
Y[[\
Y[b\
$'!%K!N$K8RAc(>


 :>S:V"C=$@:(@X<=
Y\$$/*YL\
2. Phương pháp phương trình truy toán
%(G!(>H#$/O#U:
!$"@:("$@@X<=LK>+I
/!$S:>#$L:.>G:%Q

J*9=$$L>/K
#D;Y[b\$Y[d\eL:.>;:(V>JN
O:!7:V(#%#WR37V$":.>;:(V
Vf
gC@XVV:(:7K$"GLe#!,8V7>
@hV@]@X<=@%SS*Li[
hJSLi[&KQV(@*:7KV
GL7S.$"LRV
j:
VV
L$S:;!*KL!7$ L!*K!7$
Y[k\/:#T!C
C!*K!^:
37V<*$:Y[k\V>@#:V$Y[k\
V$$VAG$S:"8V
A@N$::(T.@I+I=<"O:
1.2 Các nguyên tắc cơ bản của qui hoạch động
$l #a
9#!"U:(8 >N
a!"C*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