Abstandsstrafe fuer getrennte Gruppen + Verbindungslinien-Optionen

- strafen.cfg: neuer optionaler Abschnitt [Abstand] mit Faktor je
  normierter Abstandseinheit (0..100, bezogen auf die max. Ausdehnung
  der Tischanordnung)
- Strukturdaten.py: Strafliste.AbstandFaktor, gibPunkte('Abstand',...),
  bewerten() bestraft den max. Tisch-Tisch-Abstand getrennter Gruppen;
  abwaertskompatibel (fehlt der Abschnitt -> Faktor 0)
- platz.py: --show-/--hide-connections steuern die Verbindungslinien
  getrennter Gruppen in der SVG
- work/*, doc/images/*: Beispiele neu durchgerechnet

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Michael Stangl
2026-07-11 13:47:27 +02:00
parent 98b1dc4f36
commit 4f87895303
18 changed files with 1540 additions and 1379 deletions
+7 -7
View File
@@ -5,15 +5,15 @@
<line x1="60" y1="60" x2="60" y2="440" stroke="#333" stroke-width="1.5"/>
<line x1="60" y1="440" x2="840" y2="440" stroke="#333" stroke-width="1.5"/>
<line x1="60" y1="440.0" x2="840" y2="440.0" stroke="#eee" stroke-width="1"/>
<text x="52" y="444.0" text-anchor="end" font-size="11" fill="#666">-76</text>
<text x="52" y="444.0" text-anchor="end" font-size="11" fill="#666">-68</text>
<line x1="60" y1="364.0" x2="840" y2="364.0" stroke="#eee" stroke-width="1"/>
<text x="52" y="368.0" text-anchor="end" font-size="11" fill="#666">-62</text>
<text x="52" y="368.0" text-anchor="end" font-size="11" fill="#666">-56</text>
<line x1="60" y1="288.0" x2="840" y2="288.0" stroke="#eee" stroke-width="1"/>
<text x="52" y="292.0" text-anchor="end" font-size="11" fill="#666">-48</text>
<text x="52" y="292.0" text-anchor="end" font-size="11" fill="#666">-43</text>
<line x1="60" y1="212.0" x2="840" y2="212.0" stroke="#eee" stroke-width="1"/>
<text x="52" y="216.0" text-anchor="end" font-size="11" fill="#666">-34</text>
<text x="52" y="216.0" text-anchor="end" font-size="11" fill="#666">-31</text>
<line x1="60" y1="136.0" x2="840" y2="136.0" stroke="#eee" stroke-width="1"/>
<text x="52" y="140.0" text-anchor="end" font-size="11" fill="#666">-20</text>
<text x="52" y="140.0" text-anchor="end" font-size="11" fill="#666">-18</text>
<line x1="60" y1="60.0" x2="840" y2="60.0" stroke="#eee" stroke-width="1"/>
<text x="52" y="64.0" text-anchor="end" font-size="11" fill="#666">-6</text>
<text x="18" y="250" text-anchor="middle" font-size="12" fill="#333" transform="rotate(-90 18 250)">Wertigkeit (hoeher = besser)</text>
@@ -36,8 +36,8 @@
<text x="791.2" y="456" text-anchor="middle" font-size="10" fill="#999">z</text>
<text x="840.0" y="456" text-anchor="middle" font-size="10" fill="#999">s</text>
<polyline points="60.0,60.0 108.8,60.0 157.5,60.0 206.2,60.0 255.0,60.0 303.8,60.0 352.5,60.0 401.2,60.0 450.0,60.0 498.8,60.0 547.5,60.0 596.2,60.0 645.0,60.0 693.8,60.0 742.5,60.0 791.2,60.0 840.0,60.0" fill="none" stroke="#2f6f4f" stroke-width="2"/>
<polyline points="60.0,168.6 108.8,77.4 157.5,77.4 206.2,142.5 255.0,120.8 303.8,120.8 352.5,64.3 401.2,64.3 450.0,94.7 498.8,84.6 547.5,84.6 596.2,60.0 645.0,60.0 693.8,66.5 742.5,64.3 791.2,64.3 840.0,60.0" fill="none" stroke="#c08a2d" stroke-width="2"/>
<polyline points="60.0,440.0 108.8,81.7 157.5,81.7 206.2,418.3 255.0,418.3 303.8,418.3 352.5,81.7 401.2,81.7 450.0,255.4 498.8,255.4 547.5,255.4 596.2,60.0 645.0,60.0 693.8,81.7 742.5,81.7 791.2,81.7 840.0,60.0" fill="none" stroke="#a03030" stroke-width="2"/>
<polyline points="60.0,154.4 108.8,74.7 157.5,74.7 206.2,131.1 255.0,112.3 303.8,112.3 352.5,60.0 401.2,60.0 450.0,72.3 498.8,68.2 547.5,68.2 596.2,60.0 645.0,60.0 693.8,66.1 742.5,64.1 791.2,64.1 840.0,60.0" fill="none" stroke="#c08a2d" stroke-width="2"/>
<polyline points="60.0,440.0 108.8,84.5 157.5,84.5 206.2,280.6 255.0,280.6 303.8,280.6 352.5,60.0 401.2,60.0 450.0,84.5 498.8,84.5 547.5,84.5 596.2,60.0 645.0,60.0 693.8,84.5 742.5,84.5 791.2,84.5 840.0,60.0" fill="none" stroke="#a03030" stroke-width="2"/>
<line x1="680" y1="70" x2="704" y2="70" stroke="#2f6f4f" stroke-width="2"/>
<text x="710" y="74" font-size="11" fill="#333">beste Loesung</text>
<line x1="680" y1="88" x2="704" y2="88" stroke="#c08a2d" stroke-width="2"/>

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

+17 -17
View File
@@ -1,17 +1,17 @@
Bloedkopf, Bestelli, = Hof 1, Tisch 3, Nummer 2
Bloedkopf, Bestelli, = Hof 1, Tisch 3, Nummer 3
Bloedkopf, Bestelli, = Hof 1, Tisch 3, Nummer 4
Brandt, Willi, Dr. = Hof 1, Tisch 4, Nummer 2
Bruegge, Heinz, = Hof 1, Tisch 5, Nummer 5
Dietrich, Marlene, = Hof 1, Tisch 5, Nummer 3
Emmerlich, Walter, = Hof 1, Tisch 4, Nummer 3
Frenzen, Heinz Harald, = Hof 1, Tisch 4, Nummer 4
Hoehn, Bernd Robert, Professor = Hof 1, Tisch 1, Nummer 4
Junke, Harald, = Hof 1, Tisch 2, Nummer 2
K, Hubert, = Hof 1, Tisch 5, Nummer 4
Leone, Sergio, = Hof 1, Tisch 2, Nummer 4
Mueller, Magnus, Professor = Hof 1, Tisch 1, Nummer 2
Ruehmann, Heinz, = Hof 1, Tisch 5, Nummer 2
Schumacher, Michael, = Hof 1, Tisch 2, Nummer 3
Schumacher, Ralf, = Hof 1, Tisch 4, Nummer 5
Stangl, Michael, Dipl. Ing. = Hof 1, Tisch 1, Nummer 3
Bloedkopf, Bestelli, = Hof 1, Tisch 2, Nummer 2
Bloedkopf, Bestelli, = Hof 1, Tisch 2, Nummer 3
Bloedkopf, Bestelli, = Hof 1, Tisch 2, Nummer 4
Brandt, Willi, Dr. = Hof 1, Tisch 4, Nummer 4
Bruegge, Heinz, = Hof 1, Tisch 3, Nummer 2
Dietrich, Marlene, = Hof 1, Tisch 2, Nummer 6
Emmerlich, Walter, = Hof 1, Tisch 5, Nummer 2
Frenzen, Heinz Harald, = Hof 1, Tisch 4, Nummer 3
Hoehn, Bernd Robert, Professor = Hof 1, Tisch 1, Nummer 3
Junke, Harald, = Hof 1, Tisch 4, Nummer 2
K, Hubert, = Hof 1, Tisch 3, Nummer 3
Leone, Sergio, = Hof 1, Tisch 5, Nummer 3
Mueller, Magnus, Professor = Hof 1, Tisch 1, Nummer 4
Ruehmann, Heinz, = Hof 1, Tisch 2, Nummer 5
Schumacher, Michael, = Hof 1, Tisch 5, Nummer 5
Schumacher, Ralf, = Hof 1, Tisch 5, Nummer 4
Stangl, Michael, Dipl. Ing. = Hof 1, Tisch 1, Nummer 2
1 Bloedkopf Bestelli = Hof 1 Tisch 3 Tisch 2 Nummer 2
2 Bloedkopf Bestelli = Hof 1 Tisch 3 Tisch 2 Nummer 3
3 Bloedkopf Bestelli = Hof 1 Tisch 3 Tisch 2 Nummer 4
4 Brandt Willi Dr. = Hof 1 Tisch 4 Tisch 4 Nummer 2 Nummer 4
5 Bruegge Heinz = Hof 1 Tisch 5 Tisch 3 Nummer 5 Nummer 2
6 Dietrich Marlene = Hof 1 Tisch 5 Tisch 2 Nummer 3 Nummer 6
7 Emmerlich Walter = Hof 1 Tisch 4 Tisch 5 Nummer 3 Nummer 2
8 Frenzen Heinz Harald = Hof 1 Tisch 4 Tisch 4 Nummer 4 Nummer 3
9 Hoehn Bernd Robert Professor = Hof 1 Tisch 1 Tisch 1 Nummer 4 Nummer 3
10 Junke Harald = Hof 1 Tisch 2 Tisch 4 Nummer 2
11 K Hubert = Hof 1 Tisch 5 Tisch 3 Nummer 4 Nummer 3
12 Leone Sergio = Hof 1 Tisch 2 Tisch 5 Nummer 4 Nummer 3
13 Mueller Magnus Professor = Hof 1 Tisch 1 Tisch 1 Nummer 2 Nummer 4
14 Ruehmann Heinz = Hof 1 Tisch 5 Tisch 2 Nummer 2 Nummer 5
15 Schumacher Michael = Hof 1 Tisch 2 Tisch 5 Nummer 3 Nummer 5
16 Schumacher Ralf = Hof 1 Tisch 4 Tisch 5 Nummer 5 Nummer 4
17 Stangl Michael Dipl. Ing. = Hof 1 Tisch 1 Tisch 1 Nummer 3 Nummer 2
+20 -19
View File
@@ -1,36 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="504.572" height="108.914" viewBox="0 0 504.572 108.914">
<rect width="100%" height="100%" fill="white"/>
<polyline points="351.2,54.4572 450.115,54.4572" fill="none" stroke="#3cb44b" stroke-width="12" stroke-linecap="round" stroke-linejoin="round" stroke-opacity="0.5"/>
<circle cx="252.286" cy="54.4572" r="37.242" fill="white" stroke="black" stroke-width="1.5"/>
<circle cx="252.286" cy="39.2151" r="12" fill="#e6194b" stroke="black" stroke-width="1"/>
<circle cx="252.286" cy="69.6992" r="12" fill="#e6194b" stroke="black" stroke-width="1"/>
<circle cx="252.286" cy="54.4572" r="12" fill="white" fill-opacity="0.75"/>
<text x="252.286" y="54.4572" text-anchor="middle" dominant-baseline="central" font-size="13.2" font-weight="bold" fill="black">3</text>
<circle cx="54.4572" cy="54.4572" r="37.242" fill="white" stroke="black" stroke-width="1.5"/>
<circle cx="54.4572" cy="39.2151" r="12" fill="#888888" stroke="black" stroke-width="1"/>
<circle cx="67.6572" cy="62.0782" r="12" fill="#888888" stroke="black" stroke-width="1"/>
<circle cx="41.2572" cy="62.0782" r="12" fill="#888888" stroke="black" stroke-width="1"/>
<circle cx="54.4572" cy="54.4572" r="12" fill="white" fill-opacity="0.75"/>
<text x="54.4572" y="54.4572" text-anchor="middle" dominant-baseline="central" font-size="13.2" font-weight="bold" fill="black">1</text>
<circle cx="153.372" cy="54.4572" r="44.4572" fill="white" stroke="black" stroke-width="1.5"/>
<circle cx="153.372" cy="32" r="12" fill="#e6194b" stroke="black" stroke-width="1"/>
<circle cx="172.82" cy="65.6858" r="12" fill="#e6194b" stroke="black" stroke-width="1"/>
<circle cx="133.923" cy="65.6858" r="12" fill="#e6194b" stroke="black" stroke-width="1"/>
<circle cx="153.372" cy="54.4572" r="12" fill="white" fill-opacity="0.75"/>
<text x="153.372" y="54.4572" text-anchor="middle" dominant-baseline="central" font-size="13.2" font-weight="bold" fill="black">2</text>
<circle cx="252.286" cy="54.4572" r="37.242" fill="white" stroke="black" stroke-width="1.5"/>
<circle cx="252.286" cy="39.2151" r="12" fill="#3cb44b" stroke="black" stroke-width="1"/>
<circle cx="265.486" cy="62.0782" r="12" fill="#3cb44b" stroke="black" stroke-width="1"/>
<circle cx="239.086" cy="62.0782" r="12" fill="#3cb44b" stroke="black" stroke-width="1"/>
<circle cx="252.286" cy="54.4572" r="12" fill="white" fill-opacity="0.75"/>
<text x="252.286" y="54.4572" text-anchor="middle" dominant-baseline="central" font-size="13.2" font-weight="bold" fill="black">3</text>
<circle cx="351.2" cy="54.4572" r="40.6676" fill="white" stroke="black" stroke-width="1.5"/>
<circle cx="351.2" cy="35.7896" r="12" fill="#3cb44b" stroke="black" stroke-width="1"/>
<circle cx="369.868" cy="54.4572" r="12" fill="#3cb44b" stroke="black" stroke-width="1"/>
<circle cx="351.2" cy="73.1248" r="12" fill="#3cb44b" stroke="black" stroke-width="1"/>
<circle cx="332.533" cy="54.4572" r="12" fill="#3cb44b" stroke="black" stroke-width="1"/>
<circle cx="367.367" cy="63.791" r="12" fill="#3cb44b" stroke="black" stroke-width="1"/>
<circle cx="335.034" cy="63.791" r="12" fill="#3cb44b" stroke="black" stroke-width="1"/>
<circle cx="351.2" cy="54.4572" r="12" fill="white" fill-opacity="0.75"/>
<text x="351.2" y="54.4572" text-anchor="middle" dominant-baseline="central" font-size="13.2" font-weight="bold" fill="black">4</text>
<circle cx="450.115" cy="54.4572" r="40.6676" fill="white" stroke="black" stroke-width="1.5"/>
<circle cx="450.115" cy="35.7896" r="12" fill="#4363d8" stroke="black" stroke-width="1"/>
<circle cx="468.782" cy="54.4572" r="12" fill="#f58231" stroke="black" stroke-width="1"/>
<circle cx="450.115" cy="73.1248" r="12" fill="#f58231" stroke="black" stroke-width="1"/>
<circle cx="431.447" cy="54.4572" r="12" fill="#4363d8" stroke="black" stroke-width="1"/>
<circle cx="450.115" cy="35.7896" r="12" fill="#3cb44b" stroke="black" stroke-width="1"/>
<circle cx="468.782" cy="54.4572" r="12" fill="#3cb44b" stroke="black" stroke-width="1"/>
<circle cx="450.115" cy="73.1248" r="12" fill="#3cb44b" stroke="black" stroke-width="1"/>
<circle cx="431.447" cy="54.4572" r="12" fill="#3cb44b" stroke="black" stroke-width="1"/>
<circle cx="450.115" cy="54.4572" r="12" fill="white" fill-opacity="0.75"/>
<text x="450.115" y="54.4572" text-anchor="middle" dominant-baseline="central" font-size="13.2" font-weight="bold" fill="black">5</text>
<circle cx="153.372" cy="54.4572" r="44.4572" fill="white" stroke="black" stroke-width="1.5"/>
<circle cx="153.372" cy="32" r="12" fill="#4363d8" stroke="black" stroke-width="1"/>
<circle cx="174.73" cy="47.5175" r="12" fill="#4363d8" stroke="black" stroke-width="1"/>
<circle cx="166.572" cy="72.6254" r="12" fill="#4363d8" stroke="black" stroke-width="1"/>
<circle cx="140.172" cy="72.6254" r="12" fill="#f58231" stroke="black" stroke-width="1"/>
<circle cx="132.013" cy="47.5175" r="12" fill="#f58231" stroke="black" stroke-width="1"/>
<circle cx="153.372" cy="54.4572" r="12" fill="white" fill-opacity="0.75"/>
<text x="153.372" y="54.4572" text-anchor="middle" dominant-baseline="central" font-size="13.2" font-weight="bold" fill="black">2</text>
</svg>

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

+17 -17
View File
@@ -1,27 +1,27 @@
[1]
Professor Magnus Mueller = Hof 1, Tisch 1, Nummer 1
Dipl. Ing. Michael Stangl = Hof 1, Tisch 1, Nummer 2
Professor Bernd Robert Hoehn = Hof 1, Tisch 1, Nummer 3
Dipl. Ing. Michael Stangl = Hof 1, Tisch 1, Nummer 1
Professor Bernd Robert Hoehn = Hof 1, Tisch 1, Nummer 2
Professor Magnus Mueller = Hof 1, Tisch 1, Nummer 3
[2]
Harald Junke = Hof 1, Tisch 2, Nummer 1
Michael Schumacher = Hof 1, Tisch 2, Nummer 2
Sergio Leone = Hof 1, Tisch 2, Nummer 3
Bestelli Bloedkopf = Hof 1, Tisch 2, Nummer 1
Bestelli Bloedkopf = Hof 1, Tisch 2, Nummer 2
Bestelli Bloedkopf = Hof 1, Tisch 2, Nummer 3
Heinz Ruehmann = Hof 1, Tisch 2, Nummer 4
Marlene Dietrich = Hof 1, Tisch 2, Nummer 5
[3]
Bestelli Bloedkopf = Hof 1, Tisch 3, Nummer 1
Bestelli Bloedkopf = Hof 1, Tisch 3, Nummer 2
Bestelli Bloedkopf = Hof 1, Tisch 3, Nummer 3
Heinz Bruegge = Hof 1, Tisch 3, Nummer 1
Hubert K = Hof 1, Tisch 3, Nummer 2
[4]
Dr. Willi Brandt = Hof 1, Tisch 4, Nummer 1
Walter Emmerlich = Hof 1, Tisch 4, Nummer 2
Heinz Harald Frenzen = Hof 1, Tisch 4, Nummer 3
Ralf Schumacher = Hof 1, Tisch 4, Nummer 4
Harald Junke = Hof 1, Tisch 4, Nummer 1
Heinz Harald Frenzen = Hof 1, Tisch 4, Nummer 2
Dr. Willi Brandt = Hof 1, Tisch 4, Nummer 3
[5]
Heinz Ruehmann = Hof 1, Tisch 5, Nummer 1
Marlene Dietrich = Hof 1, Tisch 5, Nummer 2
Hubert K = Hof 1, Tisch 5, Nummer 3
Heinz Bruegge = Hof 1, Tisch 5, Nummer 4
Walter Emmerlich = Hof 1, Tisch 5, Nummer 1
Sergio Leone = Hof 1, Tisch 5, Nummer 2
Ralf Schumacher = Hof 1, Tisch 5, Nummer 3
Michael Schumacher = Hof 1, Tisch 5, Nummer 4