Research on Optimization Method of Automatic Switching Location of Complex Medium Voltage Distribution Network