Construction of search method for optimal interconnection pattern in distribution system operated by multiple loops