# Patent

## Title
Robust controller for controlling a UPS in unbalanced operation

## Abstract

A controller (236) for an uninterruptible power supply (UPS) compensates for harmonic distortion in the output current (224,26,228). The controller also provides a control vector (230) also with input from the adaptation processor (234).

## Background
CROSS REFERENCE TO RELATED APPLICATIONS
This application claims the benefit of 60/255,654 filed on Dec. 14, 2000.


STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT
Part of the work leading to this invention was carried out with United States Government support provided under a grant from the Office of Naval Research, Grant No. N00014-97-1-0704. Therefore, the U.S. Government has certain rights in this invention.


BACKGROUND OF THE INVENTION
Uninterruptible Power Supplies (UPS) systems are integral and important components in modern electronic systems used by businesses and individuals. A UPS can be used to compensate for voltage sags in the line voltage, and may provide power to the various electronic and electrical systems coupled to it in the event that the line voltage suffers a voltage/current interruption. The quality of the power provided by a UPS system depends upon many factors. Some of these factors include the quality of the output voltage regulation, the total harmonic distortion introduced by the UPS into the power distribution system, the output impedance of the UPS, the response of the UPS to transient events in the line voltage, the operation of the UPS with uncertain parameters such as the load inductance and capacitance, and the operation of the UPS with non-linear/distorted loads. Feedback control systems that control the UPS voltage, frequency, and amplitude are often used to increase the quality of the UPS output.
Prior art controllers for a UPS include a single voltage control loop using proportional-integral (PI) control laws, using a dead-beat controller, a sliding mode controller, and nesting the output voltage and inductor current control loops inside one another, wherein the output voltage typically is a PI loop and he current loop typically is a high-gain loop. Although these controllers provide a sufficient response to many transient disturbances, these controllers do not effectively compensate for harmonic distortion on the output voltage due to non-linear/distorted loads.
It would be advantageous therefore to provide a controller for a UPS that compensates for the harmonic distortion due to non-linear/distorted loads and that is easy to construct, globally stable, and ideally is a linear time invariant system.
BRIEF SUMMARY OF THE INVENTION
A method and apparatus for generating a control algorithm or law for an Uninterrupted Power Supply (UPS) is disclosed. The controller provides for tracking a three-phase sinusoidal reference signal and the suppression of harmonic signals present on the UPS output such that the output of the UPS is balanced. The controller measures the current in each phase in each corresponding series inductor, measures the output voltage across each corresponding parallel capacitor, and determines a control vector therefrom. The control vector being provided to the UPS. The control vector includes two components that generated by two processors and are combined together. The first component is a proportional gain control signal that is generated by a proportional gain processor. The second component is a filtered control signal that is generated by a harmonic compensator processor.
Due to uncertainties in the components that make up the UPS and in the load, an adaptation processor is used to estimate certain quantities. In particular, the adaptation processor estimates the coefficients of a pre-selected group of harmonics that are present in the output current. The coefficients are provided to the harmonic compensator and used by the harmonic compensator to suppress a selected group of harmonic signals that may be present in the output current. In one embodiment, the adaptation processor also estimates the value of the series inductance corresponding to each phase. The estimated series inductance is provided to the proportional gain processor and the harmonic compensator and used by each in determining the proportional gain control signal and the filtered control signal.
In another embodiment, a predetermined value of the series inductance is provided to the proportional gain processor and the harmonic compensator and used by each in determining the proportional gain control signal and the filtered control signal. As a result, the controller turns out to be linear time invariant (LTI). The value of the series inductance is selected to ensure that the controller is robust in the sense that it is globally stable under parameter uncertainties and in the presence of large signals. In one embodiment, the harmonic compensators are second order resonant filters that make use of the estimated coefficients of the pre-selected group of harmonics. All calculations in the adaptation processor and the control vector processor are carried out in stationary α, β coordinates instead of three-dimensional phase coordinates.
Other forms, features, and aspects of the above-described methods and system are described in the detailed description that follows.



BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWING
The invention will be more fully understood from the following detailed description taken in conjunction with the accompanying drawings in which:
FIG. 1 is a schematic diagram of a prior art Uninterrupted Power Supply (UPS);
FIG. 2 is a block diagram of a controller suitable for use with the control algorithm described herein;
FIG. 3 is a block diagram of a controller suitable for use with the control algorithm described herein;
FIG. 4 is a block diagram of another embodiment of the control algorithm described herein; and
FIG. 5 is a block diagram of another embodiment of the control algorithm described herein.



DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 depicts a basic Uninterruptible Power Supply (UPS) system. In particular, the UPS 102 includes a six switch three-phase voltage source inverter (VSI) 104 coupled to a DC voltage source 106 that has a voltage magnitude of E volts. The VSI 104 switches the six switches on and off in a controlled manner to provide a switched sinusoidal voltage output on each phase. Under a balanced load condition each of the three phases will have voltage and current equal to the other two phases, separated by a given phase angle. In the embodiment illustrated in FIG. 1 the UPS provides a voltage output for 3 phases that will be phased approximately one-hundred-twenty degrees of phase apart. For each phase, the UPS voltage Eu1, Eu2, and Eu3 at nodes 108, 110, and 112 respectively are filtered by a resonant LC filter corresponding to that particular phase. In the embodiment depicted in FIG. 1 a series inductor 115 and parallel capacitor 121 filter the voltage Eu1 to provide an output voltage vC1 at node 120. A series inductor 117 and parallel capacitor 123 filter the voltage Eu2 to provide an output voltage vC2 at node 122. A series inductor 119 and parallel capacitor 125 filter the voltage Eu3 to provide an output voltage vC3 at node 124. However, the filtering of each of the voltages Eu1, Eu2, and Eu3 is not perfect since the actual value of the series inductance and parallel capacitance for each phase is affected by the parasitic inductance and capacitance inherent in the power distribution system and the load. In particular, the cables used in the power distribution network and the parasitic inductances between the cables affect the value of the series inductance in each phase. If the load for each phase has different values of inductance, capacitance, or resistance the load will be unbalanced and harmonic distortion can result. In general, the value of the series inductance and the parallel capacitance for each phase are therefore either unknown constants or are values that slowly vary over time. Output current iO1, iO2, and iO3 are currents 138, 140, and 142 respectively and inductor currents iL1, iL2, and iL3 are currents 114, 116, and 118. The system dynamics for the UPS in FIG. 1 are given by: 



  
    
      
        
          
            
              
                
                  d
                  
                    d
                    t
                  
                
                ⁢
                
                  i
                  L
                
              
              =
              
                
                  
                    -
                    
                      1
                      L
                    
                  
                  ⁢
                  
                    v
                    C
                  
                
                +
                
                  
                    E
                    L
                  
                  ⁢
                  u
                
              
            
          
        
        
          
            
              
                
                  d
                  
                    d
                    t
                  
                
                ⁢
                
                  v
                  C
                
              
              =
              
                
                  1
                  C
                
                ⁢
                
                  (
                  
                    
                      i
                      L
                    
                    -
                    
                      i
                      O
                    
                  
                  )
                
              
            
          
        
      
    
    
      
        (
        1
        )
      
    
  




