gym_anm.simulator.solve_load_flow.solve_pfe_newton_raphson
- gym_anm.simulator.solve_load_flow.solve_pfe_newton_raphson(simulator, xtol=1e-05)[source]
Solve load flow using the Newton-Raphson iterative algorithm.
This function directly updates all the bus and branch variables in the simulator object.
- Parameters:
simulator (simulator.Simulator) – The electricity network simulator.
xtol (float, optional) – The desired tolerance in the solution.
- Returns:
V (numpy.ndarray) – The (N,) complex bus voltage vector.
stable (bool) – True if the algorithm has converged for the desired tolerance; False otherwise.