Skip to content

Conversation

@shsms
Copy link
Contributor

@shsms shsms commented Dec 12, 2025

With this, SHIFTING_MATRYOSHKA remains the default algorithm for
batteries, but can now be changed to the original MATRYOSHKA
algorithm when calling microgrid.initialize().

This makes it easier to expose publicly.

Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
With this, `SHIFTING_MATRYOSHKA` remains the default algorithm for
batteries, but can now be changed to the original `MATRYOSHKA`
algorithm when calling `microgrid.initialize()`.

Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
@shsms shsms requested a review from a team as a code owner December 12, 2025 10:44
@shsms shsms requested review from daniel-zullo-frequenz and removed request for a team December 12, 2025 10:44
@github-actions github-actions bot added part:docs Affects the documentation part:microgrid Affects the interactions with the microgrid labels Dec 12, 2025
@shsms shsms requested review from cwasicki and llucax December 12, 2025 10:46
@shsms
Copy link
Contributor Author

shsms commented Dec 12, 2025

This means we need to adjust the docs slightly as well, but will pick that up separately later.

Copy link
Contributor

@llucax llucax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If not too urgent, I would add a power_manager_config: PowerManagerConfig instead from the start, otherwise I'm fine with merge as is for now.

*,
api_power_request_timeout: timedelta = timedelta(seconds=5.0),
# pylint: disable-next: line-too-long
battery_power_manager_algorithm: PowerManagerAlgorithm = PowerManagerAlgorithm.SHIFTING_MATRYOSHKA, # noqa: E501
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is needed somehow soon, but in the future I think it might make more sense to have copy what we have with the resampler_config and add a power_manager_config: PowerManagerConfig, and in there it can have something like power_manager_config.battery.algorithm` for example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-project-automation github-project-automation bot moved this from To do to Review approved in Python SDK Roadmap Dec 12, 2025
@llucax llucax added this to the v1.0.0-rc2300 milestone Dec 12, 2025
@shsms shsms added this pull request to the merge queue Dec 12, 2025
Merged via the queue into frequenz-floss:v1.x.x with commit 615288c Dec 12, 2025
5 checks passed
@shsms shsms deleted the algo-selector branch December 12, 2025 13:44
@github-project-automation github-project-automation bot moved this from Review approved to Done in Python SDK Roadmap Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:microgrid Affects the interactions with the microgrid

Projects

Development

Successfully merging this pull request may close these issues.

3 participants