where iL, vC, u, and iO are all vector quantities of the form X=[xα, xβ]T expressed in stationary α, β coordinates, and parameters L, C, E, are discussed above. The output current, iO, is an unbalanced signal that can be expressed as a combination of a fundamental component, at a fixed frequency ω, and one or more preselected harmonics. Thus, iO can be expressed as: 



  
    
      
        
          i
          O
        
        =
        
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              
                e
                
                  J
                  ⁢
                  
                     
                  
                  ⁢
                  ω
                  ⁢
                  
                     
                  
                  ⁢
                  k
                  ⁢
                  
                     
                  
                  ⁢
                  t
                
              
              ⁢
              
                I
                
                  O
                  ,
                  k
                
                p
              
            
          
          +
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              
                e
                
                  
                    -
                    J
                  
                  ⁢
                  
                     
                  
                  ⁢
                  ω
                  ⁢
                  
                     
                  
                  ⁢
                  k
                  ⁢
                  
                     
                  
                  ⁢
                  t
                
              
              ⁢
              
                I
                
                  O
                  ,
                  k
                
                n
              
            
          
        
      
    
    
      
        (
        2
        )
      
    
  




where the vectors IpO,k, InO,k ∈ R2 and are the kth harmonic coefficients for the positive and negative sequences describing the output current iO and H={1, 2, 3, . . . } is the set of pre-selected harmonic components of iO, and I=[[0, −1];[1,0]]. In general, the harmonic coefficients IpO,k, InO,k are also assumed to be unknown constants, or values that slowly change over time.

FIG. 2 depicts a block diagram of a controller suitable for executing the control laws described herein. In particular, FIG. 2 includes a UPS system that includes a DC voltage 202 that is coupled to a UPS 204. The UPS 204 receives a three phase control vector 230 from 3/2 converter 232 connected to a controller 236. The UPS 204 is responsive to the control vector 230 by providing a three phase output control voltages consisting of output voltages Eu1, Eu2, and Eu3. Series inductors 215, 217, and 219 each correspond to an output phase and form part of the resonant filter as described above with respect to FIG. 1. The actual value of the series inductors 215, 217, and 219 are not known since each series inductor also includes the unknown parameters of the power distribution system and load. Each of the inductors 215, 217, and 219 have corresponding inductor currents iL1 224, iL2 226, and iL3 228. Parallel capacitors 221, 223, and 225 each correspond to an output phase and form a part of the resonant filter as described above with respect to FIG. 1. The actual values of each parallel capacitors 221, 223, and 225 are not known since each parallel capacitor includes unknown parameters of the power distribution network and a load 227. An output voltage is taken across each capacitor vc1 220, vc2 222, and vc3 218.
A three-phase current sensor 212 detects and measures the inductor current 224, 226, and 228 in each phase and provides the three current measurement signals to a 3/2 three-phase to stationary coordinate transformation module (3/2 converter) 214. Alternatively, an estimator may be constructed to estimate the inductor current in each phase and provide the estimated three current estimates to the 3/2 converter 214. The 3/2 converter 214 provides the inductor current as a two dimensional representation of the inductor current in α and β stationary coordinates. Similarly, a three-phase voltage sensor 216 detects and measures the output voltage 220, 222, and 218 across each of the three parallel capacitors 221, 223, and 225 respectively, and provides the three voltage measurements to the 3/2 converter 214. Alternatively, an estimator may be constructed to estimate the voltage in each phase and provide the estimated three voltage estimates to the 3/2 converter 214. The 3/2 converter 214 provides the output voltage as a two dimensional representation of the output voltage in α and β stationary coordinates. A three-phase reference voltage 229 having a magnitude of vC* that is a purely sinusoidal voltage having only a fundamental frequency with substantially no harmonic distortion provides the three-phase reference voltages to the 3/2 converter 214. The 3/2 converter 214 provides the reference voltage as a two dimensional representation of the three-phase reference voltage in a and A stationary coordinates.
An adaptation processor 234 is coupled to the 3/2 converter 214 and receives both the output voltage and the reference voltage in stationary coordinates from the 3/2 converter 214. As will be explained in more detail below, the adaptation processor 234 estimates the harmonic components contained in the inductor current in α and β stationary coordinates and in one embodiment, also estimates the series inductance values in stationary coordinates.
A control processor 236 is coupled to the adaptation processor 234 and receives the estimated values therefrom. The control processor 236 further receives the output voltage, the inductor current, and the reference voltage in stationary coordinates from the 3/2 converter 214. In one embodiment, the control processor 236 utilizes the inductor current, the output voltage, the reference voltage, and the estimates of the harmonic components and series inductance value in stationary coordinates, to compute an output control vector 231 in stationary coordinates which is converted into a three phase control signal 230 by the 2/3 converter 232. In another embodiment, the control processor does not use the estimated series inductance value, but rather a predetermined inductance value is selected that will provide robust stability for the controller.
FIG. 3 depicts the block diagram of such an embodiment, where the adaptive processor 234 of FIG. 2 is replaced by a plurality of harmonic filters 334. The plurality of harmonic filters 334 utilize the output voltage and the reference voltage in stationary coordinates provided by the 3/2 converter 314 to produce a periodic signal containing the pre-selected compensating harmonic signals. The controller 336 utilizes the a periodic signal plus the inductor current, the output voltage and the reference voltage in stationary coordinates provided by the 3/2 converter 314 to compute an output control vector 330 in stationary coordinates that is then converted into the three phase signal 330 by the 2/3 converter 332. The other components operate as described above with respect to FIG. 2.
The control objective of the controller 236 (336) described herein is to provide control voltages, Eu1 206 (306), Eu2 208 (308), and Eu3 210 (310) that track the balanced sinusoidal reference voltage v*C 229 (329). The equilibrium point for the controller 236 and 336 depicted in FIGS. 2 and 3 is given by:

īL=iO+IωCvC*  (3)

As discussed above, the reference voltage vC* 229 (329) is purely sinusoidal and consists only of the fundamental frequency with no harmonics. Thus, the inductance current provides the values of the pre-selected harmonic components of the load current. The system of equations in equation 1 may be written as: 



  
    
      
        
          
            
              
                L
                ⁢
                
                  d
                  
                    d
                    t
                  
                
                ⁢
                
                  
                    i
                    _
                  
                  L
                
              
              =
              
                
                  -
                  
                    
                      v
                      ~
                    
                    C
                  
                
                +
                Eu
                -
                
                  v
                  C
                  *
                
                -
                
                  L
                  ⁢
                  
                    d
                    
                      d
                      t
                    
                  
                  ⁢
                  
                    i
                    L
                    *
                  
                
              
            
          
        
        
          
            
              
                C
                ⁢
                
                  d
                  
                    d
                    t
                  
                
                ⁢
                
                  
                    v
                    ~
                  
                  C
                
              
              =
              
                
                  
                    i
                    ~
                  
                  L
                
                +
                
                  i
                  L
                  *
                
                -
                
                  (
                  
                    
                      i
                      O
                    
                    +
                    
                      J
                      ⁢
                      
                         
                      
                      ⁢
                      ω
                      ⁢
                      
                         
                      
                      ⁢
                      C
                      ⁢
                      
                         
                      
                      ⁢
                      
                        v
                        C
                        *
                      
                    
                  
                  )
                
              
            
          
        
      
    
    
      
        (
        4
        )
      
    
  




