A General-Purpose Version of the Fast Decoupled Loadflow