This paper presents a waveform matching technique for fault diagnosis in high voltage transmission lines, aiming to improve accuracy in detecting and isolating faults. It utilizes digital fault recorders and simulation data to optimize fault location by minimizing discrepancies between actual and expected waveforms. The study employs evolutionary algorithms, particularly a bare bones particle swarm optimizer and bat optimization, to enhance the effectiveness of fault diagnosis methods in power systems.