The harmonic compensation currents proportional to the harmonic current in the primary winding, which is detected real-timely, are injected to the multiple secondary winding of the transformer.
The fundamental component of the primary windings is detected and tracked so as to produce multiple compensation currents, which are injected to the multiple secondary windings.