A method for controlling a three-phase voltage source inverter, the voltage source inverter having an output capacitor and an output resistor coupled across the voltage source inverter, each phase of the voltage source inverter coupled to a corresponding phase of a three-phase power distribution system via a corresponding inductor, the three phase power distribution system providing a source voltage and a source current for each phase to a corresponding three phase load, the method comprising the steps of:
- determining the source voltage in each phase;
- determining the source current in each phase;
- converting the determined source voltage and the determined source current from a multi-phase vector into a two dimensional source voltage and source current expressed in stationary coordinates;
- determining the output voltage across the output capacitor;
- estimating a plurality of pre-selected harmonic components of the periodic disturbance which is a function of the unknown system parameters, the source current, the source voltage, and their time derivatives, the estimate expressed in stationary coordinates;
- providing a reference voltage;
- determining a source reference current;
- determining a proportional gain term as a function of the source current and the source reference current;
- determining a first control vector as a function of the source voltage, the proportional gain term, and the estimated harmonic components;
- and
- determining an output control vector as a function of the output voltage and the first control vector.