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