is
, x" X9 a+ ]: _2 ~$ E7 Klocal links,rechts : integer;2 h% u P% }) z7 ?* W9 L
do* ^6 I8 W9 U- b
if @.standort.nf(1).nf(1).voll
1 X$ r* t8 w" P+ j# w, T and @.standort.nf(2).nf(1).voll4 @$ V3 _! e# C( B% d$ D
and @.standort.nf(3).nf(1).voll. |, i2 w0 j# j3 m- z+ I- ^
then
# S. ]; N. `+ q9 x* V6 P blockier_merker := TRUE;
6 l* l5 m7 l" ^; D3 ^ else3 w+ K( F, s2 }
if @.standort.nf(1).nf(1).leer
, z/ B& s/ S! x then2 Z' i& q: R5 j O7 E$ }
@.ziel := "ap4_C";
& T4 d4 E; a1 ^ @.umlagern(@.standort.nf(1));& _2 s- F" L- r6 B u% G& \, H5 s
else! u/ s: b! ]7 v' r. F/ ]3 {0 S
links := current.standort.stichE.AnzahlBEs + current.standort.stichD.AnzahlBEs 7 B7 p3 W) h5 h4 F9 V
+ current.standort.zuf_E.AnzahlBEs + current.standort.zuf_D.AnzahlBEs
$ T6 Q* k+ Z T' l6 Z) i7 R + current.standort.ap4_E.AnzahlBEs + current.standort.ap4_D.AnzahlBEs;
- x5 w! W4 ]7 O; ~ rechts := current.standort.stichB.AnzahlBEs + current.standort.stichA.AnzahlBEs 0 _0 d- b* t, U
+ current.standort.zuf_B.AnzahlBEs + current.standort.zuf_A.AnzahlBEs
) _9 A, _% D. O b0 i8 u + current.standort.ap4_B.AnzahlBEs + current.standort.ap4_A.AnzahlBEs;% K5 a$ }" t: d {6 v4 J2 Z* s) b
if links > rechts
( m! @4 K$ j: a& X then7 ]5 a& `8 Y# L; R% Q+ V$ t- `
if @.standort.nf(3).nf(1).leer \! W3 E |0 R/ d+ y0 k7 [
then* L/ `' ~, A0 P6 u |# G
@.umlagern(@.standort.nf(3)); ! ^; I0 b- a" U/ x
else1 B: j, \, E- J" P S9 d
if @.standort.nf(2).nf(1).leer
6 C6 m0 y) ?8 ]1 X then: O# q" }& e7 g" |
@.umlagern(@.standort.nf(2));
1 ?! f2 O" J& W7 K& g' o else
) K# B5 x( u4 `2 L5 L, P# U$ `# U @.umlagern(@.standort.nf(1));
, J- Q1 r5 y! W end;
+ U- H9 H* `! D( f4 g* Q end;$ K$ @. Y: h& Q0 b4 n# I- M" j
else ; V% o( ~" C( o: F
if @.standort.nf(2).nf(1).leer
) @2 ?/ z) D1 I/ k$ G1 ^3 C then3 V) @0 v A- N2 K0 x2 G
@.umlagern(@.standort.nf(2)); 9 s4 s1 T* A9 p" h4 X# Y
else
& T# r/ v! m9 r* G( c if @.standort.nf(3).nf(1).leer
% l! h9 ]$ D6 j/ C then/ x% A8 ]6 M! _5 W8 S3 N# [
@.umlagern(@.standort.nf(3));
& v( c3 q% G! j: t: \: e; [ else
/ T/ _1 t2 U4 G& G: ] @.umlagern(@.standort.nf(1));" e2 ?8 H$ P$ f, n/ b: p
end;
7 x9 g2 w$ X8 e6 ~' s( Y- }/ @ end;1 H6 e# p, C) ^5 C9 i, z
end; " `# a7 q/ i- s( R
end;: j8 w! F, V3 p5 C9 p
end;% N6 R9 r! o/ _$ ]% K/ A2 k
if ?.leer
4 U) x0 A( H# h) {0 Lthen! A' I$ A3 H0 G. q: w
blockier_merker := false;' C# C' y+ k0 v( q% ]9 j
end;, j) J$ N) S; P
end;
$ @. Z5 P- f3 j' L大家帮忙看看上面的程序是怎样实现分配的,好像用了一个遗传算法的。 |