where Eu is the proposed controller to be discussed in more detail below, and ĩL=iL−īL, {tilde over (v)}=vC−vC*, and 



  
    
      d
      
        d
        t
      
    
    ⁢
    
      v
      C
      *
    
  
  =
  
    J
    ⁢
    
       
    
    ⁢
    ω
    ⁢
    
       
    
    ⁢
    
      
        v
        C
        *
      
      .
    
  




A control law suitable for providing a UPS with a suitable control vector is given by: 



  
    
      
        Eu
        =
        
          
            -
            
              
                R
                1
              
              ⁡
              
                (
                
                  
                    i
                    L
                  
                  -
                  
                    
                      i
                      ^
                    
                    L
                  
                
                )
              
            
          
          -
          
            
              R
              2
            
            ⁢
            
              
                v
                ~
              
              C
            
          
          +
          
            v
            C
            *
          
          +
          
            
              L
              ^
            
            ⁢
            
              d
              
                d
                t
              
            
            ⁢
            
              
                i
                ^
              
              L
            
          
        
      
    
    
      
        (
        5
        )
      
    
  




where ^ indicates an estimated quantity, and ĩL=iL−îL is redefined, and where îL is being used as the estimate for īL.

Using the control law in Eq. (5), the closed loop dynamics are given by: 



  
    
      
        
          
            
              
                L
                ⁢
                
                  d
                  
                    d
                    t
                  
                
                ⁢
                
                  
                    i
                    ~
                  
                  L
                
              
              =
              
                
                  
                    -
                    
                      R
                      1
                    
                  
                  ⁢
                  
                    
                      i
                      ~
                    
                    L
                  
                
                -
                
                  
                    (
                    
                      1
                      +
                      
                        R
                        2
                      
                    
                    )
                  
                  ⁢
                  
                    
                      v
                      ~
                    
                    C
                  
                
                +
                
                  
                    L
                    ~
                  
                  ⁢
                  
                    d
                    
                      d
                      t
                    
                  
                  ⁢
                  
                    
                      i
                      ^
                    
                    L
                  
                
              
            
          
        
        
          
            
              
                C
                ⁢
                
                  d
                  
                    d
                    t
                  
                
                ⁢
                
                  
                    v
                    ~
                  
                  C
                
              
              =
              
                
                  
                    i
                    ~
                  
                  L
                
                +
                
                  ɛ
                  L
                
              
            
          
        
      
    
    
      
        (
        6
        )
      
    
  




where {tilde over (L)}={circumflex over (L)}−L. Let īL=iO+IωCvC* be an unknown signal that has the form: 



  
    
      
        
          
            i
            _
          
          L
        
        =
        
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              
                e
                
                  J
                  ⁢
                  
                     
                  
                  ⁢
                  ω
                  ⁢
                  
                     
                  
                  ⁢
                  k
                  ⁢
                  
                     
                  
                  ⁢
                  t
                
              
              ⁢
              
                
                  I
                  _
                
                
                  L
                  ,
                  k
                
                p
              
            
          
          +
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              
                e
                
                  
                    -
                    J
                  
                  ⁢
                  
                     
                  
                  ⁢
                  ω
                  ⁢
                  
                     
                  
                  ⁢
                  k
                  ⁢
                  
                     
                  
                  ⁢
                  t
                
              
              ⁢
              
                
                  I
                  _
                
                
                  L
                  ,
                  k
                
                n
              
            
          
        
      
    
    
      
        (
        7
        )
      
    
  




where īL has inherited the form of iO in equation (3). An estimate of this signal represented by îL is 



  
    
      
        
          
            i
            ^
          
          L
        
        =
        
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              
                e
                
                  J
                  ⁢
                  
                     
                  
                  ⁢
                  ω
                  ⁢
                  
                     
                  
                  ⁢
                  k
                  ⁢
                  
                     
                  
                  ⁢
                  t
                
              
              ⁢
              
                
                  I
                  ^
                
                
                  L
                  ,
                  k
                
                p
              
            
          
          +
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              
                e
                
                  
                    -
                    J
                  
                  ⁢
                  
                     
                  
                  ⁢
                  ω
                  ⁢
                  
                     
                  
                  ⁢
                  k
                  ⁢
                  
                     
                  
                  ⁢
                  t
                
              
              ⁢
              
                
                  I
                  ^
                
                
                  L
                  ,
                  k
                
                n
              
            
          
        
      
    
    
      
        (
        8
        )
      
    
  




where ÎL,kp and ÎL,kn are estimates for ĪL,kp,ĪL,kn respectively. The estimation error signal εL=îL−īL becomes: 



  
    
      
        
          ɛ
          L
        
        =
        
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              
                e
                
                  J
                  ⁢
                  
                     
                  
                  ⁢
                  ω
                  ⁢
                  
                     
                  
                  ⁢
                  k
                  ⁢
                  
                     
                  
                  ⁢
                  t
                
              
              ⁢
              
                ɛ
                
                  L
                  ,
                  k
                
                p
              
            
          
          +
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              
                e
                
                  
                    -
                    Jω
                  
                  ⁢
                  
                     
                  
                  ⁢
                  k
                  ⁢
                  
                     
                  
                  ⁢
                  t
                
              
              ⁢
              
                ɛ
                
                  L
                  ,
                  k
                
                n
              
            
          
        
      
    
    
      
        (
        9
        )
      
    
  




where εL,kp=ÎL,kp−ĪL,kp and εL,kn=ÎL,kn−ĪL,kn. Estimation of the 3 unkown parameters is carried out by the following adaptive laws: 



  
    
      
        
          
            
              
                
                  
                    I
                    _
                  
                  .
                
                
                  L
                  ,
                  k
                
                p
              
              =
              
                
                  -
                  
                    γ
                    k
                  
                
                ⁢
                
                  e
                  
                    
                      -
                      J
                    
                    ⁢
                    
                       
                    
                    ⁢
                    ω
                    ⁢
                    
                       
                    
                    ⁢
                    k
                    ⁢
                    
                       
                    
                    ⁢
                    t
                  
                
                ⁢
                
                  
                    v
                    ~
                  
                  C
                
              
            
          
        
        
          
            
              
                
                  
                    I
                    _
                  
                  .
                
                
                  L
                  ,
                  k
                
                n
              
              =
              
                
                  -
                  
                    γ
                    k
                  
                
                ⁢
                
                  e
                  
                    J
                    ⁢
                    
                       
                    
                    ⁢
                    ω
                    ⁢
                    
                       
                    
                    ⁢
                    k
                    ⁢
                    
                       
                    
                    ⁢
                    t
                  
                
                ⁢
                
                  
                    v
                    ~
                  
                  C
                
              
            
          
        
        
          
            
              
                
                  L
                  ^
                
                .
              
              =
              
                
                  -
                  
                    γ
                    0
                  
                
                ⁢
                
                  
                    i
                    ~
                  
                  L
                  T
                
                ⁢
                
                  d
                  
                    d
                    t
                  
                
                ⁢
                
                  
                    i
                    ^
                  
                  L
                
              
            
          
        
      
    
    
      
        (
        10
        )
      
    
  




