is
# o: v8 A" E4 B! _ G$ H/ _& I* clocal links,rechts : integer;
$ A7 j l/ c7 L& Rdo
( h! w0 j6 k( R: ]' Y if @.standort.nf(1).nf(1).voll
% B( j) O* s% e9 z% Z( M' S% { and @.standort.nf(2).nf(1).voll8 c" N |; _" `
and @.standort.nf(3).nf(1).voll! v( v* n D3 U" b, s
then
, v+ I! ^6 v' Q. U% a! P) y B blockier_merker := TRUE;
: t* q0 k! r! _( o else
; Z( w' a/ ~. x; B) f if @.standort.nf(1).nf(1).leer2 B$ L( B; z2 b, N. u! A+ C
then/ q. Z4 C+ M- p( O/ ^
@.ziel := "ap4_C";& l2 h; N# l! G
@.umlagern(@.standort.nf(1));
5 j! X; G7 B! G/ ^$ N) O else
( |4 t p9 _% F, p; _0 ] links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs
( R4 x/ C$ K; _+ w4 s + current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs 1 G$ ~2 A; H/ J8 B) d
+ current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;
& c. w3 o9 A# ~9 C9 M$ k2 u rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs
4 D5 V, R3 ~) S r- l + current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs
, D8 n5 n' f9 L# j5 Q3 c% B' z/ g + current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;- X! h9 U8 Q: E! }" H$ Q3 j6 V
if links > rechts 3 Y3 p( {% |4 X" \! E _
then
x2 f, v/ s. o% V3 p R7 U) C if @.standort.nf(3).nf(1).leer+ B5 h, ?, {* S
then
x" w5 C L+ f2 ]- ? @.umlagern(@.standort.nf(3)); 8 Q. M9 x7 d' P0 i# y
else
3 b! S& k: Q/ s if @.standort.nf(2).nf(1).leer
) Y' N) K# O8 S! X7 b then% I% G* h8 h: f( s- e
@.umlagern(@.standort.nf(2));. b v+ N$ | _! F9 q, F
else
( {$ R7 d* F. n# R3 c+ I0 X @.umlagern(@.standort.nf(1));8 B% m3 @# I2 H U% [5 S
end;
7 a% m' d# n+ Z6 |: {" ^, q( z, [ end;
' ^5 k6 b6 \$ _, F/ i else , f+ B. |& E B# g! S
if @.standort.nf(2).nf(1).leer% R5 }1 p( C+ s
then3 y8 I2 c6 u0 B) T5 c
@.umlagern(@.standort.nf(2));
7 ~5 F, E/ ?. f* H else
/ ^, v5 {) S1 L if @.standort.nf(3).nf(1).leer
! [: A( {% g5 n/ N1 F. S then
$ Y( Z- z! U- F; ~ @.umlagern(@.standort.nf(3));
( a# j1 E; p" s0 I" ]7 \ else
; }+ w8 @( L* l; o# q; ] @.umlagern(@.standort.nf(1));
. c+ x! [4 a' ^: u! E; d end;# D D) `) o+ J3 t) {
end;! x! I8 x" T3 F" G0 ] H2 G
end;
; [$ C6 N6 U# Z6 ?- J( ? end;( `. B. I% f, [% X2 d( \
end;5 }$ }3 s$ [; V2 P6 m
if ?.leer
6 ^4 {% H8 `# d# ]3 g/ Q0 G% {' q2 B" ?then
& m1 B; Z$ f( M H blockier_merker := false;
6 F; {( U% A# M- cend;
5 [7 @0 X% |4 mend;
8 V' |- V$ E3 {. n9 ?, [% j) x大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |