batpred icon indicating copy to clipboard operation
batpred copied to clipboard

Factoring in uncertainty

Open WillCalderwood opened this issue 10 months ago • 5 comments

Is your feature request related to a problem? Please describe. It's better to act on what we know now rather than what we believe might happen in the future. In the example below, there's no advantage that I can see in delaying the battery charging to the end of the cheap period, but there is a disadvantage, as there's a good chance that Octopus will change the cheap slots. If the future is guaranteed, then there's no cost, but the future is never guaranteed, so factoring on an uncertainty cost as we predict the future might be a good way to handle this. image

Describe the solution you'd like If we know we can do something for the same predicted cost now as in the future, then do it now.

Describe alternatives you've considered Increasing import costs for time periods that I want to discourage charging, but this feel inelegant.

WillCalderwood avatar Jan 02 '25 23:01 WillCalderwood

you could try turning switch.calculate_export_high_import on, this could help because the default false value for this switch results in the later export slots being chosen

https://springfall2008.github.io/batpred/customisation/#calculation-options

gcoan avatar Jan 03 '25 00:01 gcoan

I didn't see this until it was too late. Reading the docs, the calculate_export_high_import setting changes export slots, not charge slots. Does it also affect charge slots?

WillCalderwood avatar Jan 03 '25 20:01 WillCalderwood

Try turning on combine_charge

springfall2008 avatar Jan 04 '25 10:01 springfall2008

@springfall2008 Next time I notice it trying to charge at the end of a cheap period I'll make the change and see if it has an effect.

WillCalderwood avatar Jan 05 '25 11:01 WillCalderwood

Turning on combine charge does indeed resolve the issue. What are the down sides of this?

WillCalderwood avatar Mar 17 '25 17:03 WillCalderwood