Bessere Verteilung: Strafen/Mutation, plus Abstammungsbaum mit Id-Herkunft
Weniger vermeidbare Gruppentrennungen:
- strafen.cfg: Tischbesetzung bestraft jetzt gestaffelt nach freien
Plaetzen (teilbelegte Tische am teuersten, mit Fallback auf den
naechstkleineren Eintrag), Trennungsstrafen deutlich erhoeht - so
werden Gruppen nicht mehr getrennt, obwohl leere Tische danebenstehen
- gibPunkte('Tischbesetzung') mit Naechst-kleiner-Fallback
- mutieren() setzt geraeumte Gruppen groesste-zuerst neu
(GruppenSetzen(GrosseZuerst=True)), damit grosse Gruppen die frei
gewordenen ganzen Tische bekommen und wieder zusammenkommen
(uebrig bleiben nur physisch unvermeidbare Trennungen, Gruppe > Tisch)
Abstammungsbaum (neuer Schalter --show-lineage -> Abstammung.svg):
- neue Klasse ga.Abstammung zeichnet den vollen Mutationsbaum aller
Loesungen; der Ast der finalen besten Loesung ist hervorgehoben und
mit ihrer Id beschriftet
- hierarchische Loesungs-Ids (Farm._WurzelId/_KindId): Wurzel '7',
Mutationskind '7.2', dessen Kind '7.2.1' - die ganze Abstammung ist
direkt aus der Id ablesbar
Tests (15 gruen), README und CLAUDE.md aktualisiert; Beispiele mit den
neuen Strafen und beiden Grafiken neu berechnet.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -5,11 +5,11 @@ Prof. B BB = Hof 1, Tisch 1, Nummer 3
|
||||
Prof. B BB = Hof 1, Tisch 1, Nummer 4
|
||||
|
||||
[2]
|
||||
Dr. C CC = Hof 1, Tisch 2, Nummer 1
|
||||
Dr. C CC = Hof 1, Tisch 2, Nummer 2
|
||||
Dr. C CC = Hof 1, Tisch 2, Nummer 3
|
||||
Dr. C CC = Hof 1, Tisch 2, Nummer 4
|
||||
Dr. C CC = Hof 1, Tisch 2, Nummer 5
|
||||
Dipl. Ing. A AA = Hof 1, Tisch 2, Nummer 1
|
||||
Dipl. Ing. A AA = Hof 1, Tisch 2, Nummer 2
|
||||
Dipl. Ing. A AA = Hof 1, Tisch 2, Nummer 3
|
||||
Dipl. Ing. A AA = Hof 1, Tisch 2, Nummer 4
|
||||
Dipl. Ing. A AA = Hof 1, Tisch 2, Nummer 5
|
||||
|
||||
[3]
|
||||
Dipl. Ing. A AA = Hof 1, Tisch 3, Nummer 1
|
||||
@@ -19,9 +19,9 @@ Dipl. Ing. A AA = Hof 1, Tisch 3, Nummer 4
|
||||
Dipl. Ing. A AA = Hof 1, Tisch 3, Nummer 5
|
||||
|
||||
[4]
|
||||
Dipl. Ing. A AA = Hof 1, Tisch 4, Nummer 1
|
||||
Dipl. Ing. A AA = Hof 1, Tisch 4, Nummer 2
|
||||
Dipl. Ing. A AA = Hof 1, Tisch 4, Nummer 3
|
||||
Dipl. Ing. A AA = Hof 1, Tisch 4, Nummer 4
|
||||
Dipl. Ing. A AA = Hof 1, Tisch 4, Nummer 5
|
||||
Dr. C CC = Hof 1, Tisch 4, Nummer 1
|
||||
Dr. C CC = Hof 1, Tisch 4, Nummer 2
|
||||
Dr. C CC = Hof 1, Tisch 4, Nummer 3
|
||||
Dr. C CC = Hof 1, Tisch 4, Nummer 4
|
||||
Dr. C CC = Hof 1, Tisch 4, Nummer 5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user