This document compares the performance of an artificial neural network (ANN) based control scheme to an instantaneous reactive power theory (IRPT) based control scheme for a unified power quality conditioner (UPQC). The UPQC is used to mitigate both voltage and current-related power quality issues. Simulation results show that both control schemes can effectively compensate for voltage sags and swells, but the ANN control scheme provides faster dynamic response and improved stability.