These adaptive laws can be shown to be globally stable in large signal sense. These adaptive laws are non-linear and can be complex to implement. Accordingly the complexity of the adaptive laws can be reduced if rotation matrices of the form eIωkl can be avoided. The following coordinate transformation is used to eliminate the eIωkl term:

îL,kp=eIωklÎL,kp

îL,kn=e−IωklÎL,kn  (11)

and therefore 



  
    
      
        
          
            i
            ^
          
          L
        
        =
        
          
            ∑
            
              k
              ∈
              H
            
          
          ⁢
          
            (
            
              
                
                  i
                  ^
                
                
                  L
                  ,
                  k
                
                p
              
              +
              
                
                  i
                  ^
                
                
                  L
                  ,
                  k
                
                n
              
            
            )
          
        
      
    
    
      
        (
        12
        )
      
    
  




The time derivatives of the transformed estimates are given by: 



  
    
      
        
          
            
              
                
                  d
                  
                    d
                    t
                  
                
                ⁢
                
                  
                    i
                    ^
                  
                  
                    L
                    ,
                    k
                  
                  p
                
              
              =
              
                
                  
                    -
                    
                      γ
                      k
                    
                  
                  ⁢
                  
                    
                      v
                      ~
                    
                    C
                  
                
                +
                
                  J
                  ⁢
                  
                     
                  
                  ⁢
                  k
                  ⁢
                  
                     
                  
                  ⁢
                  ω
                  ⁢
                  
                     
                  
                  ⁢
                  
                    
                      i
                      ^
                    
                    
                      L
                      ,
                      k
                    
                    p
                  
                
              
            
          
        
        
          
            
              
                
                  d
                  
                    d
                    t
                  
                
                ⁢
                
                  
                    i
                    ^
                  
                  
                    L
                    ,
                    k
                  
                  n
                
              
              =
              
                
                  
                    -
                    
                      γ
                      k
                    
                  
                  ⁢
                  
                    
                      v
                      ~
                    
                    C
                  
                
                -
                
                  J
                  ⁢
                  
                     
                  
                  ⁢
                  k
                  ⁢
                  
                     
                  
                  ⁢
                  ω
                  ⁢
                  
                     
                  
                  ⁢
                  
                    
                      i
                      ^
                    
                    
                      L
                      ,
                      k
                    
                    n
                  
                
              
            
          
        
      
    
    
      
        (
        13
        )
      
    
  




The time derivative of îL used in the controller in (5) is computed as: 



  
    
      
        
          
            d
            
              d
              t
            
          
          ⁢
          
            
              i
              ^
            
            L
          
        
        =
        
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              (
              
                
                  
                    d
                    
                      d
                      t
                    
                  
                  ⁢
                  
                    
                      i
                      ^
                    
                    
                      L
                      ,
                      k
                    
                    p
                  
                
                +
                
                  
                    d
                    
                      d
                      t
                    
                  
                  ⁢
                  
                    
                      i
                      ^
                    
                    
                      L
                      ,
                      k
                    
                    n
                  
                
              
              )
            
          
          =
          
            
              
                -
                2
              
              ⁢
              
                
                  v
                  ~
                
                C
              
              ⁢
              
                
                  ∑
                  
                    k
                    ∈
                    H
                  
                
                ⁢
                
                  γ
                  k
                
              
            
            +
            
              
                ∑
                
                  k
                  ∈
                  H
                
              
              ⁢
              
                J
                ⁢
                
                   
                
                ⁢
                k
                ⁢
                
                   
                
                ⁢
                ω
                ⁢
                
                   
                
                ⁢
                
                  (
                  
                    
                      
                        i
                        ^
                      
                      
                        L
                        ,
                        k
                      
                      p
                    
                    -
                    
                      
                        i
                        ^
                      
                      
                        L
                        ,
                        k
                      
                      n
                    
                  
                  )
                
              
            
          
        
      
    
    
      
        (
        14
        )
      
    
  




The expression for the adaptive controller (5) in terms of the new variables is given by: 



  
    
      
        Eu
        =
        
          
            
              -
              
                R
                1
              
            
            ⁢
            
              i
              L
            
          
          -
          
            
              (
              
                
                  2
                  ⁢
                  
                    L
                    ^
                  
                  ⁢
                  
                    
                      ∑
                      
                        k
                        ∈
                        H
                      
                    
                    ⁢
                    
                      γ
                      k
                    
                  
                
                +
                
                  R
                  2
                
              
              )
            
            ⁢
            
              
                v
                ~
              
              C
            
          
          +
          
            v
            C
            *
          
          +
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              [
              
                
                  
                    (
                    
                      
                        R
                        1
                      
                      +
                      
                        J
                        ⁢
                        
                           
                        
                        ⁢
                        k
                        ⁢
                        
                           
                        
                        ⁢
                        ω
                        ⁢
                        
                           
                        
                        ⁢
                        
                          L
                          ^
                        
                      
                    
                    )
                  
                  ⁢
                  
                    
                      i
                      ^
                    
                    
                      L
                      ,
                      k
                    
                    p
                  
                
                +
                
                  
                    (
                    
                      
                        R
                        1
                      
                      -
                      
                        J
                        ⁢
                        
                           
                        
                        ⁢
                        k
                        ⁢
                        
                           
                        
                        ⁢
                        ω
                        ⁢
                        
                           
                        
                        ⁢
                        
                          L
                          ^
                        
                      
                    
                    )
                  
                  ⁢
                  
                    
                      i
                      ^
                    
                    
                      L
                      ,
                      k
                    
                    n
                  
                
              
              ]
            
          
        
      
    
    
      
        (
        15
        )
      
    
  




The controller provided in (15) is non-linear due to the inclusion of the estimated inductance term and the associated dynamics in the second and fourth terms of Eq. (15). FIG. 4 depicts a block diagram of a realization of the adaptive control law of Eq. (15). In FIG. 4 and in the description that follows, all values are assumed to be two-dimensional vectors in α β stationary coordinates. In particular FIG. 4 depicts, a controller 400 implementing the control law of Eq. (15) and includes the measured inductor current iL as an input signal on line 402, the reference voltage v*C as an input on line 408 and the measured output voltage vC as an input on line 412, where as above, the * indicates a reference signal. The input inductor current on line 402 is multiplied in module 404 by a first constant R1 to form a first proportional control term. The reference voltage v*C on line 408 forms a feedforward control term. A second proportional control term 414 is a function of the difference between the reference voltage v*C on line 408 and the measured output voltage vC on line 412 formed by difference module 410. In particular, the second proportional control term 414 is the difference formed by difference module 410 multiplied by a constant 



  
    (
    
      
        2
        ⁢
        
          L
          ^
        
        ⁢
        
          
            ∑
            
              k
              ∈
              H
            
          
          ⁢
          
            γ
            k
          
        
      
      +
      
        R
        2
      
    
    )
  
  .




This constant includes the design parameter R2, which is greater than zero and selected for system stability. The plurality of γk are also predetermined design constants. Each one of the plurality of γk constants correspond to a corresponding one of the pre-selected harmonic components of the load current. The value of each individual γk is selected according to the desired compensation of the particular harmonic component. The adaptation processor 430, which executes the equations in (10) (12), and (13) operates as described above with respect to FIGS. 2 and 3, estimates the value of the series inductance via Eq (10), wherein the time derivative of the inductor current iL is provided by Eq. (14), and the necessary estimates of the pre-selected harmonic components are determined according to Eq. (13). The proportional gain term is formed in summing module 406 and is equal to the sum of the first proportional gain term and the feedforward term minus the second proportional gain term.

