Skip to content

Commit 0399bdc

Browse files
authored
PowerDistributing: Add support for n:m relations in invs:bats (#660)
- Allow component graph to be a DAG instead of a tree - Fix comments in tests - Don't guess missing power bounds from adjacent components - GraphGenerator: Add function to generate list of components - PowerDistributing: Add n:m support for inverters:batteries refs #501
2 parents 284b403 + 3d23371 commit 0399bdc

File tree

8 files changed

+1356
-248
lines changed

8 files changed

+1356
-248
lines changed

RELEASE_NOTES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232

3333

3434

35+
- The PowerDistributingActor now supports n:m relations between inverters and
36+
batteries.
37+
This means that one or more inverters can be connected to one or more batteries.
38+
39+
3540
## Bug Fixes
3641

3742
- Fix rendering of diagrams in the documentation.

src/frequenz/sdk/actor/power_distributing/_distribution_algorithm/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"""Utilities to manage power in a microgrid."""
55

66
from ._distribution_algorithm import (
7+
AggregatedBatteryData,
78
DistributionAlgorithm,
89
DistributionResult,
910
InvBatPair,
@@ -13,4 +14,5 @@
1314
"DistributionAlgorithm",
1415
"DistributionResult",
1516
"InvBatPair",
17+
"AggregatedBatteryData",
1618
]

0 commit comments

Comments
 (0)