mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-11-25 23:16:18 +01:00
fix(genetic): keep a deadline from capping the DAILY appliance estimate
The tail estimate queried its probe appliance with the configured deadline. A deadline inside the control horizon then left no start on the following days: with BEST_EFFORT the 48 h tail held one run and logged "deadline can not be met" twice per run, with STRICT it held no appliance load. The deadline only limits the run it was set for, so the probe leaves it out. Additional changes Test the tail load with a deadline inside the control horizon for both deadline policies Refs: #1495 Signed-off-by: SchaafAlexander <86607129+SchaafAlexander@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assisted-by: Claude Code (claude-opus-5-5)
This commit is contained in:
committed by
Bobby Noelte
co-authored by
Claude Opus 5.5
parent
d9a5ac0b0b
commit
45a6377b60
@@ -1377,9 +1377,10 @@ class GeneticOptimization(OptimizationBase):
|
||||
# The configured appliance only spans the control horizon, so its
|
||||
# window logic cannot see the tail. Query a throwaway copy sized to
|
||||
# the estimated range instead; it shares the same parameters, so the
|
||||
# time windows, earliest start and deadline bounds all still apply.
|
||||
# time windows and the earliest start still apply. A deadline only
|
||||
# limits the run it was set for and must not cap the following days.
|
||||
probe = HomeAppliance(
|
||||
parameters=appliance.parameters,
|
||||
parameters=appliance.parameters.model_copy(update={"deadline_datetime": None}),
|
||||
optimization_hours=self._genetic_cfg.horizon_hours,
|
||||
prediction_hours=end_slot,
|
||||
slot_duration_h=self.slot_duration_h,
|
||||
|
||||
Reference in New Issue
Block a user