Adaptiver GA-Zyklus, Pool-Groessen-Panel, Konfig direkt aus cfg-Dateien
Zyklus/Farm: - neuer adaptiver Modus: grosse Startpopulation, die je Generation schrumpft (Start/Schrumpfung/MinPopulation) und bei Konvergenz stoppt (Geduld Generationen ohne Verbesserung >= Schwelle, max MaxGenerationen) - Zyklus.laden erkennt adaptives Profil am Feld 'Start' (Modus adaptiv), sonst klassisch (Abfolge/Anzahl); Farm._LaufStatisch/_LaufAdaptiv - neue Trunkierungs-Selektion Farm.PopulationBegrenzen - [Adaptiv]-Profil in zyklus.cfg (dokumentiert) Entwicklungsgrafik: - zweites Panel unter dem Verlauf zeigt die Anzahl erzeugter Verteilungen im Pool je Schritt (gemeinsame Zeitachse) Konfiguration: - platz.cfg entfernt; zyklus.cfg/strafen.cfg werden direkt aus $PLATZ_CFG geladen - neuer Schalter --zyklus-art (Default Adaptiv) waehlt das GA-Profil - web/main.py analog: direktes Laden, Profil via PLATZ_ZYKLUSART Doku (README.md, CLAUDE.md) und Tests entsprechend aktualisiert; Beispiele mit dem Adaptiv-Default neu berechnet. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -98,18 +98,23 @@ receiving the output files for one run — e.g. `work/test1/` or `work/test2/`:
|
||||
To run against a different dataset, create a new folder with a `tische.ini` and
|
||||
`bestellung.json` following the same layout and pass it via `--indir`.
|
||||
|
||||
`cfg/platz.cfg` still selects the GA cycle/penalty config (independent of `--indir`):
|
||||
The GA cycle and penalty scheme are read directly from `$PLATZ_CFG/zyklus.cfg` and
|
||||
`$PLATZ_CFG/strafen.cfg` (independent of `--indir`); there is no longer a `platz.cfg`
|
||||
indirection. The GA profile is selected with the `--zyklus-art <name>` switch (default:
|
||||
`Adaptiv`).
|
||||
|
||||
```ini
|
||||
[Config]
|
||||
Zyklusdatei=$PLATZ_CFG/zyklus.cfg
|
||||
Zyklusart=Easy
|
||||
Strafendatei=$PLATZ_CFG/strafen.cfg
|
||||
```
|
||||
`cfg/zyklus.cfg` defines the GA profiles. Two styles exist:
|
||||
|
||||
`cfg/zyklus.cfg` defines the GA run schedule ("Zyklus") as an `Abfolge` (sequence of
|
||||
actions) and matching `Anzahl` (counts): `e` create, `s` select best, `S` select randomly,
|
||||
`m` mutate, `j` keep parents, `z` advance generation.
|
||||
- **static** profiles (`Easy`, `Simple`) give an explicit `Abfolge` (sequence of actions)
|
||||
and matching `Anzahl` (counts): `e` create, `s` select best, `S` select randomly, `m`
|
||||
mutate, `j` keep parents, `z` advance generation.
|
||||
- the **adaptive** profile (`Adaptiv`, the default) has no fixed action list. It is
|
||||
recognised by a `Start` field and runs a generation loop: a large starting population
|
||||
that shrinks each generation (`Schrumpfung`, down to `MinPopulation`) and stops once the
|
||||
best score fails to improve by at least `Schwelle` for `Geduld` generations (or after
|
||||
`MaxGenerationen`).
|
||||
|
||||
Select a different profile per run, e.g. `bin/platz.bat --indir work/test2 --zyklus-art Easy`.
|
||||
|
||||
`cfg/strafen.cfg` defines the penalty scheme: cost of splitting a group across tables (by
|
||||
group size and number of splits), cost of a person sitting alone or without a group-mate at
|
||||
|
||||
Reference in New Issue
Block a user