I. Introduction
In the last decades, the increasing utilization of semiconductor and power electronics devices generated a great amount of nonlinear loads connected to the distribution systems. These loads inject harmonic components in the grid currents that also generate harmonic voltage components at the grid mains [1], [2]. In addition, voltage sags can be caused by faults in the distribution system, starting large motors, turning on/off high-power loads [3]. In four-wire systems, unbalanced conditions may also be found, such as asymmetrical faults and poorly distributed nonlinear loads, leading to unbalanced grid voltages and currents, and neutral currents with excessively high amplitudes, requiring oversized neutral conductors and causing deteriorating of equipment, such as transformers [4]. In this context, unified power quality conditioners (UPQCs) have gained relevance, due to their ability to mitigate disturbances of both grid currents and load voltages [5].