A plurality of k harmonic compensators 420 to 424 of the form [(R1+Ikω{circumflex over (L)})îL,kp+(R1−Ikω{circumflex over (L)})îL,kn] are used to provide a harmonic compensated control signal that is used in the formation of the control vector 442, u. The plurality of k harmonic compensators 420-424 receives the estimated series inductance value and the estimated harmonic components of the pre-selected k harmonics as an input signal, and provides as an output a harmonic compensated signal. As discussed above, the adaptation processor 430, which operates as described above with respect to FIGS. 2 and 3, estimates the value of the series inductance via Eq (10), wherein the time derivative of the inductor current estimate îL is provided by Eq. (14), and the necessary estimates of the pre-selected harmonic components are determined according to Eq. (13). A harmonic compensated gain term is formed by the summing module 418 and is equal to the sum of the outputs from each of the plurality of k resonant compensators 420-424. The control vector 442, u, is formed by summing module 416 by subtracting the harmonic compensated gain term from the proportional gain term and dividing the resulting difference in module 440 by E, where E is value of the DC voltage driving the UPS.
As can be seen, the realization of the control law in Eq. (15) is a complex and non-linear computation. There would be a considerable reduction in the complexity of the control law in Eq. (15) and depicted in FIG. 4 if the adaptation calculations were reduced. Since the estimate of the series inductance is the most non-linear term, the controller in (15) can be significantly simplified if the estimation of the inductance L is avoided. Substituting a predetermined value L0 for the estimate of L provides a control law given by: 



  
    
      
        Eu
        =
        
          
            
              -
              
                R
                1
              
            
            ⁢
            
              i
              L
            
          
          -
          
            
              (
              
                
                  2
                  ⁢
                  
                    L
                    0
                  
                  ⁢
                  
                    
                      ∑
                      
                        k
                        ∈
                        H
                      
                    
                    ⁢
                    
                      γ
                      k
                    
                  
                
                +
                
                  R
                  2
                
              
              )
            
            ⁢
            
              
                v
                ~
              
              C
            
          
          +
          
            v
            C
            *
          
          +
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              [
              
                
                  
                    (
                    
                      
                        R
                        1
                      
                      +
                      
                        J
                        ⁢
                        
                           
                        
                        ⁢
                        k
                        ⁢
                        
                           
                        
                        ⁢
                        ω
                        ⁢
                        
                           
                        
                        ⁢
                        
                          L
                          0
                        
                      
                    
                    )
                  
                  ⁢
                  
                    
                      i
                      ^
                    
                    
                      L
                      ,
                      k
                    
                    p
                  
                
                +
                
                  
                    (
                    
                      
                        R
                        1
                      
                      -
                      
                        J
                        ⁢
                        
                           
                        
                        ⁢
                        k
                        ⁢
                        
                           
                        
                        ⁢
                        ω
                        ⁢
                        
                           
                        
                        ⁢
                        
                          L
                          0
                        
                      
                    
                    )
                  
                  ⁢
                  
                    
                      i
                      ^
                    
                    
                      L
                      ,
                      k
                    
                    n
                  
                
              
              ]
            
          
        
      
    
    
      
        (
        16
        )
      
    
  




The adaptations are now reduced to solving the two equations for the estimate of the pre-selected harmonic components in Eq. (13). The closed loop system is then given by: 



  
    
      
        
          L
          ⁢
          
            d
            
              d
              t
            
          
          ⁢
          
            i
            L
          
        
        =
        
          
            
              -
              
                R
                1
              
            
            ⁢
            
              i
              L
            
          
          +
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              [
              
                
                  
                    (
                    
                      
                        R
                        1
                      
                      +
                      
                        J
                        ⁢
                        
                           
                        
                        ⁢
                        k
                        ⁢
                        
                           
                        
                        ⁢
                        ω
                        ⁢
                        
                           
                        
                        ⁢
                        
                          L
                          
                            0
                            )
                          
                        
                      
                    
                    )
                  
                  ⁢
                  
                    
                      i
                      ^
                    
                    
                      L
                      ,
                      k
                    
                    p
                  
                
                +
                
                  
                    (
                    
                      
                        R
                        1
                      
                      -
                      
                        J
                        ⁢
                        
                           
                        
                        ⁢
                        k
                        ⁢
                        
                           
                        
                        ⁢
                        ω
                        ⁢
                        
                           
                        
                        ⁢
                        
                          L
                          
                            0
                            )
                          
                        
                      
                    
                    )
                  
                  ⁢
                  
                    
                      i
                      ^
                    
                    
                      L
                      ,
                      k
                    
                    n
                  
                
              
              ]
            
          
          -
          
            
              (
              
                1
                +
                
                  R
                  2
                
                +
                
                  2
                  ⁢
                  
                    L
                    0
                  
                  ⁢
                  
                    
                      ∑
                      
                        k
                        ∈
                        H
                      
                    
                    ⁢
                    
                      γ
                      k
                    
                  
                
              
              )
            
            ⁢
            
              (
              
                
                  v
                  C
                
                -
                
                  v
                  C
                  *
                
              
              )
            
          
        
      
    
    
      
        (
        17
        )
      
    
  
  
    
      
        
          C
          ⁢
          
            d
            
              d
              t
            
          
          ⁢
          
            v
            C
          
        
        =
        
          
            i
            L
          
          -
          
            i
            0
          
        
      
    
    
      
        (
        18
        )
      
    
  
  
    
      
        
          
            
              
                
                  d
                  
                    d
                    t
                  
                
                ⁢
                
                  
                    i
                    ^
                  
                  
                    L
                    ,
                    k
                  
                  p
                
              
              =
              
                
                  -
                  
                    
                      γ
                      k
                    
                    ⁡
                    
                      (
                      
                        
                          v
                          C
                        
                        -
                        
                          v
                          C
                          *
                        
                      
                      )
                    
                  
                
                +
                
                  J
                  ⁢
                  
                     
                  
                  ⁢
                  k
                  ⁢
                  
                     
                  
                  ⁢
                  ω
                  ⁢
                  
                     
                  
                  ⁢
                  
                    
                      i
                      ^
                    
                    
                      L
                      ,
                      k
                    
                    p
                  
                
              
            
          
        
        
          
            
              
                
                  d
                  
                    d
                    t
                  
                
                ⁢
                
                  
                    i
                    ^
                  
                  
                    L
                    ,
                    k
                  
                  n
                
              
              =
              
                
                  -
                  
                    
                      γ
                      k
                    
                    ⁡
                    
                      (
                      
                        
                          v
                          c
                        
                        -
                        
                          v
                          c
                          *
                        
                      
                      )
                    
                  
                
                -
                
                  J
                  ⁢
                  
                     
                  
                  ⁢
                  k
                  ⁢
                  
                     
                  
                  ⁢
                  ω
                  ⁢
                  
                     
                  
                  ⁢
                  
                    
                      i
                      ^
                    
                    
                      L
                      ,
                      k
                    
                    n
                  
                
              
            
          
        
      
    
    
      
        (
        19
        )
      
    
  




