Compensation strategy for an active flicker compensator