is
6 o$ _, d6 f. O1 K0 u$ l8 @local links,rechts : integer;
$ p0 x, }' H- M, Fdo3 R2 v _4 z1 P" R0 w
if @.standort.nf(1).nf(1).voll2 l( {: E2 @7 t. ~
and @.standort.nf(2).nf(1).voll
) P* C' \: i7 H9 f7 G( j# q( F/ m and @.standort.nf(3).nf(1).voll J8 Z: v' z3 d1 F
then
3 Q2 ]$ P& K$ z blockier_merker := TRUE;
+ Q( M0 q6 _- y, ?$ Q; p else
3 t5 _$ l4 e0 { if @.standort.nf(1).nf(1).leer2 o7 y" J. m) Y6 l- V
then
- L, \' z, ]: f/ s @.ziel := "ap4_C";( w7 e6 d4 b- p- }6 P$ {+ S8 U
@.umlagern(@.standort.nf(1));: ~7 t9 |, r; H, ^) o' P% l
else
, E+ d/ {& M, a/ |4 R1 L links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs 9 `, {' i5 }/ I9 V7 O! h. ?
+ current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs
6 H: I6 j4 s$ u7 ^/ W + current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;+ ]+ n1 [$ ?% L/ v
rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs
' X* r) ~& _8 M: x' k* T# ] + current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs
8 G5 [0 |& i: o# g: y7 S + current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;2 H c6 z R! O2 i1 m
if links > rechts
# G, k" X4 f# M: x then
4 E6 p& b$ s( B! M if @.standort.nf(3).nf(1).leer3 C3 z& u$ ?7 T& S9 k4 _' W% T8 M
then+ X6 W7 N# U9 J( |9 M
@.umlagern(@.standort.nf(3)); * w2 {# v: X$ E3 D/ s
else
) E0 R9 I' G% F: J/ v if @.standort.nf(2).nf(1).leer5 [9 v1 ~7 l G6 {/ t, q1 [4 d
then* i) N( e; A! X( ?4 u# k
@.umlagern(@.standort.nf(2));2 f, i2 A% A0 Q6 K7 r
else
' |+ w; M0 ]) }1 s* ?# P @.umlagern(@.standort.nf(1));6 S2 S) o: d" d
end; n/ t `( H+ w a% {8 [# O
end;
. f4 b1 z- y1 j8 F else 4 [& R% i. `% p) \ T6 V; I
if @.standort.nf(2).nf(1).leer
5 i* J7 x: R& p6 m" r/ ^7 e then
+ Q3 s! X& W7 |% r @.umlagern(@.standort.nf(2)); ( C5 q: V" W) N8 y$ @- K
else$ b, M' N; [5 A. w2 @& V
if @.standort.nf(3).nf(1).leer
4 j& i& Z" V" f3 c% i then4 N6 Q, o: ^1 ]* J
@.umlagern(@.standort.nf(3));
( [ N/ g3 c6 d8 Y- B4 r# K; J else G6 M l3 }. d/ r! P1 H/ I& u
@.umlagern(@.standort.nf(1));
2 j7 w- \- ]4 U) f% h0 H! z end;6 d- Z; q& g) I; k; E4 M
end;
. V; G$ b. p- O) g1 o3 n* v end;
' W! Y. k* O& f" D! K end;
" ]# I9 b; o' u1 t7 X& ? end;' u9 D4 Y0 U1 O* `
if ?.leer2 v+ n; L9 _! j* A) S2 \2 o
then
8 T1 a7 F% h+ r; ~ blockier_merker := false;( C9 {! [% v+ a& r7 f
end;- E5 f. i" \) P" M9 q, l
end;
% W6 J R) L O大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |