Integrated security control using an optimal power flow and switching concepts | Synapse