is
, }: ]& |! G4 p' M( Z' Plocal links,rechts : integer;
$ @6 a5 o% ]' l; X) t! C kdo
, E% b9 x* Z% N: g3 u. u4 F) `5 ? if @.standort.nf(1).nf(1).voll
) T/ p3 }, X; {4 n4 n8 s' y; ]# h and @.standort.nf(2).nf(1).voll
1 L0 ?* r3 a3 ?& U and @.standort.nf(3).nf(1).voll
$ {4 e. N- N& W- d then
* I2 \0 c% f- h) V+ o( Y blockier_merker := TRUE;6 S- V+ j% b9 h5 q" Q0 k
else1 x4 J* s2 Q: \) [6 M0 f
if @.standort.nf(1).nf(1).leer a. d" A4 y8 o7 d" e. T a4 b4 L
then
, c0 s$ p, y* @/ W* c& `( A! l( ^! ~; k$ G @.ziel := "ap4_C";
. \7 U/ W# }2 {1 V( h+ c( _0 ?* @ @.umlagern(@.standort.nf(1));: ^ u9 v4 c$ c& r5 ~7 {2 \
else+ a4 ^; }* w. V
links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs ( |% u' b, l& [6 `- g+ }
+ current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs
* Z( l5 E- P9 B0 a + current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;3 A5 s5 n2 e6 M9 z9 I
rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs - m. a2 ^3 A8 ]9 l+ T k$ x
+ current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs
1 p3 i+ p6 s& C E* y + current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;
* b) X, M' y5 ^2 N3 \$ E) R/ k/ v if links > rechts 3 c |7 Z2 m# F
then; ?/ Z; Z; d4 @6 A2 K2 y
if @.standort.nf(3).nf(1).leer
2 k+ u( C3 K3 h6 e& R then
; p" E. c; W$ T% u; | @.umlagern(@.standort.nf(3));
0 y; U: j/ }* n1 I( j1 p else
: j! @. `( k! u( q: n if @.standort.nf(2).nf(1).leer, R& m5 \ f9 T6 C* @
then; v: @+ `1 z) g2 N. \# M& C
@.umlagern(@.standort.nf(2));
% M. ?' I3 r& A else
, ~7 r, o- _5 n) I @.umlagern(@.standort.nf(1));
6 k* e( R/ U2 I end;+ ^8 ^ d1 V% P ]( }. Z
end;
0 X. a8 J) { k: Y0 d% z else
8 ~, I" X5 P+ ?; ]! w# `8 ? if @.standort.nf(2).nf(1).leer+ L8 H; Z7 x; Q/ O( @$ y
then
( |0 Z& N2 Z/ t# Q5 X, N- T @.umlagern(@.standort.nf(2)); / r# \$ @! ^' n( k+ R& {
else! N% f1 f) r/ u( z3 U# M$ |
if @.standort.nf(3).nf(1).leer
% G9 I) C/ \9 ^ then+ V0 z0 B1 m: {2 Q, r2 X
@.umlagern(@.standort.nf(3));
* r0 }" ?7 i, g) F4 Z+ S6 R else
5 J/ h* P* M# y- n! ` @.umlagern(@.standort.nf(1));5 q' c( n9 W$ f# ?$ n% |
end;
7 E/ W c* I2 a end;" @: f, u$ m& e0 _0 ?' S$ F: n) H
end;
' z5 z2 G1 ~, w! Q$ w( Y end;6 ^8 U- \; [, t! H4 v0 u
end;, M3 v- y' l% h& X# M* x8 j
if ?.leer k: e, R" \% ]. D+ P2 X
then9 K4 ]: b7 w4 @4 ]" S
blockier_merker := false;0 W1 d+ P1 N U% e2 f7 M, h2 S
end;! _0 z0 d( X+ b1 s- v
end;
# x% c# m# A( Z2 [: k2 f M- z大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |