Logic selectivity for an automatic reclosing and reconfiguration of electrical distribution systems