is
- S# l1 }: b( l, \% Wlocal links,rechts : integer;
i! c$ \8 B( {& o' ldo
P$ d, i3 G, \: A9 T- p3 q3 H if @.standort.nf(1).nf(1).voll
8 g9 F h: @% ~' n4 z4 e and @.standort.nf(2).nf(1).voll% n* C( c: Z4 v4 Y; `( ]: I! x
and @.standort.nf(3).nf(1).voll/ ~& ?' f H1 w
then
: b8 @5 v6 j( J' B" \3 }* c1 b blockier_merker := TRUE;/ M- u/ Y: v4 ^+ d, T
else
/ a, s( Z" q$ n- e& B9 c if @.standort.nf(1).nf(1).leer B/ S V: B) S. O
then
% R. n" C9 a, c @.ziel := "ap4_C";0 a0 q: x* }3 z. J! t
@.umlagern(@.standort.nf(1));4 @* P( O0 ?$ O0 F" V
else
. o! b x/ Q, Y links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs 6 e1 c8 F, X1 b' _- }" L$ D, ~; m
+ current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs
; x9 v7 i% }2 I- b, N + current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;6 e5 Q$ S4 Y/ t* [3 p) |3 o
rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs
5 r, d2 U) ^3 }; z5 u+ b + current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs & W2 r5 O! U5 D! `! o: U) j$ l) `
+ current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;4 ?% K8 g/ M( B* R9 r/ k' _8 B
if links > rechts # V# \- S1 `) C6 C$ p, \! |
then% |4 q: V# D$ V/ @
if @.standort.nf(3).nf(1).leer
) p1 t2 {# C5 s. F1 F6 s then& N: z, W6 t6 C8 n' v: m
@.umlagern(@.standort.nf(3));
/ R0 w4 Z5 Y% z else& \. l& S% C6 H! [4 B% a
if @.standort.nf(2).nf(1).leer
5 |( A0 i* Q3 k9 f: g$ l, K& n then# c& d* w4 G; n) V% H
@.umlagern(@.standort.nf(2));& x& @5 s: R. d0 M- q5 ?
else
0 ~2 u' Q+ G5 q3 l- p @.umlagern(@.standort.nf(1));$ I N8 L7 t& b" T0 |
end;( e" T3 R8 M* }1 @' _1 @
end;2 R# W" {; r# E& b) O
else
3 p' ]. i3 x2 R ` if @.standort.nf(2).nf(1).leer
/ t1 z6 C# g4 h% P, @: c then! a5 F7 W5 n7 O0 ^& Z4 {
@.umlagern(@.standort.nf(2));
5 V6 g/ D8 ^+ j7 V, S+ d% @, c else
* M3 G: X. k$ q% l5 F if @.standort.nf(3).nf(1).leer/ ?4 v3 U( I' `2 t8 K
then7 P. n# h2 x% v0 b
@.umlagern(@.standort.nf(3));+ @/ a: }7 K) Q6 O% K' g* y
else+ W8 o1 j9 S; z( ^% B3 n( l
@.umlagern(@.standort.nf(1));
: q; [/ H$ G' k% L( a ? ] end;, g3 x" ?% M$ \/ w
end;
7 P; Z* S8 S/ P" [2 O end; 8 ~2 i. a: }/ u; E6 V
end;2 F' z/ G4 M$ }* H5 ^
end;, F) P/ |: n# ~. U' H
if ?.leer
. ?& [9 t' l- T% [( }7 l {( _then
+ k& K( ^2 B) C: M, f blockier_merker := false;& [- e+ j5 u! ?6 D7 a
end;; R! F% p: {6 ~' U9 k+ ]' i
end;
- Y* C, W2 g/ C1 Z5 K. F大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |