is
5 f+ e' O) j Jlocal links,rechts : integer;9 b4 q: y2 L' S: e
do' g9 Y- E( x/ _" d4 S9 Q) @5 L
if @.standort.nf(1).nf(1).voll
7 Y2 ?) \. G; ]$ y8 }$ c: y: m and @.standort.nf(2).nf(1).voll
' N9 S3 s" E* v+ }3 S" l2 b and @.standort.nf(3).nf(1).voll8 ]: Q t) l1 a
then9 l/ M4 W2 r D. N* D, @ [) H
blockier_merker := TRUE;; k. k" c2 \5 m* S
else( r: C! T q4 u6 V: I; Q
if @.standort.nf(1).nf(1).leer
X. h4 ], T. u2 j. C6 Y then3 {4 z! b# T- L" Y4 K( q; }3 u
@.ziel := "ap4_C";
8 h# {2 l; z) v5 F @.umlagern(@.standort.nf(1)); W& B& \4 o/ v( U5 w
else
9 I/ H! G1 e( S) M0 ~" F links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs
% w' ]. G* K* T; G- P6 D + current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs 2 C7 m, G4 a* W5 A& z: M
+ current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;" `( w# T/ }# n6 h: ~
rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs & a2 n/ P. G$ r {! M/ q6 g, |
+ current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs
S4 X" R9 Q5 u + current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;- y. M) v; @, Q0 g6 Y# ]
if links > rechts 4 t! K. p( u- |
then
3 i; \9 v5 k2 l" \2 P, _( q4 V if @.standort.nf(3).nf(1).leer
4 e! R, m) H5 g* {' g4 Z5 o; @ then9 ^- K6 G1 t7 y* A! K" F6 ^1 ]
@.umlagern(@.standort.nf(3));
' e/ E" f7 y |: c else2 F O; B ~' L- |6 Y
if @.standort.nf(2).nf(1).leer
0 k9 X5 u4 q" l6 G4 J4 z! r+ {; e then
6 T& }7 M. `) {# x @.umlagern(@.standort.nf(2));+ X5 k+ n, L* T( T7 B, [$ P
else
6 q3 @7 [0 J* ?* h5 p! t @.umlagern(@.standort.nf(1));
, F9 H5 z$ t* F7 H3 g" m end;! P1 `3 W- N, U+ ?- s' R
end;
1 n% Y, g. O1 E else
4 }- {9 Z! z& e. p4 m) v if @.standort.nf(2).nf(1).leer
% E F* j/ r8 U then
2 m) L9 G# ]# A O @.umlagern(@.standort.nf(2)); 8 m) Z+ \' A4 f. m$ U6 ]' k7 x A
else
, N; F( x, _' a: ]; W if @.standort.nf(3).nf(1).leer8 x& I$ X' j0 }( y0 X
then
" \$ Q# j& U8 |8 F. q2 ?) G- P8 ~1 C @.umlagern(@.standort.nf(3)); l5 U& e8 J3 O: d" d4 f
else. v7 Q0 v9 a' a* P
@.umlagern(@.standort.nf(1));
5 b7 d% {* f1 H end;
7 N3 A0 o; T& b end;7 Q' k5 |8 L6 i9 \; o# q1 M+ w
end; + ?: \! b) X$ I8 A. A3 A& @4 U( |
end;
- ^* w) D* x n end;0 \ g9 w- |: J/ n
if ?.leer
& g9 [6 G: w$ G8 I' `' Qthen1 f; g e0 d5 \! b9 p+ y
blockier_merker := false;, l( \5 G m4 K8 \, {$ D
end;
7 b' i: q4 z" o% s1 ^/ Q+ z& M$ Mend;
" y& Q- g; c6 Q! F; {, s大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |