Skip to content

Commit 1d182bf

Browse files
committed
example alternative shifting algo
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 0c5be7c commit 1d182bf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/frequenz/sdk/microgrid/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@
286286
287287
Battery bounds available for use: -100kW to 100kW
288288
289+
##### Shifting or Limiting
290+
289291
| pri | available bounds | req bounds | req power | s/l | power in range | cumulative power |
290292
|-----|------------------|----------------|-----------|--------|----------------|------------------|
291293
| 7 | -100kW .. 100kW | None | 10kW | shifts | 10kW | 10kW |
@@ -298,6 +300,20 @@
298300
| 0 | -52kW .. 18kW | -40kW .. -10kW | -10kW | limits | -10kW | -28kW |
299301
| | | | | | target power | -28kW |
300302
303+
##### Shifting and Limiting
304+
305+
| pri | available bounds | req bounds | req power | power in range | cumulative power |
306+
|-----|------------------|----------------|-----------|----------------|------------------|
307+
| 7 | -100kW .. 100kW | None | 10kW | 10kW | 10kW |
308+
| 6 | -110kW .. 90kW | -110kW .. 80kW | 10kW | 10kW | 20kW |
309+
| 5 | -120kW .. 70kW | -100kW .. 80kW | 80kW | 70kW | 90kW |
310+
| 4 | -190kW .. 0kW | None | -120kW | -120kW | -30kW |
311+
| 3 | -70kW .. 120kW | None | 60kW | 60kW | 30kW |
312+
| 2 | -130kW .. 60kW | -40kW .. 30kW | 20kW | 20kW | 50kW |
313+
| 1 | -60kW .. 10kW | None | 12kW | 10kW | 60kW |
314+
| 0 | -70kW .. 0kW | -40kW .. -10kW | -10kW | -10kW | 50kW |
315+
| | | | | target power | 50kW |
316+
301317
In this example, there are some shifting and some limiting actors, and each of
302318
them affect the lower priority actors in the same patterns mentioned above.
303319
""" # noqa: D205, D400

0 commit comments

Comments
 (0)