is
" b" f9 D0 V# e6 d; Y. Nlocal links,rechts : integer;, q4 g" q3 x; q0 k7 e# H1 [
do
6 W8 ?- Q" H" V; \ if @.standort.nf(1).nf(1).voll3 R9 c% O0 a$ Z, ~3 b4 R, R' Y
and @.standort.nf(2).nf(1).voll
4 C: Y; H7 u! a' x& _ and @.standort.nf(3).nf(1).voll
" J% h( r8 P8 Z( ? then
* }8 P" [7 u. w. z: Z" b2 }5 ~7 D blockier_merker := TRUE;, ^: v* T9 C4 z- T; {4 R0 b6 F% ], _
else; A0 F J; g# v: D$ v
if @.standort.nf(1).nf(1).leer
5 ~- {. T0 g# h0 G( o( [, n$ M then3 [/ T4 M1 C0 z! {* k, d
@.ziel := "ap4_C";
, p- Z8 }3 `6 X- J @.umlagern(@.standort.nf(1));
+ _- h* z5 i6 c3 V2 Q* W. z/ m else
7 z. s- _% Q Q( I1 v links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs
3 `+ p2 J' m) p) h7 B + current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs & W0 J j7 {- g# X2 q! j9 U
+ current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;9 Y6 _$ ~0 ^0 M, L& P
rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs 1 u& Y* G% O5 T3 ~" u/ Q4 L. x
+ current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs
* }8 ~, l5 h; r5 T; f + current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;
& C0 K/ t; t* Y% U( K* }6 e if links > rechts ! K9 n T8 _2 s; v$ w' R
then
* L/ X7 f6 I! c. v0 c& @! C if @.standort.nf(3).nf(1).leer) K3 P2 s' [* D4 _9 G; a2 B' o+ ^. R
then
% n9 y$ n {; {; |: ^; D8 |2 m @.umlagern(@.standort.nf(3));
6 ^/ T3 e# N0 x$ v* l7 r+ b& K else
" H% P. i4 e1 e; [' z' T \1 y' D if @.standort.nf(2).nf(1).leer+ o4 w: \& n3 Y; e( q' G
then+ _3 d3 Z5 s; @. D1 |) ~5 _/ Z
@.umlagern(@.standort.nf(2));5 {& |5 k5 n$ I# o! c+ V5 ?4 e
else+ X( r) g9 A$ D- h! T' V
@.umlagern(@.standort.nf(1));: l2 }; {4 @% D7 f* e
end;1 n* o% ^( O% e2 j+ f5 Q
end;
7 E9 O5 z& U$ ]9 c0 d else
- t# v g& s; v* M6 |8 C( d if @.standort.nf(2).nf(1).leer
) j0 w7 X+ ] ~ then( k* [: `' G9 p: U0 A
@.umlagern(@.standort.nf(2));
6 x! b% i0 F6 z# t- ~& U, w6 G5 o else
$ w& h2 k# G4 D if @.standort.nf(3).nf(1).leer
g+ X6 F5 }5 A% z then
$ o5 [9 ]% y- R1 u @.umlagern(@.standort.nf(3));6 c7 a- m1 G! K, G" L6 v
else
9 ^, \. V3 z* }+ G, N @.umlagern(@.standort.nf(1));
! W2 j6 F+ z- C- E! e+ F0 d end;' W7 M* L% v2 I" n
end;7 q1 c7 _ O6 g0 Z
end;
0 S. Z: O: j7 z: y0 B6 w# t$ _ end;: B/ s0 h8 o0 k& X& y) L" X
end;4 L3 w: }+ X$ x
if ?.leer
" F+ J9 W$ i$ |5 j8 f2 Zthen& e( t2 z5 ?4 C' w: G- T
blockier_merker := false;
- U$ ~1 Z5 a8 b. @% i7 L3 R4 ?end;
( A6 m- n0 `) x, k1 |( z. M: Xend;
7 m3 ~; \7 l( ?, [大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |