Stav dette: Adaptive Switching Control of Large-Scale Complex Power Systems