Also, since a voltage compensator in accordance with the present invention may be controlled to cancel negative and zero sequence currents, the present invention also performs the function of a line conditioner system for restoring a three-phase balanced condition to systems which have become unbalanced, such as by the application of an unbalanced load.