In this paper, a comparison of two renowned optimization approaches, Genetic Algorithm (GA) and Simulated Annealing (SA) are presented to pick the best fault correction strategy of a system using a scheme of Proportional-Integral-Derivative (PID) controller and Matrix Converter (MC). Monitoring the measured load currents is used to design the proposed fault detection and correction technique. PID control strategy provides real-time regulation in a closed-loop system. The proper design of MC circuits loaded by unbalanced passive RL load is performed. MATLAB/SIMULINK is used to evaluate the proposed fault correction methodology's success and prove the effectiveness of the proposed techniques. Regarding fault correction, the results show that employing a GA to select the best PID controller design has several superior features over SA in diminishing settling time and overshoot.