is. h8 `' R! [. M0 x& e
local links,rechts : integer;
6 I4 N* c+ |" G! o% _5 U3 sdo1 M8 l) y' V: X$ m; O# d$ G
if @.standort.nf(1).nf(1).voll
8 Q2 F- Z( R1 B8 U0 O, J and @.standort.nf(2).nf(1).voll
+ A( |& S$ u- Y3 }# e# O- B) Y1 \3 ` and @.standort.nf(3).nf(1).voll
# | [! Z; t G5 v A then& ?& S; J! \5 L( y* d2 r
blockier_merker := TRUE;
+ P# T+ D6 }9 s P2 u7 ~ else! j9 w3 p! S/ ~1 U
if @.standort.nf(1).nf(1).leer1 u. N5 B) x6 V% L1 P, N
then: I! q" U) e' h& q* h W
@.ziel := "ap4_C";! I1 f( E& f' h# y; V
@.umlagern(@.standort.nf(1));
5 ?5 ^+ l% l) j6 ^/ z/ ~$ V else
0 J$ n; r: Y. o. w1 }& [ links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs ( w! t9 N# n# r
+ current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs
1 [" U6 l- n$ Q( i/ `! q + current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;
5 ~: w, u' f5 I/ j, q: Y rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs
" \' [6 g# S4 ^0 T7 S + current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs
% ]2 i/ g5 a d6 ?1 Q* u5 b + current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;
$ V8 m( T c; H if links > rechts
2 _& h' x C1 ~% h f) _' y9 L5 ^% M, \ then
6 C9 z" q9 K2 a5 @ if @.standort.nf(3).nf(1).leer
+ r* `0 j* K x$ {9 r then
# L9 F4 Z! G* p: d& { @.umlagern(@.standort.nf(3)); 9 j9 D8 B& @- i B0 \; B
else" c4 O/ \. t0 M! _, V2 u
if @.standort.nf(2).nf(1).leer
$ s8 J L( M( S# Y3 `# _ then
2 Q7 l' _" V; J0 o! I- P! b4 L @.umlagern(@.standort.nf(2));
+ d8 q( o% u4 P) J) C6 w else% _0 B* v9 H/ ^
@.umlagern(@.standort.nf(1));
3 T2 l. h8 `6 G7 h7 o end;5 y# p. D. F; ~ \ K
end;
/ M- k( d1 E# C. j! P. J9 C X) Q, } else
% [% ~$ { q# ]6 w5 Z, q8 Y if @.standort.nf(2).nf(1).leer
' t- C' Z% u/ P5 V: ^) G) G then
% H# _" e/ ]" w @.umlagern(@.standort.nf(2));
6 Q( x0 M, j+ {+ A1 _# p else" C* h# d- j3 S( h0 \2 g/ ^8 g# y5 z
if @.standort.nf(3).nf(1).leer0 x5 Z; w4 Q4 x. ~8 f& [
then
7 A% h( ]% z9 x/ @: }5 Z @.umlagern(@.standort.nf(3));$ M5 k% d. P% p" A/ U
else
) C8 r: t" f o) Z& A7 y/ ]7 x6 J, X @.umlagern(@.standort.nf(1));1 _% W+ i0 I( n w. u+ Q
end;; v6 D L6 C5 ?
end;
; ?$ M+ A. }( g. a( ?/ y end;
" [* a, ^( V- F( _+ K- G end;
' R r- H, b0 T8 O/ ]. n end;, @/ G! w5 B* `5 S4 {2 ?. j
if ?.leer* z5 {# w4 z4 h8 S3 ~
then } Y& s$ e* v+ [
blockier_merker := false;9 H: | _7 P1 J8 j6 p
end;
( m% U {4 g" n3 T* Q6 c; Tend;
! K2 {% z1 |8 p% M) a1 b' `# d大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |