gym_anm.simulator.components.devices.Generator
- class gym_anm.simulator.components.devices.Generator(dev_spec, bus_ids, baseMVA)[source]
Bases:
Device
A generator connected to an electrical power grid.
- __init__(dev_spec, bus_ids, baseMVA)[source]
- Parameters:
dev_spec (numpy.ndarray) – The corresponding device row in the network file describing the network.
bus_ids (list of int) – The list of unique bus IDs.
baseMVA (int) – The base power of the network.
Methods
__init__
(dev_spec, bus_ids, baseMVA)- param dev_spec:
The corresponding device row in the network file describing the
map_pq
(p, q)Map (p, q) to the closest (P, Q) feasible power injection point.
Attributes
p_pot