gym_anm.envs.anm6_env.rendering.py.rendering.update
- gym_anm.envs.anm6_env.rendering.py.rendering.update(ws_address, cur_time, year_count, p, q, s, soc, p_potential, bus_v_magn, costs, network_collapsed)[source]
Update the visualization of the environment.
- Parameters:
ws_address (str) – The address of the listening WebSocket server.
cur_time (datetime.datetime) – The time corresponding to the state of the network.
year_count (int) – The number of full years passed since the last reset of the environment.
p (list of float) – The real power injection from each device (MW).
q (list of float) – The reactive power injection from each device (MVAr).
s (list of float) – The apparent power flow in each branch (MVA).
soc (list of float) – The state of charge of each storage unit (MWh).
p_potential (list of float) – The potential real power generation of each VRE device before curtailment (MW).
bus_v_magn (list of float) – The voltage magnitude of each bus (pu).
costs (list of float) – The total energy loss and the total penalty associated with operating constraints violation.
network_collapsed (bool) – True if no load flow solution is found (possibly infeasible); False otherwise.