pwrs.core.newtonpf_I_hybrid#
- pwrs.core.newtonpf_I_hybrid.newtonpf_I_hybrid(Ybus, Sbus, V0, ref, pv, pq, mpopt=None)[source]#
Solve a power flow using full Newton’s method (current/hybrid).
- 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 current balance equations with a hybrid voltage representation, where a polar update is computed using a cartesian Jacobian.
See also
runpf,newtonpf,newtonpf_S_cart,newtonpf_I_polar