gym_anm.simulator.components.bus.Bus
- class gym_anm.simulator.components.bus.Bus(bus_spec)[source]
Bases:
object
A bus (or node) of an electric power grid.
- id
The bus unique ID \(i\).
- Type:
int
- type
The bus type (0 = slack, 1 = PQ).
- Type:
int
- baseKV
The base voltage of the region (kV).
- Type:
float
- is_slack
True if it is the slack bus; False otherwise.
- Type:
bool
- v_min, v_max
The minimum and maximum RMS voltage magnitudes \([\underline V_i, \overline V_i]\) (p.u.).
- Type:
float
- v_slack
The fixed voltage magnitude (used only for slack bus, set to
v_max
) (p.u.).- Type:
float
- v
The complex bus voltage \(V_i\) (p.u.).
- Type:
complex
- i
The complex bus current injection \(I_i\) (p.u.).
- Type:
complex
- p, q
The active \(P_i\) (p.u.) and reactive \(Q_i\) (p.u.) power injections at the bus.
- Type:
float
- p_min, p_max, q_min, q_max
The bounds on the feasible active and reactive power injections at the bus, computed as the sum of the bounds of the devices connected to the bus (p.u.).
- Type:
float
- __init__(bus_spec)[source]
- Parameters:
bus_spec (array_like) – The corresponding bus row in the network file describing the network.
Methods
__init__
(bus_spec)- param bus_spec:
The corresponding bus row in the network file describing the network.
Attributes
- raises AttributeError:
If the bus is not the slack bus.
- property v_slack
- Raises:
AttributeError – If the bus is not the slack bus.