Solar photo-voltaic (SPV) is a major contributor of renewable energy (RE) sources, which plays an important role in tackling climate change, reducing the cost of energy, improving the reliability of power supply. AI Artificial intelligenceANN Artificial neural networkANSI. The current challenges associated with conventional energy sources (natural gas, oil, and coal) are climate change, fuel dependency, economy, and integration of renewable energ. According to the IEEE (Institute of Electrical and Electronics Engineers) dictionary, the definition of power quality is “Power quality is the concept of powering and grounding sensitive equipm. The DFATCS devices are flexible AC transmission system (FACTS) devices utilized in the distribution grid to maintain power quality by controlling line impedance, phase angle, curr. The performance of grid-tied solar PV depends upon the DFACTS controller and control algorithms. The switching signal of controllers is generated using a variety of control algorithm.