pwrs.core.newtonpf_S_cart#
- pwrs.core.newtonpf_S_cart.newtonpf_S_cart(Ybus, Sbus, V0, ref, pv, pq, mpopt=None)[source]#
Solve a power flow using full Newton’s method (power/cartesian).
- Parameters:
Ybus (array_like or sparse matrix) – Full system admittance matrix for all buses.
Sbus (callable) – Callable returning the complex bus power injection vector for all buses as a function of bus voltage magnitudes.
V0 (array_like) – Initial complex bus voltage vector.
ref (array_like) – Reference bus index vector. Included for MATLAB interface compatibility.
pv (array_like) – Bus indices for PV buses.
pq (array_like) – Bus indices for PQ buses.
mpopt (dict, optional) – MATPOWER options dict controlling tolerance, maximum Newton iterations and linear solver selection.
- Returns:
(V, converged, i)containing the final complex bus voltages, a convergence flag, and the iteration count.- Return type:
tuple
Notes
This variant uses nodal power balance equations with a cartesian voltage representation.
See also
runpf,newtonpf,newtonpf_I_polar,newtonpf_I_cart