gym_anm.simulator.components.devices.Load

class gym_anm.simulator.components.devices.Load(dev_spec, bus_ids, baseMVA)[source]

Bases: Device

A passive load connected to an electric 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)

Map p to the closest (P, Q) feasible power injection point.

map_pq(p)[source]

Map p to the closest (P, Q) feasible power injection point.

Parameters:

p (float) – The desired \(P_l\) power injection point (p.u.).