Since the adaptation terms in equations (17)-(19) no longer include the value of the series inductance estimate {circumflex over (L)}, the parameter L0 must be selected such that the closed loop system is stable despite variations in the actual value. The system defined by equations (17)-(19) can be shown to be globally stable if the value of L0 is selected such that:

L0>Lmax  (20)

Where Lmax is the upper bound for the series inductance L.

The controller expression (16) along with the expressions of the adaptations (13) can be expressed in a more familiar form by transforming the variables as:

ηkp=−(R1+kωL0I)îL,kp  (21)

ηkn=−(R1−kωL0I)îL,kn  (22)

where the time derivatives are given by:

 {dot over (η)}kp=(R1+IkωL0)γk{tilde over (v)}C+Ikωηkp  (23)

{dot over (η)}kn=(R1+IkωL0)γk{tilde over (v)}C+Ikωηkn  (24)

This yields the following expression for a linear time invariant (LTI) control law given by: 



  
    
      
        Eu
        =
        
          
            
              -
              
                R
                1
              
            
            ⁢
            
              i
              L
            
          
          -
          
            
              (
              
                
                  2
                  ⁢
                  
                    L
                    0
                  
                  ⁢
                  
                    
                      ∑
                      
                        k
                        ∈
                        H
                      
                    
                    ⁢
                    
                      γ
                      k
                    
                  
                
                +
                
                  R
                  2
                
              
              )
            
            ⁢
            
              
                v
                ~
              
              C
            
          
          +
          
            v
            C
            *
          
          -
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              (
              
                
                  η
                  k
                  p
                
                +
                
                  η
                  k
                  n
                
              
              )
            
          
        
      
    
    
      
        (
        25
        )
      
    
  




By expressing the dynamical part of the controller in the form of a transfer function, the controller in equation (25) can be rewritten as: 



  
    
      
        Eu
        =
        
          
            
              -
              
                R
                1
              
            
            ⁢
            
              i
              L
            
          
          -
          
            
              (
              
                
                  2
                  ⁢
                  
                    L
                    0
                  
                  ⁢
                  
                    
                      ∑
                      
                        k
                        ∈
                        H
                      
                    
                    ⁢
                    
                      γ
                      k
                    
                  
                
                +
                
                  R
                  2
                
              
              )
            
            ⁢
            
              
                v
                ~
              
              C
            
          
          +
          
            v
            C
            *
          
          -
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              2
              ⁢
              
                γ
                k
              
              ⁢
              
                
                  
                    v
                    ~
                  
                  C
                
                ⁡
                
                  (
                  
                    
                      
                        
                          R
                          1
                        
                        ⁢
                        s
                      
                      -
                      
                        
                          k
                          2
                        
                        ⁢
                        
                          ω
                          2
                        
                        ⁢
                        
                          L
                          0
                        
                      
                    
                    
                      
                        s
                        2
                      
                      +
                      
                        
                          k
                          2
                        
                        ⁢
                        
                          ω
                          2
                        
                      
                    
                  
                  )
                
              
            
          
        
      
    
    
      
        (
        26
        )
      
    
  




where s is the complex variable.

FIG. 5 depicts a realization of the control law of Eq. (26). In the description that follows, all values are assumed to be two-dimensional vectors in α β stationary coordinates. In particular, a controller 500 implementing the control law of Eq. (26) includes the measured inductor current iL as an input on line 502, the reference voltage v*C as an input on line 508 and the measured output voltage vC as an input on line 512, where as above, the * indicates a reference signal. The input inductor current iL on line 502 is multiplied by a first constant 504, R1, to form a first proportional control term. A feedforward control term is the input reference voltage v*C on line 508 is added to the first proportional control term via summing module 506. A second proportional control term is a function of the difference between the reference voltage v*C on line 508 and the measured output voltage vC on line 512 formed by difference module 510. This difference is multiplied by a constant 



  
    (
    
      
        2
        ⁢
        
           
        
        ⁢
        
          L
          0
        
        ⁢
        
          
            ∑
            
              k
              ∈
              H
            
          
          ⁢
          
            γ
            k
          
        
      
      +
      
        R
        2
      
    
    )
  
  ,




514. This constant includes the design parameter R2, which is greater than zero and selected for system stability. The plurality of γk are also predetermined design constants. Each one of the plurality of γk constants correspond to a corresponding one of the pre-selected harmonic components of the load current. The value of each individual γk is selected according to the desired compensation of the particular harmonic component. As discussed above the value of L0 is selected to ensure system stability and is not estimated. A proportional gain term is formed by summing module 506 by adding the first proportional gain term plus the feedforward term and subtracting the third proportional gain term therefrom.

A plurality of k harmonic filters 520-524 receive as an input the difference between the reference voltage v*C on line 508 and the measured output voltage vC on line 512 from difference module 510. Each one of the plurality of k harmonic filters 520-524 provide a filtered control signal component as an output, wherein the resonant frequency of each of the filters is given by s2+k2ω2, where k is the kth pre-selected harmonic. A filtered control signal is obtained by summing the plurality of k filtered control signal component from each of the harmonic filters 520-524 in summing module 518. The control vector, 528, u is formed by summing module 516 by subtracting the filtered control signal from the proportional gain term and dividing the difference in module 526 by the value of the DC voltage source driving the UPS, E.
For the embodiment depicted in FIGS. 4 and 5 the sensing of the inductor current and the output voltages is performed using current and voltage measurement techniques known in the art or the current and voltage values can be computed by an estimator constructed according to the system dynamic equations as is known in the art. The computing power required, however, is greater since each of the harmonic compensators of FIG. 3 and each of the harmonic filters of FIG. 5 require two of each compensator or filter; one for the α component and one for the β component. In one embodiment, the value of R1 can be set as R1=kip*I2 (I2 is the 2 by 2 identity matrix), where kip is a conventional proportional gain of a PI controller. Accordingly, kip can be set equal to 2πficL, where fic is the current loop bandwidth, usually 1/10- 1/14 of the switching frequency. Parameter L0 can be set equal to L. R2 can be set as R2=kvp*I2 where Kvp is a conventional proportional gain of a PI voltage controller in a multi-loop solution. Finally, the gains γk can be set to compensate the remaining transfer function that can be roughly approximated as a first order pole at the desired voltage loop bandwidth with a DC gain equal to 1/kvp. Disregarding the influence of such a pole, we can set each of the gains γk as γk=2.2*kvp/Tkr, where Tkr is the desired response time for each of the preselected harmonic components, as evaluated between the 10% and 90% of a step response of the amplitude of the corresponding sinusoidal perturbation.
Those of ordinary skill in the art should further appreciate that variations to and modification of the above-described methods and apparatus for controlling a UPS can be made. In particular, some measurements can be replaced with their estimates, as in the case of current estimates from measured DC-link current and from known switching pattern. Accordingly, the invention should be viewed as limited solely by the scope and spirit of the appended claims.

## Claims

