is
5 b& e% E5 Z) e1 f/ H7 glocal links,rechts : integer;
. g! Y6 p* r- Wdo$ {) v+ c; a8 ]+ w. Z# v* M% e
if @.standort.nf(1).nf(1).voll
' v0 y* x* K0 I* b1 o" N h and @.standort.nf(2).nf(1).voll m8 a7 x& |8 G+ m1 B* c' \/ g
and @.standort.nf(3).nf(1).voll: _, {* K1 i/ k% c4 M
then
' {+ \& c* Y6 H: M& y# y: h blockier_merker := TRUE;. v* R) a+ Z: M: O( I+ S# F, R
else6 \; d3 Z0 H! \1 R' N+ z$ C; W" e
if @.standort.nf(1).nf(1).leer7 U6 h5 a9 w5 m
then
# A( w3 N. A# F2 d/ @$ B; ?8 T @.ziel := "ap4_C";
6 W+ m- I5 Q7 f G0 J0 F, [ @.umlagern(@.standort.nf(1));
" K3 k) f9 U/ s& w, D( t) T else) e. ]! p$ b4 V M
links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs % U. G& G* i! w/ Y, M* B
+ current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs
' l$ F* f$ W3 j" {- r; z3 [; ^ + current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;7 o M" N O8 ~+ g
rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs
1 z, a2 K& `4 ?1 A9 j + current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs
6 b/ H0 V" G1 O; Q7 W$ B$ i + current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;: O* M3 Y1 G6 F* a$ g! q! N
if links > rechts
; j3 [9 u( P) v* U6 ?2 I9 u# P/ L then* ]) ^0 W/ _) [0 }8 p5 r
if @.standort.nf(3).nf(1).leer, i& O. p# c6 U' c$ h
then
9 J5 \2 |2 i) W: J9 T2 e1 I @.umlagern(@.standort.nf(3));
7 r5 ^5 d c" L, J! G$ B4 ? else! o8 _6 g ^8 |' q, e( M
if @.standort.nf(2).nf(1).leer
: e. j! v3 Y* z+ Y. n then
1 d3 }$ `7 [% o; r& d @.umlagern(@.standort.nf(2));! x* S" k) F. i/ P
else/ {* ` H5 h3 A, @
@.umlagern(@.standort.nf(1));
; \& x" y+ o% y2 o8 x9 J) U# h) ` end;* ?, D# H; X7 ^% s9 O
end;
2 \# c( L4 J: a7 V* k- F: P else
4 ]& d. g3 F# w6 R9 k if @.standort.nf(2).nf(1).leer7 S5 @7 D* j( Z4 w4 ^9 M
then
; O2 h: O) Y" B. l; Y @.umlagern(@.standort.nf(2));
; B' [' S2 M* [ else
+ V6 K& S4 A5 q5 Z: U3 ~ if @.standort.nf(3).nf(1).leer
O+ J0 o4 b% G+ b then) B; \: i5 v$ R- l5 n
@.umlagern(@.standort.nf(3));
$ _. J9 |3 \8 v0 ^0 ~; y% S0 I else
% X: |& J5 w- I- P- |* s3 ? @.umlagern(@.standort.nf(1));6 J& W8 S F: z& ]% g
end;
/ [$ ?8 U4 [ p1 V/ k end;+ @' o' q6 n7 i( d
end; $ P% y M( `4 c: q9 y; b9 p( P
end;: s3 S: R/ s! `8 f8 H
end;, K' F1 k3 G0 v( ?% B% }* e, k/ s
if ?.leer) x4 m: m7 c6 w- j4 g I! s
then
' V$ T8 c! \/ K/ _1 A blockier_merker := false;; a$ ~/ j! g2 L! D/ A) k5 P
end;
1 `+ E$ f3 S" X1 Oend;
# [1 D6 B. W, `8 V3 K9 l/ N1 Z大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |