Actor
Actor
An exogenous energy consumer or producer based on a Signal.
Actors represent non-dispatchable energy devices whose power output is determined externally like solar panels, wind turbines, or (compute) loads.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the actor. |
required |
signal
|
Signal
|
The |
required |
consumer
|
bool
|
If True, the signal value is negated (Vessim convention: consumption is negative, production is positive). Defaults to False. |
False
|
step_size
|
Optional[int]
|
The step size of the actor in seconds. If None, the step size of the microgrid is used. |
None
|
Source code in vessim/actor.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 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 | |
power
Current power consumption/production at elapsed time since sim_start.
Source code in vessim/actor.py
40 41 42 43 | |
config
Static configuration of the actor. Used for experiment config export.
Source code in vessim/actor.py
45 46 47 48 49 50 51 52 | |
state
Dynamic state of the actor at elapsed time since sim_start.
This can be extended to include any relevant information about e.g. internal states of simulators that may be useful for control (e.g. temperature) or logs.
Source code in vessim/actor.py
54 55 56 57 58 59 60 | |
finalize
Clean up resources.
Source code in vessim/actor.py
62 63 64 | |