1. A controller for a three-phase uninterrupted power supply (UPS), the three-phase UPS providing power to a three-phase load via a series inductor for each phase and a capacitor connected electrically in parallel to the load for each phase, the three-phase UPS providing a voltage E, an output voltage vC, an inductor current iL, and a load current i0 for each phase, the controller comprising:
an inductor current module operative to to provide the inductor current value in each phase; 
a voltage module operative to provide the output voltage, V, in each phase; 
a three-phase to stationary coordinate converter operative to convert the measured inductor current and the measured output voltage in each phase into a inductor current in stationary coordinates and a output voltage in stationary coordinates respectively, and to convert a received reference voltage in each phase into a reference voltage in stationary coordinates; 
an adaptation processor coupled to the three-phase-to-stationary-coordinate-converter and receiving the output voltage and the reference voltage therefrom, the adaptive portion configured and arranged to calculate an estimate of a plurality of pre-selected harmonic components of the inductor current in stationary coordinates and to calculate an estimate of the value of the series inductor corresponding to each phase, and to convert the estimate of the value of the series inductor corresponding to each phase into stationary coordinates; 
a control vector processor coupled to the three-phase-to-stationary-coordinate-converter and to the adaptation processor, the control vector processor receiving the inductor current, the output voltage, and the reference voltage from the three-phase to stationary coordinate converter, and receiving the estimate of a plurality of pre-selected harmonic components of the inductor current in stationary coordinates and the estimate of the series inductance from the adaptation processor; 
the control vector processor including a proportional gain processor, the proportional gain processor configured and arranged to provide a proportional gain term as a function of the inductor current, the output voltage, the reference voltage, and the estimated inductance; 
the control vector processor further including a harmonic compensator processor, the harmonic compensator processor configured and arranged to determine a harmonic compensated control signal as a function of the plurality of estimated pre-selected harmonic components of the inductor current in stationary coordinates and the estimate of the series inductance, reference voltage, the output voltage; 
the control vector processor providing a control output vector that is a function of the harmonic compensated control signal and the proportional control signal.

2. The controller of claim 1 wherein the proportional gain processor includes:
a first constant multiplied by the inductor current forming a first product value; 
a second constant multiplied by the reference voltage forming a second product value; 
a first difference module forming a first difference value equal to the difference between the output voltage and the reference voltage; 
a first factor multiplied by the first difference value forming a third product value; 
a second difference module providing a proportional gain control signal that is the difference between the sum of the first and second product value and the third product value.

3. The controller of claim 2 wherein the first constant is a first predetermined design constant that is greater than zero.

4. The controller of claim 2 wherein the second constant is one.

5. The controller of claim 2 wherein the first factor is the estimated series inductance value multiplied by the sum of a first plurality of predetermined design constants, plus a second predetermined design constant, wherein each of the first plurality of predetermined design constants corresponds to one of the pre-selected harmonic components.

6. The controller of claim 2 wherein the harmonic compensator processor is coupled to the first difference module and receiving the first difference value therefrom, the harmonic compensator including a plurality of harmonic compensators, each of the plurality of harmonic compensators configured and arranged to use a corresponding one of the estimated plurality of harmonic components to compensate the received first difference value for a corresponding one of the plurality of pre-selected harmonic components, wherein each of the plurality of harmonic compensators providing a compensated signal, and wherein the harmonic compensator processor providing a harmonic compensated control signal that is the sum of the plurality of compensated signals;
wherein the control vector processor providing a control output vector that is the difference between the proportional gain control signal and the harmonic compensated control signal.

7. The controller of claim 1 wherein the inductor current module is an inductor current sensor.

8. The controller of claim 1 wherein the inductor current module is an inductor current estimator.

9. The controller of claim 1 wherein the voltage module is a voltage sensor.

10. The controller of claim 1 wherein the voltage module is a voltage estimator.

11. A controller for a three-phase uninterrupted power supply (UPS), the three-phase UPS providing power to a three-phase load via a series inductor for each phase and a capacitor connected electrically in parallel to the load for each phase, the three-phase UPS providing a voltage E, an output voltage vC, an inductor current iL, and a load current i0 for each phase, the controller comprising:
an inductor current module operative to provide the inductor current in each phase; 
a voltage module operative to provide the output voltage, vC, in each phase; 
an output current module operative to provide the output current in each phase; 
a three-phase to stationary coordinate converter operative to convert the measured inductor current, the measured output voltage in each phase into a inductor current in stationary coordinates and a output voltage in stationary coordinates respectively, and to convert a received reference voltage in each phase into a reference voltage in stationary coordinates; 
an adaptation processor coupled to the three-phase to stationary coordinate converter and receiving the output voltage and the reference voltage therefrom, the adaptive portion configured and arranged to provide an estimate of a plurality of pre-selected harmonic components of the inductor current and to provide the estimated plurality of inductor current harmonic components in stationary coordinates; 
a control vector processor coupled to the three-phase to stationary coordinate converter and to the adaptation processor, the control vector processor receiving the inductor current, the output voltage, the reference voltage from the three-phase to stationary coordinate converter, and receiving the estimated plurality of inductor current harmonic components and the estimate of the series inductance from the adaptation processor; 
the control vector processor including a proportional gain processor, the proportional gain processor configured and arranged to provide a proportional gain term as a function of the inductor current, the output voltage, the reference voltage, and a predetermined inductance value; 
the control vector processor further including a harmonic compensator processor, the harmonic compensator processor configured and arranged to use the estimated plurality of inductor current harmonic components to provide a harmonic compensated control signal, the harmonic compensated control signal being a function of the reference voltage, the output voltage, the estimated series inductance, and the estimated plurality of inductor current harmonic components; 
the control vector processor providing a control output vector that is a function of the harmonic compensated control signal and the proportional control signal.

12. The controller of claim 11 wherein the proportional gain processor includes;
a first constant multiplied by the inductor current forming a first product value; 
a second constant multiplied by the reference voltage forming a second product value; 
a first difference module forming a first difference value indicative of the difference between the output voltage and the reference voltage; 
a first factor multiplied by the first difference value forming a third product value; 
a second difference module providing a proportional gain control signal that is the difference between the sum of the first and second product value and the third product value.

13. The controller of claim 12 wherein the first constant is a first predetermined design constant that is greater than zero.

14. The controller of claim 12 wherein the second constant is one.

15. The controller of claim 12 wherein the first factor is the predetermined series inductance value multiplied by the sum of a first plurality of predetermined design constants, plus a second predetermined design constant, wherein each of the first plurality of predetermined design constants corresponds to one of the pre-selected harmonic components.

16. The controller of claim 12 wherein the harmonic compensator processor is coupled to the first difference module and receiving the first difference value therefrom, the harmonic compensator including a plurality of second order harmonic filters each having a resonant frequency corresponding to one of the predetermined harmonic components, each of the plurality of second order harmonic filters receiving the first difference value and providing a plurality of filtered outputs, the harmonic compensator provides a compensated control signal that is the sum of each of the plurality of filtered outputs, and wherein the control output vector that is the difference between the proportional gain control signal and the harmonic compensated control signal.

17. The controller of claim 11 wherein the predetermined inductance value is greater than a predetermined inductance value.

18. The controller of claim 11 wherein the inductor current module is an inductor current sensor.

19. The controller of claim 11 wherein the inductor current module is an inductor current sensor.

20. The controller of claim 11 wherein the voltage module is a voltage sensor.

