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)
1.7 KiB
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); 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). 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).