The power quality (PQ) is a major issue for both electrical utilities and their customers. nonlinear loads cause PQ problems like current harmonics, voltage frequency deviation, sag swell. A unified conditioner (UPQC) utilized in this research to minimize these problems. UPQC made up of two active filters (APFs), one which connected the line series other parallel. Unit Vector Template Generatio...