Solar photovoltaic (PV) systems generate direct current, which is converted to alternating current by an inverter (inverter). This switching process always causes some degree of harmonic contamination. In addition, when there is a lot of solar irradiation and low offtake, the voltage in the system can get so high that inverters fail to protect the grid. This leads to yield losses.