An intelligent algorithm for smart grid protection applications door