gym_anm.simulator.components.devices.RenewableGen
- class gym_anm.simulator.components.devices.RenewableGen(dev_spec, bus_ids, baseMVA)[source]
Bases:
Generator
A renewable energy source 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
- map_pq(p, q)
Map (p, q) to the closest (P, Q) feasible power injection point.
- Parameters:
p (float) – The desired (P, Q) power injection point (p.u.).
q (float) – The desired (P, Q) power injection point (p.u.).