A new emergency control method and a preventive mechanism against cascaded events to avoid large-scale blackouts