upqc is a Custom Power Device and consists of combined series active power fi lter that compensates voltage harmonics, voltage unbalance, voltage fl icker, voltage sag/swell and shunt active power fi lter that compensates current harmonics, current unbalance and reactive current