Security enhancement using an optimal switching power flow | Synapse