Microgrid
Microgrid
A simulated energy system.
A microgrid is a collection of actors (exogenous consumers and producers), dispatchables (controllable resources like batteries), and a dispatch policy that governs their interaction. It can also be connected to the public grid.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
world
|
World
|
The mosaik world instance. |
required |
step_size
|
int
|
The step size of the simulation in seconds. |
required |
actors
|
list[Actor]
|
The exogenous actors in the microgrid. |
required |
dispatchables
|
list[Dispatchable]
|
The dispatchable resources in the microgrid. |
required |
policy
|
DispatchPolicy
|
The |
required |
grid_signals
|
Optional[dict[str, Signal]]
|
Optional signals from the public grid. |
None
|
name
|
Optional[str]
|
Optional name for the microgrid. |
None
|
coords
|
Optional[tuple[float, float]]
|
Optional coordinates (latitude, longitude) for visualizing the microgrid's location in the dashboard. |
None
|
Source code in vessim/microgrid.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | |
finalize
Clean up in case the simulation was interrupted.
Mosaik already has a cleanup functionality but this is an additional safety net in case the user interrupts the simulation before entering the mosiak event loop.
Source code in vessim/microgrid.py
93 94 95 96 97 98 99 100 | |
MicrogridState
Bases: TypedDict
State of a microgrid.
This state is passed to Controllers on every step.
Source code in vessim/microgrid.py
15 16 17 18 19 20 21 22 23 24 25 26 | |