Formulation of static power flow equations and solutions