21. The controller of claim 11 wherein the voltage module is a voltage estimator.

22. The controller of claim 11 wherein the output current module is an output current sensor.

23. The controller of claim 11 wherein the output current module is an output current estimator.

24. A method for controlling a three-phase uninterrupted power supply (UPS), the three-phase UPS providing power to a three-phase load via a series inductor for each phase and a capacitor connected electrically in parallel to the load for each phase, the three-phase UPS providing a voltage E, an output voltage vC, an inductor current iL, and a load current i0 for each phase, the method comprising the steps of:
determining the inductor current in each phase; 
determining the output voltage, vC, in each phase; 
converting the determined inductor current and the output voltage from a three-phase system into a inductor current and output voltage expressed in stationary coordinates; 
estimating a plurality of pre-selected harmonic components of the inductor current and to provide the estimated plurality of inductor current harmonic components in stationary coordinates; 
determining a proportional gain term; 
determining a harmonic compensated control signal; 
determining a control vector as a function of the proportional gain term and the harmonic compensated control function.

25. The method of claim 24 wherein the step of estimating the plurality of pre-selected harmonic components of the inductor current includes estimating the plurality of pre-selected harmonic components as a function of the output voltage and the reference voltage.

26. The method of claim 24 wherein the function of the the output voltage and the reference voltage is given by 



  
    
      
        
          d
          
            d
            t
          
        
        ⁢
        
          
            i
            ^
          
          
            L
            ,
            k
          
          p
        
      
      =
      
        
          
            -
            
              γ
              k
            
          
          ⁢
          
            
              v
              ~
            
            C
          
        
        +
        
          J
          ⁢
          
             
          
          ⁢
          k
          ⁢
          
             
          
          ⁢
          ω
          ⁢
          
             
          
          ⁢
          
            
              i
              ^
            
            
              L
              ,
              k
            
            p
          
        
      
    
    ,
    
      
        
          d
          
            d
            t
          
        
        ⁢
        
          
            i
            ^
          
          
            L
            ,
            k
          
          n
        
      
      =
      
        
          
            -
            
              γ
              k
            
          
          ⁢
          
            
              v
              ~
            
            C
          
        
        -
        
          J
          ⁢
          
             
          
          ⁢
          k
          ⁢
          
             
          
          ⁢
          ω
          ⁢
          
             
          
          ⁢
          
            
              
                i
                ^
              
              
                L
                ,
                k
              
              n
            
            .
          
        
      
    
  
  ⁢

27. The method of claim 24 wherein the function of the the output voltage and the reference voltage is given by {overscore(İ)}L,kp=−γke−Iωkl{tilde over (v)}C,{overscore(İ)}L,kn=−γkeIωkl{tilde over (v)}C.

28. The method of claim 24 wherein the step of determining the proportional gain term and feedforward term includes the equation 



  
    
      -
      
        R
        1
      
    
    ⁢
    
      i
      L
    
  
  -
  
    
      (
      
        
          2
          ⁢
          
            L
            0
          
          ⁢
          
            
              ∑
              
                k
                ∈
                H
              
            
            ⁢
            
              γ
              k
            
          
        
        +
        
          R
          2
        
      
      )
    
    ⁢
    
      
        v
        ~
      
      C
    
  
  +
  
    
      v
      C
      *
    
    .

29. The method of claim 24 wherein the step of determining harmonic compensated control signal includes the equation 



  
    ∑
    
      k
      ∈
      H
    
  
  ⁢
  
    2
    ⁢
    
      γ
      k
    
    ⁢
    
      
        
          
            v
            ~
          
          C
        
        ⁢
        
          (
          
            
              
                
                  R
                  1
                
                ⁢
                s
              
              -
              
                
                  k
                  2
                
                ⁢
                
                  ω
                  2
                
                ⁢
                
                  L
                  0
                
              
            
            
              
                s
                2
              
              +
              
                
                  k
                  2
                
                ⁢
                
                  ω
                  2
                
              
            
          
          )
        
      
      .

30. The method of claim 24 wherein the step of determining harmonic compensated control signal includes the equation 



  
    ∑
    
      k
      ∈
      H
    
  
  ⁢
  
    
      [
      
        
          
            (
            
              
                R
                1
              
              +
              
                J
                ⁢
                
                   
                
                ⁢
                k
                ⁢
                
                   
                
                ⁢
                ω
                ⁢
                
                   
                
                ⁢
                
                  L
                  ^
                
              
            
            )
          
          ⁢
          
            
              i
              ^
            
            
              L
              ,
              k
            
            p
          
        
        +
        
          
            (
            
              
                R
                1
              
              -
              
                J
                ⁢
                
                   
                
                ⁢
                k
                ⁢
                
                   
                
                ⁢
                ω
                ⁢
                
                   
                
                ⁢
                
                  L
                  ^
                
              
            
            )
          
          ⁢
          
            
              i
              ^
            
            
              L
              ,
              k
            
            n
          
        
      
      ]
    
    .

31. The method of claim 24 wherein the step of determining the inductor current includes measuring the inductor current.

32. The method of claim 24 wherein the step of determining the inductor current includes estimating the inductor current.

33. The method of claim 24 wherein the step of determining the output voltage includes measuring the output voltage.

34. The method of claim 24 wherein the step of determining the output voltage includes estimating the output voltage.

35. An apparatus for controlling a three-phase uninterrupted power supply (UPS), the three-phase UPS providing power to a three-phase load via a series inductor for each phase and a capacitor connected electrically in parallel to the load for each phase, the three-phase UPS providing a voltage E, an output voltage vC, an inductor current iL, and a load current i0 for each phase, the apparatus comprising:
an inductor current module operative to provide the inductor current in each phase; 
a voltage module operative to provide the output voltage in each phase; 
a three-phase to stationary coordinate converter, coupled to the inductor current module and the voltage module, the coordinate converter configured and arranged to convert the measured inductor current and the output voltage from a three-phase system into a inductor current and output voltage expressed in stationary coordinates; 
an estimator coupled to the three-phase to stationary coordinate converter, the estimator configured and arranged to estimate a plurality of pre-selected harmonic components of the inductor current and to provide the estimated plurality of inductor current harmonic components in stationary coordinates; 
a proportional gain processor coupled to the estimator and the coordinate converter, the proportional gain processor configured and arranged to determine a proportional gain term; 
a harmonic control processor coupled to the estimator and the coordinate converter, the harmonic control processor configured and arranged to determining a harmonic compensated control signal; 
a control vector processor determining a control vector as a function of the proportional gain term and the harmonic compensated control function.

36. The apparatus of claim 35 further including the three-phase to stationary coordinate converter coupled to a three-phase reference voltage, the coordinate converter configured and arranged to convert the three-phase reference voltage to a reference voltage, and wherein the estimator estimates the plurality of pre-selected harmonic components of the inductor current includes estimating the plurality of pre-selected harmonic components as a function of the output voltage and the reference voltage.

37. The apparatus of claim 35 wherein the inductor current module is an inductor current sensor.

38. The apparatus of claim 35 wherein the inductor current module is an inductor current sensor.

39. The apparatus of claim 35 wherein the voltage module is a voltage sensor.

40. The apparatus of claim 35 wherein the voltage module is a voltage estimator.