is
* u# n7 j3 g/ u" P5 R. `% J) }local links,rechts : integer;' c7 ^5 A8 Y" r# Y/ v& _% T" V
do5 T" z3 o u2 [6 I
if @.standort.nf(1).nf(1).voll( ]* E7 s1 ~0 t4 g; F; T# ?
and @.standort.nf(2).nf(1).voll$ E* [9 w- X- h' D2 n( }
and @.standort.nf(3).nf(1).voll
4 z* p- f; D/ o1 p$ c- h then
5 F( m* |( M- I' x- J blockier_merker := TRUE;
* k+ u! z5 E: i7 A1 v else
, |' `) A D$ ]9 G$ M! { if @.standort.nf(1).nf(1).leer* o* {6 V+ }' ~
then
; E- a) i0 M( ?; k1 y. _ @.ziel := "ap4_C";" } h) @3 }9 x) R
@.umlagern(@.standort.nf(1));
; B4 W) W# j; W4 _ else. t/ N7 ?, @( d1 ^ b$ M9 a( \. ^
links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs / y. B! Z1 W/ H
+ current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs * f+ }5 N) ]' q3 ^4 y/ o4 c
+ current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;
3 D) s5 Q" @. k& F rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs
3 K5 q$ C( l. y! Y+ V" v6 W1 n + current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs
' [; L# |/ u, K, z$ p$ l + current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;
9 p% p- ^4 X$ ]4 z& Y if links > rechts
) z+ N2 ?& w. r: b- u3 q6 V then/ L; H" B9 ?* K# t/ n
if @.standort.nf(3).nf(1).leer
+ }* ?3 s3 D- l* E* X# S6 n# H3 U" G then1 F3 y* z" S' ~% b
@.umlagern(@.standort.nf(3)); 3 G5 {( L! W6 M" }, t* b7 x
else' ], J/ k4 d. Q) L: J% x
if @.standort.nf(2).nf(1).leer6 R, m8 j, Z- ] j* p$ R
then
+ A! @' U v* u1 J, W$ I* g4 a' o @.umlagern(@.standort.nf(2));
" {' d S$ q1 \/ V else# _7 d* ]' g9 d# V
@.umlagern(@.standort.nf(1));
1 u% l) ]* m4 y' S end;+ h+ l, U4 K# a( g
end;
) Z! ?1 j4 l+ g) ~# n3 p8 M else ' W1 y& H+ Y/ U z
if @.standort.nf(2).nf(1).leer" Y7 A' A: `' ^
then
) S( s8 m, @9 ?; F5 b1 ^) t( n @.umlagern(@.standort.nf(2));
) R4 ?3 `. @: v( I else% e, R/ _% C8 i9 r! x8 v
if @.standort.nf(3).nf(1).leer4 Y! \: c& f) X' I: _
then
& D: S) }5 U q" W @.umlagern(@.standort.nf(3));
# ]3 e) G' v$ }! i7 o3 s# y, w9 o else
' M" u. q- q, g2 F; v* T3 D @.umlagern(@.standort.nf(1));6 E4 A2 y9 G4 M! V
end;
/ b) o( C' r! ~3 h8 v end;8 V8 h( b5 W4 J" G5 ~' {
end;
. w& a7 C1 J2 r& [% u! _0 A end;
9 P. w3 B$ f& I% d) \ end;3 G/ C+ R3 k3 E, B
if ?.leer
, m1 S$ J" ~6 {+ E/ {then
U. t$ Z6 I X7 M( h4 w blockier_merker := false;4 W: Y# P' t% H/ t* }4 i/ H
end;
7 j8 A' U6 Q2 d8 j! }end;
7 D% l/ \2 O9 V# r大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |