is
6 |% Y" _6 k0 p Y! d$ s } ylocal links,rechts : integer;* }4 i9 E! l0 S; S Z; {
do" U! L: s: ~2 |4 V- t0 Z# @
if @.standort.nf(1).nf(1).voll$ D6 A; D3 w m; T% ~
and @.standort.nf(2).nf(1).voll
; `& @7 \+ B- [" a* b( R! m and @.standort.nf(3).nf(1).voll1 w8 ]# |8 H( F. Z+ q r
then
1 ~, C+ L* G+ L1 d$ w# c blockier_merker := TRUE;
" B- V F1 ^" U/ j' U else
7 i6 v& I; Y- G( A% T8 n. l- V1 W f if @.standort.nf(1).nf(1).leer/ m g% @. L, w0 V4 e' Z
then* a% ]0 V/ l k9 A# ~
@.ziel := "ap4_C";
) d$ J# I) V% x% I4 { @.umlagern(@.standort.nf(1));( E+ `) x9 z: `
else0 w# b r1 z8 }
links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs ' Z% h( ]% {2 e
+ current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs % J" T& N* O" B: f7 g" X
+ current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;
2 U: ?) s% T! M2 T rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs
* S2 j5 {4 R5 n) r6 b+ f7 j% U! l + current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs
. G2 q' Q$ C# Y$ v: W* w + current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;; _# ~0 E5 ^( ? {
if links > rechts 4 n" D Y" C+ q3 `# Q$ f
then5 ^9 I0 o; Z- M, F+ r
if @.standort.nf(3).nf(1).leer3 U7 g$ E: v+ n
then
/ y$ c+ ^* l5 F9 Z! l8 H @.umlagern(@.standort.nf(3)); % E6 g7 E- F$ U% }
else* \- D3 i& ?1 Q, A# y
if @.standort.nf(2).nf(1).leer8 k; Z$ ?2 }3 A3 ]! f
then! |5 G# R/ ]1 @' [+ x2 K9 Q
@.umlagern(@.standort.nf(2));
; z I* Q: t2 k( Y else- ^6 x4 ~: x l/ W0 q2 @ D
@.umlagern(@.standort.nf(1));
) f1 y: e5 X8 b$ w% u$ d end;
: g2 O* w2 R g% v9 Z9 T4 E end;
& L" z( C* j2 u7 C else
$ O* V( o3 |3 E1 V) u. t if @.standort.nf(2).nf(1).leer3 G4 P+ F6 g2 s8 h
then D7 w- Y% n* U
@.umlagern(@.standort.nf(2)); ) C" r- l3 E- R' }' p9 N
else
7 Y5 X" N) a& p if @.standort.nf(3).nf(1).leer$ ]+ U; F. A' U; ~% _; q) h$ W
then% F' X: z: \! n4 N* p c& L
@.umlagern(@.standort.nf(3));
# Q! g5 N+ ?, {5 j3 N7 m+ x1 e else, a6 ?) @# [' f- ?' f" X
@.umlagern(@.standort.nf(1));
$ ^ o. f2 V' G7 i% ~! ^4 j6 e. R end;) _7 a Z, h. m8 [$ g6 `- j
end;
( I9 g& y/ C9 K: `8 n/ C5 _- M end; 2 M+ H8 G) M% M) R: m" M7 v3 H
end; L0 P7 J: g8 f: L3 K! [# H. Z
end;
8 D& L) d( o$ M# P( e# D8 Bif ?.leer4 f% E# E' a1 {' f% n2 [
then% v0 r1 ]6 a6 _( E5 R/ r
blockier_merker := false;
6 @" X C9 E7 H9 h) n% z5 ?3 Xend;
2 j) R) y# \% m `+ m' ?# s3 `( S, nend;
* D7 M- O* A5 {大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |