One potential enhancement I see is that the optimizer seems to favor later charging over earlier charging when price differences are very small (for example, below €0.5 ct/kWh). Especially for home batteries, I would often prefer earlier charging in such situations.The reason is that a PV forecast is inherently uncertain. By postponing charging, there is a risk that the battery ends up not fully charged, even though there was an earlier opportunity to do so at nearly the same cost. The consequence can be additional grid imports later, which are typically far more expensive than the small price advantage gained by delaying charging.I realize this is not a simple optimization problem. It involves forecast uncertainty, risk tolerance, and the trade-off between expected savings and the cost of a missed charging opportunity.
The optimal strategy will likely differ between use cases, which may make sense as a user-configurable "risk appetite" setting. Some users may prefer the lowest expected cost, while others may prefer a more conservative strategy that prioritizes charge certainty when cost differences are negligible.
Originally posted by @krispek in evcc-io/evcc#32881 (comment)
One potential enhancement I see is that the optimizer seems to favor later charging over earlier charging when price differences are very small (for example, below €0.5 ct/kWh). Especially for home batteries, I would often prefer earlier charging in such situations.The reason is that a PV forecast is inherently uncertain. By postponing charging, there is a risk that the battery ends up not fully charged, even though there was an earlier opportunity to do so at nearly the same cost. The consequence can be additional grid imports later, which are typically far more expensive than the small price advantage gained by delaying charging.I realize this is not a simple optimization problem. It involves forecast uncertainty, risk tolerance, and the trade-off between expected savings and the cost of a missed charging opportunity.
The optimal strategy will likely differ between use cases, which may make sense as a user-configurable "risk appetite" setting. Some users may prefer the lowest expected cost, while others may prefer a more conservative strategy that prioritizes charge certainty when cost differences are negligible.
Originally posted by @krispek in evcc-io/evcc#32881 (comment)