is
: _5 l/ s" K) k, z7 plocal links,rechts : integer;
^) ?% o! b5 g6 w5 o7 ndo
' O; ~/ |9 U$ @9 {1 ^3 H5 z. T1 W if @.standort.nf(1).nf(1).voll
$ Y) W& i. p B+ W: I9 g and @.standort.nf(2).nf(1).voll
2 a0 F* b+ A; f' p and @.standort.nf(3).nf(1).voll- e$ B9 {) y) J. O: A3 Z
then
6 C$ u7 K& P. m; G blockier_merker := TRUE;
) @/ f+ J% i" Q) |! P else; E. I7 n0 z% E" S2 g/ z1 b/ Z3 ~
if @.standort.nf(1).nf(1).leer# l# s! e4 \& \
then% e6 D. R% _% N+ x' ]7 L+ m5 r5 C: R/ j
@.ziel := "ap4_C";' a& @- |$ k* l# X5 o5 p
@.umlagern(@.standort.nf(1));
/ L" o8 ?2 E! I: J else; H) J( \" D$ N$ P$ P, y* H1 v
links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs
. V# d" q1 s7 X. u* p + current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs
2 [: F( h) o2 g- u9 G* X0 y + current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;
Z/ |3 H: h/ x5 j g! g rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs
0 Z& S( E/ U9 a/ f* n + current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs & D3 [. X/ \' O- |# B+ `9 L
+ current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;
7 N m! f/ X3 a' G if links > rechts 0 ^9 d g, ~" h d& m1 Y
then
7 o* @- O/ T/ O8 {4 T- U if @.standort.nf(3).nf(1).leer% R9 t" W4 V0 ?
then
0 a! l! N' g0 O- K @.umlagern(@.standort.nf(3)); . W% L5 A& h+ ?- h8 w) W! f4 m4 u
else7 g& a7 W7 W" M$ D _
if @.standort.nf(2).nf(1).leer
, ^# S1 c; v7 b! i+ A$ v Y& D. z then7 m. [" H# c0 H% Y9 U, [
@.umlagern(@.standort.nf(2));% T7 Q( A, v/ ?# y
else0 g' Q3 ` u4 v. z8 _$ e
@.umlagern(@.standort.nf(1));
V- Z+ [0 z( `+ Q* B! W end;( x3 g: Z: J' B m8 j4 P
end;
7 M/ }' j0 }. M9 Z) D3 \) k else & e2 j$ x& P4 o; H9 a% t
if @.standort.nf(2).nf(1).leer7 X3 [% B( K* Y, X$ L- l
then
( m# J: b: J8 F @.umlagern(@.standort.nf(2)); 0 [" c9 B6 Y8 f; S
else
3 a) p: D7 ]- _ if @.standort.nf(3).nf(1).leer
/ n2 F; A9 \" u8 I- U then
5 l+ y0 ?1 ^' I& Z% ^6 Q4 s @.umlagern(@.standort.nf(3));
9 Y- b1 V% c9 R else7 p# c" w2 Z- f/ q- y
@.umlagern(@.standort.nf(1));8 F7 k: h9 a* w0 R. u0 l9 Z ]
end;
" }, `2 J, F, p end;3 f" X5 I6 }! ] p9 Z
end;
, J$ z# P' ~8 |+ y! N3 A end;: B3 i' p/ {, |, |( Z& V; N5 t# _: w
end;* C; S' {8 f5 K" w+ F1 w" Y
if ?.leer+ t# I% y% x j' r7 w: m
then
$ {4 v7 e# M- s8 }' [ blockier_merker := false;
, u" P. V6 W7 @! j+ R6 q; w$ t, }end;
/ K, W7 E( u( Z% h) Z* bend;
% F. y1 z- @9 _% I! D! N+ f- [大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |