docs(optimization): add optimizer architecture ADRs, skill and test (#1572)

Additional changes
- Add the optimizer terms to the glossary.
- Point to the skill from AGENTS.md, docs/develop/ai.md and the energy-domain skill.
- Match module names case-exactly, also on case-insensitive file systems.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Claude Code (claude-opus-5-5)
This commit is contained in:
Bobby Noelte
2026-11-27 13:55:41 +01:00
co-authored by Claude Opus 5.5
parent 1159501713
commit 9adf7b8be2
15 changed files with 1640 additions and 0 deletions
@@ -0,0 +1,26 @@
# Optimizers see only their optimization parameters
Configuration, predictions, measurements and EMS state change while an optimization run is in
progress, and an optimizer that reads them live can optimize against one state and report the plan
against another. So the parameter preparation of an optimizer is the only part of it that reads
configuration, predictions or measurements (EMS state reaches it only as arguments, see
[0006](0006-optimizer-interface-prepare-run-convert.md)); it runs once before the optimization run and
puts everything the run needs into the optimization parameters. The algorithm, the simulation, the
simulation devices and the solution conversion use nothing but the optimization parameters and the
results of the run, never configuration, predictions, measurements or EMS state, neither directly
nor through a helper that reads them (the complete list of modules and names is kept in the
architecture test, see [0007](0007-architecture-test-with-shrinking-baseline.md)). This includes information
that is only needed to present the solution, such as the time zone, device IDs, the start of the
run and the prediction series the run was optimized against.
## Considered Options
- **Let the solution conversion read the configuration and predictions**: rejected. A prediction
update during the run pairs the solution with a forecast it was not optimized for, and display
details such as the time zone can change between preparation and conversion as well.
## Consequences
- An optimizer can be run, tested and replayed from a stored set of optimization parameters alone.
- The optimization parameters grow to carry presentation data (time zone, device IDs, start
datetime, the prediction series used).