is
1 i1 v/ l5 _: x$ a2 ylocal links,rechts : integer;
/ W2 m2 h' h5 w! B/ s* Y4 _do( l) F0 B) m* o. ]9 z$ J1 |9 k' ^
if @.standort.nf(1).nf(1).voll# t ?/ F( F5 ~% S+ v" u
and @.standort.nf(2).nf(1).voll" n5 F% u% U( q5 ^* f& C. D- Q
and @.standort.nf(3).nf(1).voll; {4 n! B9 X- L, }, k
then
) g1 `& J. Y& {4 |! b# q blockier_merker := TRUE;9 L, Q2 n8 K+ S7 ]) |, y4 T5 |
else
& Q6 E# L( F+ S/ d' C. P if @.standort.nf(1).nf(1).leer
0 C+ W$ O* F5 Q' x( D& k" d( L8 P then
+ B# K. R' @: R6 I& O @.ziel := "ap4_C";
/ o7 |* g) L8 M3 v9 c0 O4 o @.umlagern(@.standort.nf(1));
3 x. a+ e" Q4 M! d% B else
$ k6 c3 q2 V. L% H& F links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs # G2 A. J6 J8 V5 W o, k6 i/ Q1 j' L
+ current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs % w2 y) B+ z ]! ^( b1 p6 {
+ current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;
1 q; ^9 \# u5 `0 P2 | rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs ) w9 a* m% @, U
+ current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs
3 u: _$ X G5 \# @- |' m/ c + current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;
" A1 D: V( V) o7 b, b; y9 ?& \ if links > rechts # I6 k+ }- ~7 D% j9 b
then
" R% e1 Z2 I. w( E; g. [( e" w if @.standort.nf(3).nf(1).leer) C4 V( E3 n9 V
then; l2 U+ \6 R7 H0 r" i2 Y
@.umlagern(@.standort.nf(3)); ! U; j8 K5 ^# ?+ k. [
else# {- G3 [' H' ?5 ]
if @.standort.nf(2).nf(1).leer* C* Q8 F" D6 a* [: f7 m
then* Y C- q0 B" [0 s
@.umlagern(@.standort.nf(2));
$ q8 a% c# D$ y else- y) N0 F4 T; j, |9 q8 }4 D
@.umlagern(@.standort.nf(1));. \3 O2 C5 s* p# M4 K" _
end;
& s$ Y& E3 ^$ _# H end;
& K( Q2 [$ X, T9 S5 u else
- Z3 s+ R" N3 Z. l1 v; s& V+ X* P if @.standort.nf(2).nf(1).leer
" k5 ], c k0 l" W/ Y+ A5 x then: ?, X C% x7 T: H, B" F% B
@.umlagern(@.standort.nf(2)); : @" b6 Y0 Q5 T- D/ A2 }& i
else4 P2 L2 N+ z9 s* a
if @.standort.nf(3).nf(1).leer
F: w6 X& o4 B! X/ m) s then
& S, _0 N+ A1 ?9 `) n' b! z. ^ @.umlagern(@.standort.nf(3));
: |7 [* }2 p# l7 l- ? w% } else4 V% v( Q" [0 H; T
@.umlagern(@.standort.nf(1));0 I+ \9 U5 e' L: ^ [
end;
. x4 S0 G5 e# k: z3 w end;* w9 z& D: u, C; i8 R
end;
/ j8 Y/ I* l6 L2 t( [ end;* {+ Z/ u7 n7 x2 X" X( x: j) y1 r
end;
k0 n) ~. e$ v" K1 u3 C( A1 [if ?.leer& x/ w7 ]. g9 O7 N4 o2 |( Q$ o
then
* A0 }$ k" W7 { m blockier_merker := false;$ L- k P* k% T
end;
' Q* r1 R2 [ a& z8 `! v% ^end;
, z! T5 z) l! D4 R2 f: l) C大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |