is& `& K, T+ H! G' v$ i5 O
local links,rechts : integer;- K) u' K" t/ x& U% {
do
% Y* N1 S2 {) I if @.standort.nf(1).nf(1).voll
; x, T% ?0 a* y) h" t and @.standort.nf(2).nf(1).voll9 W2 K9 W/ V" c& R) _! @6 A
and @.standort.nf(3).nf(1).voll8 c0 i, D) ~$ V' F* P; A( L
then( b+ ~, e( M' d& |+ R' t9 o
blockier_merker := TRUE;) T( d/ f9 Y+ A
else6 L3 D( S I) N+ ~) W' T% U
if @.standort.nf(1).nf(1).leer
7 M8 @3 V) u3 @: X7 G; ]6 z# i then# W( P$ P0 z) Y7 F4 }1 t+ Z& C7 x
@.ziel := "ap4_C";
9 v! S1 z* z" X9 r @.umlagern(@.standort.nf(1));. P4 s" l9 A$ P, ?5 N
else
8 {. g0 X3 q7 u" ]+ o3 u7 X# [ links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs 1 n7 c0 Y0 B T' Z
+ current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs
* b B3 c3 x0 D8 m# F + current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;
. c- V( Q2 w+ @! g" `8 Y6 [ rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs
4 u( q+ ]; Z& k2 P1 r+ d- W+ _& u + current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs
) Q3 {( t$ ?) b4 L/ ~ + current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;
1 [" z% T4 v- }5 u if links > rechts ' A7 g2 X9 `2 H$ P' |5 f
then
/ V; D* P! z- Y6 T if @.standort.nf(3).nf(1).leer
( A2 G8 o0 @7 n1 ]1 \- s1 e then1 d- P. ?4 C) r# C( x4 G
@.umlagern(@.standort.nf(3)); ' p$ a$ {& O2 S" u2 i7 g S
else
! U. J$ \) F) `' [ if @.standort.nf(2).nf(1).leer
4 k1 u0 P# T: ?. l. ^ then
4 g( A7 |/ E6 i$ Q$ k @.umlagern(@.standort.nf(2));
3 T$ d. `4 X4 O' t: W) v& I else3 K6 h) {' c+ v2 }) P* m
@.umlagern(@.standort.nf(1));
7 |/ e8 M; t1 E; X1 T$ |$ ` end;
: _) U) E: C1 d' C( O end;, r0 B" j4 B7 T0 L# C! W4 g
else , v/ v6 U- c1 v. J1 p, ^6 Y2 s8 L
if @.standort.nf(2).nf(1).leer
6 O# b! w, [ v* E5 \9 E then1 y% D" n# W. n. ?: e5 Q- {
@.umlagern(@.standort.nf(2)); ' V: r7 b* t) V5 {$ N. b
else2 m3 T I2 Q. z3 x+ v
if @.standort.nf(3).nf(1).leer* t% G/ N& V% {' |4 w3 `$ G
then
# f5 Y4 S* ^) k- v2 H" `7 { @.umlagern(@.standort.nf(3));. k% D8 s$ f2 b; i& a" j( m
else& j# ?' p0 j* k' p
@.umlagern(@.standort.nf(1));
8 h. n& k0 R6 T& K end;
S$ j1 C0 o5 Q( I0 ?' ] end;2 ~6 g0 J/ d. L6 J( u' F* Y
end;
0 ~/ g4 ^$ Q) W: d3 _! F' m end;+ l w S! W1 Z/ h r
end;
8 p. T8 q, O& k: Yif ?.leer
2 b2 r4 j2 O/ s0 w3 i9 cthen0 r- l$ F, e. |4 L% _1 k
blockier_merker := false;
( a( L% L# d. a, qend;
1 Y, \$ C" c3 T6 Aend;
% M8 r; `3 L1 T4 F大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |