is
X; r/ ^" @% T$ u3 `. `+ }% Qlocal links,rechts : integer;( u' T9 L! G0 t
do
' b7 R8 f& R# { if @.standort.nf(1).nf(1).voll9 j ]3 X! S" f
and @.standort.nf(2).nf(1).voll7 e: e. c0 n* Z) z7 o3 s
and @.standort.nf(3).nf(1).voll
/ w2 Z& A, V- i then% ^* U- `. A, N" w
blockier_merker := TRUE;
5 T# f" H/ E8 L else
0 y6 {* s" O$ K7 @* B5 k, ~: i if @.standort.nf(1).nf(1).leer: a) z* w, ~- f$ i3 S) }0 {
then( a7 r+ s/ @; o8 `" f. g' K& |4 X* R
@.ziel := "ap4_C";4 P! i. i. v) t% q8 `
@.umlagern(@.standort.nf(1));
! q; O: C- i+ l' Z0 W else
- m7 O v+ e4 I3 t4 u links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs
w: G, W+ @$ L" m) c: ~& } + current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs 2 O9 l, A. z. F; b* [
+ current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;
4 Q& h4 V5 k0 k2 R; B rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs R0 G. h; ^& r
+ current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs 0 b- g9 `0 p8 D" d9 N& H) P9 k7 ~
+ current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;
3 F1 P' j1 E2 Y8 h# I. o5 b if links > rechts 2 J7 X1 K' P2 b( R8 O5 Z
then; x6 F8 h$ G. y! r+ Z, S
if @.standort.nf(3).nf(1).leer; a: X# w; G2 T# T+ g0 K+ g7 u) v
then
! M: P- i0 V2 P0 y1 C: { @.umlagern(@.standort.nf(3));
?, Y% J7 j4 F" b2 e; u( ` else8 v, G1 W. Q) t2 P/ Z; l* k
if @.standort.nf(2).nf(1).leer
s/ k N0 D/ C then
3 F* b$ W. b" Y* v, r @.umlagern(@.standort.nf(2));
3 ]+ w6 T [/ ]0 {5 u( e else$ c4 I0 v- L |
@.umlagern(@.standort.nf(1));
. @* K4 H, `( Y2 ]8 s8 b2 H& r2 s: H end;1 h* h/ a- U" v( w
end;
7 i, Y& E7 x4 t- S else 5 Q @/ `0 s9 G
if @.standort.nf(2).nf(1).leer
% b2 w- W" }8 ~) R& H then5 v6 E, v6 F% Y" M7 U3 c8 N
@.umlagern(@.standort.nf(2)); % I8 j7 r( Y. H( L6 N: R0 V
else7 I5 L* ?: T, O& P0 \# N J" |( F
if @.standort.nf(3).nf(1).leer. k1 r0 a% h1 D0 O! O% S$ U+ x
then2 G6 U: H0 h2 ]& ~# k$ q/ _- T5 G, W
@.umlagern(@.standort.nf(3));; J2 E9 F/ f% A
else
# A. m/ y# F" D" [/ a- c0 e @.umlagern(@.standort.nf(1));
, Z4 h. v( h6 ]/ \3 Q( N' ?- x2 } end;
$ [. f+ D+ k: E, s+ z end;
G) i5 q1 r8 J9 M/ P* D' ~! v end;
1 b. X! Q5 ]# O9 j end;' Q1 m' e, @# f# g- H
end;; O6 I/ r, J2 o; A3 p$ C
if ?.leer( C; ]3 E& m6 A
then
, V3 ]1 V7 w4 \ m1 q blockier_merker := false;/ ]' e2 {6 i7 K$ D* ?8 e
end;7 _: w0 J0 R) Q# i5 y. U0 k9 |
end;
# ^8 Q3 K" M: C大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |