is
( Z6 U9 [6 p3 ^5 Plocal links,rechts : integer;
9 Q7 a$ y# N7 N. S1 J2 G! Edo% U9 F6 _4 g" m/ g# c3 s2 X6 @) w
if @.standort.nf(1).nf(1).voll
! m) J ~; |: N: p% Z- B' m and @.standort.nf(2).nf(1).voll6 ^. l& v& X! H' ~5 e! c1 Y9 K m* p) d$ l
and @.standort.nf(3).nf(1).voll& p4 @' ]8 s/ z: M, c& _
then6 J A7 i; A i/ S4 y' S8 k$ A
blockier_merker := TRUE;, A. k. L) D, \0 p) O
else0 r5 D. P3 [% E& ~- R7 R& X3 j; d
if @.standort.nf(1).nf(1).leer
. v# u5 P7 C2 i3 N% m w! a) I then
7 H, x3 s7 |: ?; O @.ziel := "ap4_C"; g; ^! g- z) Y6 c1 L/ A' M* l* e
@.umlagern(@.standort.nf(1));0 _) \% T0 J6 O' G+ e0 W& W
else# D0 u: }6 I; D, x
links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs
t+ A+ |% x5 ]) @+ C+ Z/ I + current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs
Y; R& o) U, b1 a + current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;5 a+ s& j4 {# j9 K" u
rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs
% u5 E/ M! K+ s, @; m + current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs ( V, s) d, g! c( i5 F5 Z$ C
+ current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;( Z4 v# ^8 `# K
if links > rechts
. i7 Y( {! j: k then
0 D6 }; Z: ^6 H5 S% \5 G; V if @.standort.nf(3).nf(1).leer N* K0 V2 H R( ~% f/ e6 H/ b
then
6 `% Z; r' _ s6 z% N5 Y( x" m @.umlagern(@.standort.nf(3));
: D& J0 M7 t0 E5 G3 t else% k' r! Z, e0 i" ^0 v
if @.standort.nf(2).nf(1).leer; z/ ?. K5 a- ?: I
then% C$ @$ d$ j, m7 q" @) `
@.umlagern(@.standort.nf(2));" n9 I6 M# _, e2 I. V
else
4 d3 l! w8 @- x! Z* I2 f @.umlagern(@.standort.nf(1));- t1 _) e$ z1 a b2 P: ^
end;6 ~- k! J' `" h( P
end;
$ b, c/ E$ |7 f& {* } z9 _* E else / b) R. J0 T3 k
if @.standort.nf(2).nf(1).leer
$ X8 R) x- Y9 N- Z- T then' l# p1 P5 {4 `; D
@.umlagern(@.standort.nf(2)); Y+ ^$ v9 Y8 _- z* e6 c! ]
else; h( X, R* }' O2 G' I* v5 k9 e; g: w& y
if @.standort.nf(3).nf(1).leer: T( c' o6 ^1 }- R: b
then
2 J8 I2 f% G$ U8 K/ L; g" g @.umlagern(@.standort.nf(3));1 v8 f& G& x- L% E- d! w' Q2 N
else0 Q! E `1 D: v1 D G
@.umlagern(@.standort.nf(1));
3 _" e9 i# E. V [ end;
4 X: S; i* M( U/ c2 a end;5 f; C& j$ o9 T
end; 2 `* G, \9 l: u3 Q; R
end;9 G& P6 s+ @& {/ u( ~& _# ^
end; ~; k2 P. a* l6 ^: N! z2 P& x7 w6 P
if ?.leer6 j6 N, }$ U- o% \
then0 j8 K N" u: P" z2 m. n' M
blockier_merker := false;
: P" H/ |/ j" q# r, iend;
* V7 X1 H9 Y+ B. Nend;
! ?# d$ H0 {9 `9 X' x7 `+ }2 M( C j大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |