pwrs.core.newtonpf_S_hybrid#

pwrs.core.newtonpf_S_hybrid.newtonpf_S_hybrid(Ybus, Sbus, V0, ref, pv, pq, mpopt=None)[source]#

Solve a power flow using full Newton’s method (power/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 power balance equations with a hybrid voltage representation, where a polar update is computed using a cartesian Jacobian.

See also

runpf, newtonpf, newtonpf_I_polar, newtonpf_I_cart