Abstract:
A system and method for controlling a rotating electromagnetic machine. The rotating machine, such as a permanent magnet motor or switched reluctance motor, includes a stator having a plurality of phase windings and a rotor that rotates relative to the stator. A drive is connected to the phase windings for energizing the windings. The control system includes an estimator connectable to the machine for receiving signals representing the phase winding voltage and rotor position. The estimator outputs parameter estimations for an electrical model of the machine based on the received voltage and rotor position. A torque model receives the parameter estimations from the estimator to estimate torque for associated rotor position-phase current combinations of the machine. A controller outputs a control signal to the drive in response to a torque demand and rotor position signals and the torque model. In certain embodiments, a solver uses the torque model to generate energization current profiles according to desired machine behavior, such as smooth torque and/or minimal sensitivity to errors in rotor position measurement.

Description:
BACKGROUND OF THE INVENTION  
         [0001]    1. Field of the Invention  
           [0002]    The invention relates generally to the control of electromagnetic rotating machines such as permanent magnet, switched reluctance and hybrid machines thereof, and more particularly, to adaptive, smooth torque control of such machines.  
           [0003]    2. Description of Related Art  
           [0004]    Many electromagnetic machines in general, and electric motors employing permanent magnets in particular, exhibit torque irregularities as the rotor rotates with respect to the stator, the coils of which are typically energized with a sinusoidal waveform. Such irregularities are referred to as “torque ripple.” These torque irregularities may be caused by the physical construction of a given machine. For example, they may result from the use of bearings to support the rotor. In addition, because of the electromagnetic characteristics of machines that employ magnets, the rotor tends to prefer certain angular positions with respect to the stator. Torque irregularities resulting from the electromagnetic characteristics of an electromagnetic machine are commonly known as “cogging” irregularities and the resultant non-uniform rotation of the rotor or non-uniform torque output is known as “cogging.” Cogging is either current independent or current dependent. The first component is noted when the machine is spun unenergized. The second component is present when current flows—the cogging grows as the magnitude of the stator currents increases.  
           [0005]    In rotating electromagnetic machines employing permanent magnets, cogging most often results from the physical construction of the machine. Irregularities due to the magnets can result, for example, from the magnets being incorrectly placed upon or in the rotor, or from some irregularity about how the magnets are energized. Moreover, the utilization of rotors having discrete north and south outer poles results in a circumferential distribution of magnetic flux about the rotor circumference that is not smooth, but choppy. Additionally, the stators commonly used with such machines are formed in such a way that the magnetic fluxes generated by the stator windings provide a flux distribution about the stator circumference that is not smooth. The combination of such rotors and stators, and the accompanying non-smooth flux distributions, produces undesired irregularities in the torque output of such machines. Rotor output non-uniformities may also be produced by back emf harmonics produced in certain machines.  
           [0006]    Obtaining smooth torque is further complicated by other factors. For instance, manufacturing variances between motors makes it difficult, if not impossible, to apply a common solution to a group of motors. Such manufacturing variance includes the placing or misplacing of magnets upon the rotor (if surface mounted), variance introduced by the magnetizing process itself and irregularities in the stator coil windings. Other causes of variance include instances when the magnets are damaged or chipped. Further, variations exist even within individual motors. For example, variations typically exist between a motor&#39;s phases and over the motor&#39;s full mechanical cycle. Moreover, motor behavior changes over time as the motor ages.  
           [0007]    The phase windings of certain types of electromagnetic machines are energized at least in part as a function of the instantaneous rotor position. Accordingly, such machines often use a rotor position sensor that provides an output indicating rotor position relative to the stator. A controller uses this information to produce control signals that are used to energize and de-energize the phase windings. Errors in the measurement of the angular position of the rotor also contribute to torque ripple.  
           [0008]    For many motor applications a slight non-uniformity in the rotation of the rotor caused by torque irregularities is of little or no consequence. For example, in large motors driving large loads, slight variations in the output torque will not significantly affect the rotor speed and any slight variations in rotor speed will not significantly affect the system being driven by the machine. This assumes that the torque variation as the machine turns is small compared to the load. In other applications, where the rotation of the rotor or the torque output of the motor must be precisely controlled or uniform, such non-uniformity is not acceptable. For example, in servomotors used in electric power steering systems and is in disk drives, the rotational output of the rotor or the torque output of the motor must be smooth and without significant variation.  
           [0009]    Prior art approaches to reducing the undesirable consequences of torque irregularities in electromagnetic machines have focused on relatively complex rotor or stator constructions designed to eliminate the physical characteristics of the machines that would otherwise give rise to the irregularities. While the prior art machine construction approaches can result in reduction of torque irregularities, the approaches require the design and construction of complex rotor and stator components, such complex components are typically difficult to design, difficult to manufacturer, and much more costly to produce than are conventionally constructed components. Moreover, many of the physical changes required by such prior art solutions result in a significant reduction in the efficiency or other performance parameters of the resulting machines over that expected of comparable conventional machines. Thus, many of the prior art attempts to reduce torque irregularities do so at the cost of machine performance.  
           [0010]    Attempts to reduce torque ripple that focus on motor control schemes, rather than motor construction, have also been undertaken. For example, various learning or iterative schemes, based on either experimental procedures or well known physical relationships concerning motor voltages, currents and angular positions have been attempted. These attempted solutions often make assumptions concerning the behavior of the motor, such as motor flux being described by a linear relationship, or considering the effect of mutual flux insignificant. Still further, prior solutions to torque ripple typically ignore the effect of motor sensitivity to inaccuracies in angular measurement. To increase accuracy in position measurement, the use of sophisticated position sensors has been attempted, but this increases the machine&#39;s complexity and cost.  
           [0011]    Thus, a need exists for a control system that addresses the shortcomings of the prior art.  
         SUMMARY OF THE INVENTION  
         [0012]    In one aspect of the present invention, a system for controlling a rotating electromagnetic machine is presented. The rotating machine, such as a permanent magnet motor or switched reluctance motor, or some hybrid of the two, includes a stator having a plurality of phase windings and a rotor that rotates relative to the stator. A drive is connected to the phase windings for energizing the windings. The control system includes an estimator connectable to the machine for receiving signals representing the phase winding voltage, current and rotor position. The estimator outputs parameter estimations for an electrical model of the machine based on the received voltage, current and rotor position. The electrical model is a mathematical model that describes electrical behavior of the machine as seen at the motor terminals.  
           [0013]    A torque model receives the parameter estimations from the estimator. The torque model is developed via a mathematical transform of the electrical model, and describes torque characteristics of the machine. Using the parameters received from the estimator, the torque model estimates torque for associated rotor position-phase current combinations. A controller has input terminals for receiving a torque demand signal and the rotor position signal. The controller outputs a control signal to the drive in response to the torque demand and rotor position signals and the torque model. In certain embodiments, a solver uses the torque model to generate energization current profiles according to desired machine behavior, such as smooth torque and/or minimal sensitivity to errors in rotor position measurement. It is to be noted in particular that the solver can be so defined that the solution possesses particular properties. It may be desired to deal with only the most significant components of cogging or torque ripple, a result of motor drive cost considerations. Such a solution can be achieved.  
           [0014]    Some parameters of the torque model are unobservable via information immediately available from the machine terminals. For example, in machines employing permanent magnets, it is not mathematically obvious how changes in the machine current and voltage, as the rotor spins, indicate or measure the interaction of the machine&#39;s magnets with themselves. In accordance with further aspects of the present invention, a method of determining a non-load dependent cogging torque is provided. The rotor is spun unloaded at a predetermined angular velocity and the motor terminal voltage and current are measured. Rotor positions associated with the voltage and current measurements are determined, and a first mathematical model is developed based on the measured voltage and rotor position to describe electrical behavior of the machine. The first mathematical model is mathematically transformed to develop a second mathematical model to describe torque characteristics of the machine. The windings are then energized such that the rotor holds a predetermined position against the cogging torque, and the cogging torque is calculated for the predetermined position via the second mathematical model. 
       
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0015]    Other objects and advantages of the invention will become apparent upon reading the following detailed description and upon reference to the drawings in which:  
         [0016]    [0016]FIG. 1 is a block diagram of an exemplary rotating electromagnetic machine system in accordance with embodiments of the present invention;  
         [0017]    [0017]FIG. 2 is a block diagram illustrating an electromagnetic machine control system in accordance with embodiments of the present invention;  
         [0018]    [0018]FIG. 3 is a chart illustrating an exemplary integration path for evaluating an integral giving coenergy used in embodiments of the invention;  
         [0019]    [0019]FIG. 4 illustrates current profiles generated for a smooth torque solution in accordance with the present invention; and  
         [0020]    [0020]FIG. 5 illustrates torque ripple for a machine controlled in accordance with aspects of the present invention.  
         [0021]    While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof have been shown by way of example in the drawings and are herein described in detail. It should be understood, however, that the description herein of specific embodiments is not intended to limit the invention to the particular forms disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention as defined by the appended claims. 
     
    
     DETAILED DESCRIPTION OF THE INVENTION  
       [0022]    Illustrative embodiments of the invention are described below. In the interest of clarity, not all features of an actual implementation are described in this specification. It will of course be appreciated that in the development of any such actual embodiment, numerous implementation-specific decisions must be made to achieve the developers&#39; specific goals, such as compliance with system-related and business-related constraints, which will vary from one implementation to another. Moreover, it will be appreciated that such a development effort might be complex and time-consuming, but would nevertheless be a routine undertaking for those of ordinary skill in the art having the benefit of this disclosure.  
         [0023]    Turing to the drawings and, in particular, to FIG. 1, a system  10  constructed according to certain teachings of this disclosure is illustrated. Among other things, the illustrated system  10  actively controls the electric power supplied to an electromagnetic machine such that the negative consequences of torque irregularities that would otherwise be produced by the machine are reduced or eliminated.  
         [0024]    The system  10  includes an electromagnetic machine  12  and a drive  14  that provides electric power to the electromagnetic machine  12 . The machine  12  shown in FIG. 1 may comprise, for example, a permanent magnet motor, a switched reluctance motor, or a hybrid motor (permanent magnet and switched reluctance combination). The machine  12  is of conventional construction that includes a rotating component (a rotor  12   a ) and a stationary component (a stator  12   b ). Wound about the stator are a number of energizable phase windings  12   c  which may be energized through the application of electric power to motor terminals  15 ,  16 ,  17 .  
         [0025]    The drive  14  is coupled to provide electric power to terminals  15 ,  16  and  17  of the machine  12 . The drive  14  receives control inputs from a control system  13 , which is coupled to receive feedback from the machine  12  in terms of rotor position information  18  and energization feedback  19 . Other feedback information may be provided to the controller  13 . While the drive  14  is illustrated in exemplary form as providing three power terminals to the machine  12 , it should be understood that more or fewer power terminals may be provided to accommodate motors or machines with greater than three phases, less than three phases or if various types of inverters (e.g., with neutral connections) are used.  
         [0026]    The energization feedback  19  provides an indication of the operational characteristics of the machine  12  and may, for example, include feedback concerning the currents flowing in the stator windings and/or the voltages at the terminals  15 ,  16  and  17 . The position and energization parameters may be detected through conventional detectors such as standard rotor position detectors and standard current/voltage sensors. Alternative embodiments are envisioned in which the rotor position and feedback parameters are not detected directly but are calculated or estimated through known techniques. For example, embodiments are envisioned where only the terminal voltages are known or sensed along with the currents flowing through the stator windings of the machine  12  and the sensed current and voltage values are used to derive rotor position information.  
         [0027]    The control system  13  also receives input command signals  11  that correspond to a desired output parameter of machine  12  such as rotor speed, output torque, etc. As described in more detail below, the drive  14  controls the application of electric power to machine  12  in response to the control system  13  in such a manner that the difference between the input command signal  11  and the corresponding output of the machine  12  is minimized. In certain embodiments, the control system  13  also actively controls application of power to the machine  12  as a function of rotor position in such a manner to achieve a desired behavior of the machine  12  meeting one or more criteria in categories including, for example, torque ripple, cogging torque, angular sensitivity, harmonic content, etc. The use of the control system  13  to actively achieve desired machine behavior, as opposed to attempting to achieve such behavior through complex rotor or stator constructions, results in a better performing system in that, for example, conventional, low cost machines and machine construction techniques may be used.  
         [0028]    An electromagnetic machine system  100  in accordance with an exemplary embodiment of the present invention is shown in FIG. 2. The machine system  100  includes a control system  13 , which may be implemented by an appropriately programmed digital controller, such as a digital signal processor (DSP), microcontroller or microprocessor.  
         [0029]    The control system  13  includes an input terminal  11  that receives, for example, a signal representing the torque demanded of the motor  12 . Torque is a function of current and angle; hence, for any particular rotor angle there is a set of appropriate currents that will produce the desired torque. Based on the rotor angle and the required torque, appropriate current values are sent to the drive  14 , which in turn provides the necessary voltage to the motor  12  to meet the current demand.  
         [0030]    Rotor position feedback  18  and energization feedback  19 , such as the motor terminal voltage and current, are provided to an estimator  30 . In accordance with mathematical “good practice,” the voltage and current values may be normalized—the measured values are divided by the maximum expected value. The estimator  30  calculates motor parameters such as angular speed and the time derivatives of the phase currents. These values are used to derive and update a first mathematical model that describes the electrical behavior of the motor  12 . The structure of the electrical model is such that it can accurately represent electrical machine characteristics such as resistance, back electromagnetic force (“BEMF”), self and mutual inductance, cogging, etc., depending on the type of machine  12  employed.  
         [0031]    The parameters calculated by the estimator  30  are passed to a torque model  32  of the motor  12 . The torque model  32  is developed by mathematically transforming the electrical model in an appropriate manner, dictated by the electromagnetic physics of the motor  12 , into a second model that describes the torque characteristics of the machine  12 . Since the electrical model coefficients flow naturally into the torque model  32 , by constructing an accurate electrical model of the motor  12 , the torque characteristics of the motor  12  are also known. For example, the torque model may describe the torque produced for any combination of phase current and rotor position in the normal operating envelope of the machine. Thus, using the values calculated by the estimator  30 , an estimate of motor torque can be calculated for any current-angle combination.  
         [0032]    The torque model  32  is interrogated by a solver  34 , which calculates the required currents, or solution curves, according to some desired motor behavior and the known behavior of the motor  12  (as regards current and angle). Thus, the controller  36  provides the appropriate current for a given rotor angular position to achieve the desired output torque  40  or other output parameter, and further, to achieve the output parameter in accordance with the desired machine behavior. For example, the desired machine behavior may include the operating characteristics of the motor  12  meeting one or more criteria in categories including cogging torque, torque ripple, angular sensitivity of the solution to angular error and harmonic content of the solution curves. In the particular system  100  shown in FIG. 2, the solver  34  output is stored explicitly as a lookup table accessible by the controller  36 . The torque demand  11  and rotor angle is applied to the lookup table to determine the appropriate phase current value to be applied to the phase windings via the driver  14 . In other embodiments, the output of the solver  34  is in an analytic form, derived by fitting a function to the calculated numerical values.  
         [0033]    Since the electrical model used by the estimator  30  is algebraic in nature, the estimator  30  can be allowed to run for some time period operating upon not necessarily sequential data before a new set of parameter estimates are released in to the torque model  32 . At this point the solver  34  can then recalculate the necessary lookup tables  36 . Once fully calculated, the new lookup tables can then replace those tables currently in use. Many of these operations can be background tasked; that is, they can occur as and when computational resources are available. This is one of the advantages of an algebraic motor model—it is not intricately wrapped up in the time variable.  
         [0034]    Torque can be estimated via coenergy or field energy, though calculating torque via coenergy results in simpler expressions. Thus, the estimate of output torque  40  can be calculated using only feedback available from the machine terminals—such as the terminal voltage and current and the rotor position—to estimate the parameters of resistance and flux linkage. The following disclosure is generally provided in terms of a three phase hybrid motor, though the model form can be generalized into different types of rotating machines having any number of phases by one skilled in the art having the benefit of this disclosure.  
         [0035]    It is common in many applications to utilize what is known as a balanced three phase feed. In such systems, when a three-phase motor is used, the sum of the three phase currents will equal zero. Hence, the αβ-Frame of Reference (FoR) can be used. If balanced feed is not used, it is necessary to use the abc-FoR. The αβ-FoR is considered first.  
         [0036]    The electrical model may have the form of a product of polynomial expressions in current and angle. Typically, those for angle will involve trigonometric functions. The current polynomials may also be orthogonal and may be one of any number of suitable polynomial types. For more complex machines, an orthogonal model form may be appropriate. With the first model structure disclosed herein, it is assumed that flux linkage models are expressions that are products of polynomial terms involving phase currents and trigonometric polynomials of mechanical angle. Models using orthogonal functions are discussed further later in this specification. Generally, the following nomenclature is used in this disclosure:  
         [0037]    φ is the phase index, ranges over defined set of numbers { 1 , 2 , 3 , . . . } or equivalent letters {a,b,c, . . . } 
         [0038]    a,b,c are phase names, equivalent to  1 , 2 , 3  when numerically referenced  
         [0039]    α,β, 0  are αβ Frame of Reference (FoR) labels  
         [0040]    λ φ  is the phase φ flux linkage  
         [0041]    p,P . . . q,Q . . . r,R . . . n,N are summation indexes and maximum index values  
         [0042]    sin( ), cos( ) are trigonometric functions  
         [0043]    g φpqrn , h φpqrn  are model parameters  
         [0044]    i α ,i β ,i C  are variables representing αβ frame of reference currents  
         [0045]    I α ,I β  are maximum values of αβ-frame of reference currents encountered in the coenergy integral  
         [0046]    i a ,i b ,i c  are variables representing abc-frame of reference currents  
         [0047]    I a ,I b ,I c  are maximum values of abc-FoR currents encountered in the coenergy integral  
         [0048]    i f  is the current flow associated with the fictious rotor circuit modelling the presence of a magnet  
         [0049]    v φ  is the phase φ voltage  
         [0050]    R φα ,R φβ ,R φαβ  are resistance values associated with phase φ  
                             y          x                         
 
         [0051]    is the differential of x with respect to y  
         [0052]    θ is the rotor angle  
         [0053]    ω is the rotor angular velocity  
         [0054]    t is time t  
         [0055]    ω c  is coenergy  
         [0056]    dx is x infintesimal  
         [0057]    ∫ f(x) dx is the integral of f(x) with respect to x  
           ∂               ∂   x            f        (     x   ,   y   ,   …     )                             
 
         [0058]    is the partial derivative of function f(.) with respect to x  
         [0059]    D 1 , . . . ,D 6  are components of the coenergy integral, along defined path  
         [0060]    T is motor or true torque  
         [0061]    o(x n ) is the remainder associated with n&#39;th order and higher terms of the Jacobian matrix  
         [0062]    J ij  is the ij&#39;th entry of the Jacobian  
         [0063]    F i (x 1 , . . . ,x M ) is the i&#39;th function of variables x 1 , . . . ,x M  δx is delta x  
         [0064]    δx new  is the new value of delta x, or change in x  
         [0065]    x new , x old  are new and old values of x calculated during Newton iterative process  
         [0066]    T tv  is estimated torque, directly from the terminal variables  
         [0067]    T cog  is torque which cannot be calculated directly using terminal variables  
         [0068]    S a  is solution sensitivity  
       I   =     (             i   α          (     θ        (   1   )       )                   i   α          (     θ        (   2   )       )               ⋯               i   α          (     θ        (   N   )       )                   i   β          (     θ        (   1   )       )                   i   β          (     θ        (   2   )       )               ⋯               i   β          (     θ        (   N   )       )             )                           
 
         [0069]    is the vector of αβ frame of reference current values across the set of discrete angle values  
         [0070]    I(n+1),I(n) are the (n+1)&#39;th and n&#39;th iterated current vectors  
         [0071]    ΔI(n) is the calculated change in current vector at n&#39;th interval  
         [0072]    φ Tk =( 0  . . .  0  T(θ(k),i α (k),i β (k))  0  . . .  0 ) is the k&#39;th torque vector  
         [0073]    φ Sk =( 0  . . .  0  S(θ(k),i α (k),i β (k))  0  . . .  0 ) is the k&#39;th sensitivity vector  
         A   =     (           φ   T1             ⋯             φ   TN           )                                        
 
         [0074]    are stacked torque vectors  
       B   =     (           φ   S1             ⋯             φ   SN           )                           
 
         [0075]    are stacked current vectors  
         [0076]    Assuming that the model structure for each machine phase (φ) is identical, the general form of the flux model using the αβ-FoR is:  
               λ   φ     =       ∑     p   =   0     P                       i   α   p     ·       ∑     q   =   0     Q                       i   β   q     ·       ∑     r   =   0     R                       i   f   r     ·       ∑     n   =   0     N                     (         g     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                           (   1   )                               
 
         [0077]    Such a model allows for a non-linear relationship between phase current and flux as well as mutual effects between any two or more phases. As noted above, for the purposes of the present disclosure it is assumed that model structure is invariant with respect to phase, although this need not be so. Contiguous powers of polynomial current and angle harmonic need not be used, as is the case in Equation (1). For example, consider the following:  
               λ   φ     =       ∑     p   =     p   1         p   S                         i   α   p     ·       ∑     q   =     q   1         q   T                         i   β   q     ·       ∑     r   =     r   1         r   U                         i   f   r     ·       ∑     n   =     n   1         n   V                       (         g     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                           (   2   )                               
 
         [0078]    where the indexing sets:  
         [0079]    p=(p 1 ,p 2 , . . . ,p S .) r=(r 1 ,r 2 , . . . ,r U .)  
         [0080]    q=(q 1 ,p 2 , . . . ,q T .) n=(n 1 ,n 2 , . . . ,n V .)  
         [0081]    need not contain contiguous integers. In fact, most practical applications will have this form.  
         [0082]    Relatively simple models of the form presented in Equation (2) that are sufficiently accurate can be obtained. Model structure can be allowed to vary between phases if so desired. This variation upon defining model structure has a significant impact upon the computational complexity of the associated algorithms. Some model components will be present as a result of manufacturing variance and would not be suggested by a theoretical consideration of the motor design. Further, model complexity can vary greatly between motors of different design. For example, a permanent magnet motor design with the express intent of reducing cogging, typically through the use of skew, may only require a very simple model to accurately predict torque. It is generally desirable to avoid models that are over or under determined.  
         [0083]    The abc-FoR currents can be transformed into αβ-FoR currents using the following transform:  
               (           i   α               i   β               i   0           )     =       (         1       0       1               -   1     2               -   1     2     ·     3           1               -   1     2             1   2     ·     3           1         )     ·     (           i   α               i   b               i   c           )               (   3   )                               
 
         [0084]    Under the balanced feed assumption, the third phase current is zero. It is known that phase voltage (v φ ) is defined by  
               v   φ     =         i   φ     ·     R   φ       +                           t            λ   φ                 (   4   )                               
 
         [0085]    where R φ  is the phase resistance. Thus, using the αβ-FoR:  
               v   φ     =       R   φ     +       i   α     ·     R   φα       +       i   β     ·     R   φβ       +       i   α     ·     i   β     ·     R     φα                 β         +                           t            λ   φ                 (   5   )                               
 
         [0086]    It should be noted that there are more resistance terms in Equation (5) then is necessary from the perspective of how electric circuits operate. Such additional terms allow for the presence of test data offsets and the like to be directly compensated for; otherwise the estimator will set redundant terms to zero.  
         [0087]    It is also known that angular velocity (ω) is defined by:  
             ω   =                           t          θ             (   6   )                               
 
         [0088]    From Equations (1) and (4):  
                                       t            λ   φ       =         ∑     p   =   1     P                       (         pi   α     p   -   1       ·                         t              i   α       )     ·       ∑     q   =   0     Q            i   β   q     ·       ∑     r   =   0     R            i   f   r     ·       ∑     n   =   0     N            (         g     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   ⋯                   +       ∑     p   =   0     P            i   α   p     ·       ∑     q   =   1     Q            (         qi   β     q   -   1       ·                         t              i   β       )     ·       ∑     r   =   0     R            i   f   r     ·       ∑     n   =   0     N            (         g     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   ⋯                   +       ∑     p   =   0     P            i   α   p     ·       ∑     q   =   0     Q            i   β   q     ·       ∑     r   =   1     R            (         ri   f     r   -   1       ·                         t              i   f       )     ·       ∑     n   =   0     N            (         g     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   ⋯                   +       ∑     p   =   0     P            i   α   p     ·       ∑     q   =   0     Q            i   β   q     ·       ∑     r   =   0     R            i   f   r     ·       ∑     n   =   1     N          ω   ·   n   ·     (         g     φ                 pqrn       ·     cos        (     n   ·   θ     )         -       h     φ                 pqrn       ·     sin        (     n   ·   θ     )           )                                            (   7   )                               
 
         [0089]    The imaginary rotor current (i f ) is nominally constant and its time derivative is zero. Hence, from Equations (5) and (7):  
                            v   φ     =       R   φ     +       i   α     ·     R   φα       +       i   β     ·     R   φβ       +       i   α     ·     i   β     ·     R     φαβ                 ⋯         +     
                       ∑     p   =   1     P                       (         pi   α     p   -   1       ·                         t              i   α       )     ·       ∑     q   =   0     Q            i   β   q     ·       ∑     r   =   0     R            i   f   r     ·       ∑     n   =   0     N            (         g     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   ⋯                   +     
            ∑     p   =   0     P            i   α   p     ·       ∑     q   =   1     Q            (         qi   β     q   -   1       ·                         t              i   β       )     ·       ∑     r   =   0     R            i   f   r     ·       ∑     n   =   0     N            (         g     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   ⋯                   +                
                       ∑     p   =   0     P            i   α   p     ·       ∑     q   =   0     Q            i   β   q     ·       ∑     r   =   0     R            i   f   r     ·       ∑     n   =   1     N          ω   ·   n   ·     (         g     φ                 pqrn       ·     cos        (     n   ·   θ     )         -       h     φ                 pqrn       ·     sin        (     n   ·   θ     )           )                                            (   8   )                               
 
         [0090]    In embodiments employing a switched reluctance machine, there is no imaginary rotor current state as there are no rotor magnets with which this state is associated, hence:  
               i   f     ≡     0                 and                                       t            i   f       ≡   0           (   9   )                               
 
         [0091]    Therefore, in the case of a switched reluctance machine, indexing variable (r) associated with the imaginary rotor phase may be removed from Equation (8):  
                 v   φ     =       R   φ     +       i   α     ·     R   φα       +       i   β     ·     R   φβ       +       i   α     ·     i   β     ·     R     φαβ                 ⋯         +       ∑     p   =   1     P                       (         pi   α     p   -   1       ·                         t              i   α       )     ·       ∑     q   =   0     Q            i   β   q     ·       ∑     n   =   0     N            (         g     φ                 pqn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   ⋯               +                
                       ∑     p   =   0     P            i   α   p     ·       ∑     q   =   1     Q            (         qi   β     q   -   1       ·                         t              i   β       )     ·       ∑     n   =   0     N            (         g     φ                 pqn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqn       ·     cos        (     n   ·   θ     )           )                   ⋯               +                  ∑     p   =   0     P            i   α   p     ·       ∑     q   =   0     Q            i   β   q     ·       ∑     n   =   1     N          ω   ·   n   ·     (         g     φ                 pqn       ·     cos        (     n   ·   θ     )         -       h     φ                 pqn       ·     sin        (     n   ·   θ     )           )                                        (   10   )                               
 
         [0092]    It would be a routine undertaking for one skilled in the art having the benefit of this disclosure to apply a similar process of simplification to the specific case of an SR motor, for example.  
         [0093]    There are several techniques available for calculating the coefficients in the model given test data. As noted above, the electrical model is algebraic, which allows the use of any of a number of parameter estimation techniques, such as least squares methods or grammian matrix methods. Least squares-based parameter estimators find the model coefficients that minimize the square of the difference between the observed data and the output from the model. Recursive least square parameter estimators are used in particular embodiments of the invention. The recursive least squares parameter estimators are most suitable for actual production systems. They operate in such a manner that they can produce an improved estimate with each new sample of data. That is, they are not restricted in their operation to complete sets of test data.  
         [0094]    A further refinement of the recursive least squares parameter estimation technique involves the use of a “forgetting factor,” which operates in the following manner. As more and more data is captured, the effect that the old data has upon the calculation of the new data is reduced. In this way, only the most recent data will have a significant effect in the parameter estimation process. This forgetting factor operates over any appropriate time interval—for example, minutes, hours or days—depending on design considerations. Many of the variables considered do not vary significantly over time. Some, however, such as phase resistance, vary over time and with respect to other factors such as the machine temperature. This added refinement allows the control system to be tuned to any particular machine, and also allows adaptation to changes in that machine. This typically occurs as the machine ages.  
         [0095]    Various data collection schemes may be used for parameter estimation. For example, one data collection technique requires constant phase current, which usually only occurs in controlled data collection situations. Another involves varying current, typical of practical applications.  
         [0096]    In the constant phase current data collection scheme,  
                               t            i   α       =                             t            i   β       =   0                           
 
         [0097]    Under these conditions, Equation (8) reduces to:  
                 v   φ     =       R   φ     +       i   α     ·     R   φα       +       i   β     ·     R   φβ       +       i   α     ·     i   β     ·     R     φαβ                 ⋯         +     
            ∑     p   =   0     P            i   α   p     ·       ∑     q   =   0     Q            i   β   q     ·       ∑     r   =   0     R            i   f   r     ·       ∑     n   =   1     N          ω   ·   n   ·     (         g     φ                 pqrn       ·     cos        (     n   ·   θ     )         -       h     φ                 pqrn       ·     sin        (     n   ·   θ     )           )                                            (   11   )                               
 
         [0098]    For notational convenience and to reflect the unobservability of the i f  term, the following identities are defined as a result of considering the last two Σ terms in Equation (11):  
                   ∑     r   =   0     R            i   f   r     ·     g     φ                 pqrn           =       G     φ                 pqn                     for                 all                 φ       ,     p                 and                 q             (   12   )                     ∑     r   =   0     R            i   f   r     ·     h     φ                 pqrn           =       H     φ                 pqn                     for                 all                 φ       ,     p                 and                 q             (   13   )                               
 
         [0099]    To retain consistency with Equation (10) for the case in which phase current varies, the harmonic terms (n) in Equation (11) are not collected into the H and G terms defined by Equations (12) and (13). Substituting Equations (12) and (13) into Equation (11) results in:  
                 v   φ     =       R   φ     +       i   α     ·     R   φα       +       i   β     ·     R   φβ       +       i   α     ·     i   β     ·     R     φαβ                 ⋯         +     
            ∑     p   =   0     P            i   α   p     ·       ∑     q   =   0     Q            i   β   q     ·       ∑     n   =   1     N          ω   ·   n   ·     (         G     φ                 pqn       ·     cos        (     n   ·   θ     )         -       H     φ                 pqn       ·     sin        (     n   ·   θ     )           )                                        (   14   )                               
 
         [0100]    Division throughout Equation (14) by ω yields:  
                   v   φ     ω     =         1   ω     ·     R   φ       +         i   α     ω     ·     R   φα       +         i   β     ω     ·     R   φβ       +           i   α     ·     i   β       ω     ·     R     φαβ                 ⋯         +     
            ∑     p   =   0     P            i   α   p     ·       ∑     q   =   0     Q            i   β   q     ·       ∑     n   =   1     N          n   ·     (         G     φ                 pqn       ·     cos        (     n   ·   θ     )         -       H     φ                 pqn       ·     sin        (     n   ·   θ     )           )                                        (   15   )                               
 
         [0101]    Using Equation (14), the motor parameters can be estimated in the case of constant phase current.  
         [0102]    As noted above, practical motor applications involve varying current. Equation (8) describes how the flux model coefficients, first presented in Equation (1), propagate through three separate paths when calculating phase voltage in the variable current case. The first path, as previously encountered, passes through those expressions explicitly involving ω. The other two paths involve expressions with time derivatives of the currents. As before, ω is divided throughout and substitutions as indicated in Equations (12) and (13) are made, yielding:  
                                   v   φ     ω            =         1   ω     ·     R   φ       +         i   α     ω     ·     R     φ                 α         +         i   β     ω     ·     R     φ                 β         +             i   α     ·     i   β       ω     ·     R     φ                 α                 β            …                              +     [       1   ω     ·     (                           t            i   α       )       ]       ·       ∑     p   =   1     p                       pi   α     p   -   1       ·       ∑     q   =   0     Q                       i   β   q     ·       ∑     n   =   0     N                       (         G     φ                 pqn       ·     sin        (     n   ·   θ     )         +       H     φ                 pqrn       ·     cos        (     n   ·   θ     )           )        …                                        +     [       1   ω     ·     (                           t            i   β       )       ]       ·       ∑     p   =   0     p                       i   α   p     ·       ∑     q   =   1     Q                       qi   β     q   -   1       ·       ∑     n   =   0     N                       (         G     φ                 pqn       ·     sin        (     n   ·   θ     )         +       H     φ                 pqn       ·     cos        (     n   ·   θ     )           )        …                                      +       ∑     p   =   0     p                       i   α   p     ·       ∑     q   =   0     Q                       i   β   q     ·       ∑     n   =   1     N          n   ·                (         G     φ                 pqn       ·     cos        (     n   ·   θ     )         -       H     φ                 pqn       ·     sin        (     n   ·   θ     )           )                                     Note                   that   :                           1   ω     ·     (                           t          i     )       =           1     (                           t          θ     )       ·                         t            i     =         (                           θ          t     )     ·     (                           t          i     )       =                           θ          i                       (   16   )                               
 
         [0103]    This allows a simple re-working of Equation (16) as follows:  
                 v   φ     ω            =         1   ω     ·     R   φ       +         i   α     ω     ·     R     φ                 α         +         i   β     ω     ·     R     φ                 β         +             i   α     ·     i   β       ω     ·     R     φ                 α                 β            …                              +     (                           θ            i   α       )       ·       ∑     p   =   1     p                       pi   α     p   -   1       ·       ∑     q   =   0     Q                       i   β   q     ·       ∑     n   =   0     N                       (         G     φ                 pqn       ·     sin        (     n   ·   θ     )         +       H     φ                 pqrn       ·     cos        (     n   ·   θ     )           )        …                                        +     (                           θ            i   β       )       ·       ∑     p   =   0     p                       i   α   p     ·       ∑     q   =   1     Q                       qi   β     q   -   1       ·       ∑     n   =   0     N                       (         G     φ                 pqn       ·     sin        (     n   ·   θ     )         +       H     φ                 pqn       ·     cos        (     n   ·   θ     )           )        …                                      +       ∑     p   =   0     p                       i   α   p     ·       ∑     q   =   0     Q                       i   β   q     ·       ∑     n   =   1     N          n   ·                (         G     φ                 pqn       ·     cos        (     n   ·   θ     )         -       H     φ                 pqn       ·     sin        (     n   ·   θ     )           )                                               
 
         [0104]    The advantage of this re-formulation of Equation (16) is that two possible sources of impulsive noise in the equation, and the problems they can cause with a parameter estimator, have been removed. If the driving current forms are assumed known, then their derivatives with respect to angle can be directly calculated. If the current forms are defined in an analytic form, such as from a BEMF model, then a closed expression exists for the derivative else a numerical estimate can be obtained. In particular, if at the (k−1) and k intervals the angle and desired currents are θ(k−1), θ(k), i α (k−1) and i α (k) then:  
                               θ            i   α       =           i   α          (   k   )       -       i   α          (     k   -   1     )             θ        (   k   )       -     θ        (     k   -   1     )                                 
 
         [0105]    This approach implicitly assumes the system exhibits good current following properties.  
         [0106]    Since resistance and flux linkage can be estimated via the electrical model, a torque model relating current and angle to torque generated can be derived through a series of standard operations. Very generally, these operations include integrating the flux linkage from zero current to the present value of current—coenergy, and differentiating this expression with respect to shaft angle. The result of these operations is an expression for torque.  
         [0107]    Coenergy (ω c ) is defined by:  
               ω   c     =     ∫       ∑     φ   =   1       N   φ                         λ   φ               i   φ                     (   17   )                               
 
         [0108]    where N is the number of stator phases. Thus, for a three-phase switched reluctance motor, N φ =3 (for the a, b, and c stator phases), while for a three phase PM motor N φ =4 (for the three stator phases and the imaginary f rotor phase). Torque is found via coenergy by:  
             T   =         ∂               ∂   θ            ω   c               (   18   )                               
 
         [0109]    The relationship between the abc-FoR and the αβ FoR is given by:  
         (           i   α               i   β               i   0           )     =       (         1       0       1               -   1     2               -   1     2     ·     3           1               -   1     2             1   2     ·     3           1         )     ·     (           i   a               i   b               i   c           )                             
 
         [0110]    The derivatives of the abc FoR currents are related to the αβ-FoR currents by:  
               d                     λ   a          (       i   α     ,     i   β     ,     i   f     ,   θ     )         =           ∂               ∂     i   α                λ   a     ·     di   α         +         ∂               ∂     i   β                λ   a     ·     di   β         +         ∂               ∂     i   f                λ   a     ·     di   f                   (   19   )                 d                     λ   b          (       i   α     ,     i   β     ,     i   f     ,   θ     )         =           ∂               ∂     i   α                λ   b     ·     di   α         +         ∂               ∂     i   β                λ   b     ·     di   β         +         ∂               ∂     i   f                λ   b     ·     di   f                   (   20   )                 d                     λ   c          (       i   α     ,     i   β     ,     i   f     ,   θ     )         =           ∂               ∂     i   α                λ   c     ·     di   α         +         ∂               ∂     i   β                λ   c     ·     di   β         +         ∂               ∂     i   f                λ   c     ·     di   f                   (   21   )                 d                     λ   f          (       i   α     ,     i   β     ,     i   f     ,   θ     )         =           ∂               ∂     i   α                λ   f     ·     di   α         +         ∂               ∂     i   β                λ   f     ·     di   β         +         ∂               ∂     i   f                λ   f     ·     di   f                   (   22   )                               
 
         [0111]    and 
           di   a   =di   α   (23) 
         [0112]    [0112]               di   b     =           -   1     2     ·     di   α       -         3     2     ·     di   β                 (   24   )                 di   c     =           -   1     2     ·     di   α       +         3     2     ·     di   β                 (   25   )                               
  di   f   =di   f   (25) 
         [0113]    Since a switched reluctance machine has no permanent magnets, in the case of a switched reluctance machine Equation (26) is as follows:  
         [0114]    di f ≡0  
         [0115]    The expression for coenergy is thus written in the αβ-FoR:  
               ω   c     =       ∫       λ   a               i   α           -       1   2     ·     ∫       λ   b               i   α             -         3     2     ·     ∫       λ   b               i   β             -       1   2     ·     ∫       λ   c               i   α             +         3     2     ·     ∫       λ   c               i   β             +     ∫       λ   f               i   f                     (   27   )                               
 
         [0116]    For convenience, the individual integral components of this expression are set equal to D 1 , D 2 , D 3 , D 4 , D 5  and D 6 , respectively:  
               ω   c     =       D   1     -       1   2     ·     D   2       -         3     2     ·     D   3       -       1   2          D   4       +         3     2     ·     D   5       +     D   6               (   28   )                               
 
         [0117]    Again, in the particular case of a switched reluctance machine:  
         [0118]    D 6 ≡0  
         [0119]    For a switched reluctance machine, Equations (27) and (28) therefore reduce to:  
               ω   c     =       ∫       λ   a               i   α           -       1   2     ·     ∫       λ   b               i   α             -         3     2     ·     ∫       λ   b               i   β             -       1   2     ·     ∫       λ   c               i   α             +         3     2     ·     ∫       λ   c               i   β                       (   29   )                 ω   c     =       D   1     -       1   2     ·     D   2       -         3     2     ·     D   3       -       1   2          D   4       +         3     2     ·     D   5                 (   30   )                               
 
         [0120]    Next, an integral path is selected. To this end, an integral path consisting of three directed line segments (DLS) is defined over which to evaluate the integral giving coenergy. For the purposes of this disclosure, the dummy variable of integration is ξ while phase current variables (i a ,i b ,i c ,i α ,i β ) are in lower case. Their associated final values, with respect to path integrals, are (I a ,I b ,I c ,I α ,I β ).  
         [0121]    Directed line segment one:  
         [0122]    i α =0 di α =0  
         [0123]    i β =0 di β =0  
         [0124]    i f  is the variable of integration, ranging from 0 to I f .  
         [0125]    Directed line segment two:  
         [0126]    i α =0 di α =0  
         [0127]    i β  is the variable of integration, ranging from 0 to I β   
         [0128]    i f =I f  di f =0  
         [0129]    Directed line segment three:  
         [0130]    i α  is the variable of integration, ranging from 0 to I α   
         [0131]    i β =I β  di β =0  
         [0132]    i f =I f  di f =0  
         [0133]    [0133]FIG. 3 illustrates an integration path defined as a sequence of directed line segments  51 ,  52 ,  53 .  
         [0134]    Each of the integrals D 1 -D 6  are then evaluated over the selected path. Evaluating D 1 :, 
           D   1 =∫λ a   di   α   
         [0135]    This is identically zero over all but the third DLS, hence:  
                           D   1     =       ∫   0     I   α              ∑     p   =   0     P                       ξ   p     ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N                       (         g   apqrn     ·     sin        (     n   ·   θ     )         +       h   apqrn     ·     cos        (     n   ·   θ     )           )             ξ                                     yielding   :                                                 D   1     =       ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N                     (         g   apqrn     ·     sin        (     n   ·   θ     )         +         h   apqrn     ·   cos          (     n   ·   θ     )         )                                              (   31   )                               
 
         [0136]    Evaluating D 2 : 
           D   2 =∫λ b   di   α   
         [0137]    This is also identically zero over all but the third directed line segment.  
                           D   2     =       ∫   0     I   α              ∑     p   =   0     P                       ξ   p     ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N                       (         g   bpqrn     ·     sin        (     n   ·   θ     )         +       h   bpqrn     ·     cos        (     n   ·   θ     )           )             ξ                                     yielding   :                                                 D   2     =       ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N                     (         g   bpqrn     ·     sin        (     n   ·   θ     )         +         h   bpqrn     ·   cos          (     n   ·   θ     )         )                                              (   32   )                               
 
         [0138]    Evaluating D 3 : 
           D   3 =∫λ b   di   β   
         [0139]    This is identically zero over all but the second directed line segment, where all terms other than those where p=0 are zero:  
                           D   3     =       ∫   0     I   β              ∑     q   =   0     Q                       ξ   q     ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N                       (         g   b0qrn     ·     sin        (     n   ·   θ     )         +       h   b0qrn     ·     cos        (     n   ·   θ     )           )             ξ                                 yielding   :                                                 D   3     =       ∑     q   =   0     Q                         I   β     q   +   1         q   +   1       ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N                     (         g   b0qrn     ·     sin        (     n   ·   θ     )         +         h   b0qrn     ·   cos          (     n   ·   θ     )         )                                          (   33   )                               
 
         [0140]    Evaluating D 4 : 
           D   4 =∫λ c   di   α   
         [0141]    This is identically zero over all but the third directed fine segment, where all terms are zero except for those where p=q=0:  
                           D   4     =       ∫   0     I   α              [       ∑     p   =   0     P                       ξ   p     ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N                     (         g   cpqrn     ·     sin        (     n   ·   θ     )         +       h   cpqrn     ·     cos        (     n   ·   θ     )           )                   ]             ξ                       yielding   :                                                 D   4     =       ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N                     (         g   cpqrn     ·     sin        (     n   ·   θ     )         +         h   cpqrn     ·   cos          (     n   ·   θ     )         )                                              (   34   )                               
 
         [0142]    Evaluating D 5 : 
           D   5 =∫λ c   di   β   
         [0143]    This is identically zero over all but the second directed line segment.  
                           D   5     =       ∫   0     I   β              ∑     q   =   0     Q                       ξ   q     ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N                       (         g   c0qrn     ·     sin        (     n   ·   θ     )         +       h   c0qrn     ·     cos        (     n   ·   θ     )           )             ξ                                 yielding   :                                                 D   5     =       ∑     q   =   0     Q                         I   β     q   +   1         q   +   1       ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N                     (         g   c0qrn     ·     sin        (     n   ·   θ     )         +         h   c0qrn     ·   cos          (     n   ·   θ     )         )                                          (   35   )                               
 
         [0144]    Evaluating D 6 : 
           D   6 =∫λ f   di   f   
         [0145]    This term is identically zero over all but the first directed line segment.  
                           D   6     =       ∫   0     I   f              [       ∑     r   =   0     R                       i   f   r     ·       ∑     n   =   0     N                     (         g   f00rn     ·     sin        (     n   ·   θ     )         +       h   f00rn     ·     cos        (     n   ·   θ     )           )           ]             ξ                       yielding   :                                                 D   6     =       ∑     r   =   0     R                         I   f   r       r   +   1       ·       ∑     n   =   0     N                     (         g   f00rn     ·     sin        (     n   ·   θ     )         +         h   f00rn     ·   cos          (     n   ·   θ     )         )                                      (   36   )                               
 
         [0146]    Substituting for D 1 , i=1, . . . ,6 into Equation (29):  
                                       ω   c     =         [       ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N          (         g   apqrn     ·     sin        (     n   ·   θ     )         +       h   apqrn     ·     cos        (     n   ·   θ     )           )                   ]        …     +                         -   1     2     ·     [       ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N          (         g   bpqrn     ·     sin        (     n   ·   θ     )         +       h   bpqrn     ·     cos        (     n   ·   θ     )           )                   ]          …     +                             -     3       2     ·     [       ∑     q   =   0     Q              I   β     q   +   1         q   +   1       ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N          (         g   b0qrn     ·     sin        (     n   ·   θ     )         +       h   b0qrn     ·     cos        (     n   ·   θ     )           )               ]          …     +                             -   1     2     ·     [       ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N          (         g   cpqrn     ·     sin        (     n   ·   θ     )         +       h   cpqrn     ·     cos        (     n   ·   θ     )           )                   ]          …     +                             3     2     ·     [       ∑     q   =   0     Q                         I   β     q   +   1         q   +   1       ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   0     N          (         g   c0qrn     ·     sin        (     n   ·   θ     )         +       h   c0qrn     ·     cos        (     n   ·   θ     )           )               ]          …     +                 ∑     r   =   0     R                         I   f   r       r   +   1       ·       ∑     n   =   0     N                     (         g   f00rn     ·     sin        (     n   ·   θ     )         +         h   f00rn     ·   cos          (     n   ·   θ     )         )                       (   37   )                               
 
         [0147]    Substituting Equation (37) into Equation (18):  
                                     T   =         [       ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   1     N          n   ·     (         g   apqrn     ·     cos        (     n   ·   θ     )         -       h   apqrn     ·     sin        (     n   ·   θ     )           )                     ]        …     +                         -   1     2     ·     [       ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   1     N          n   ·     (         g   bpqrn     ·     cos        (     n   ·   θ     )         -       h   bpqrn     ·     sin        (     n   ·   θ     )           )                     ]          …     +                             -     3       2     ·     [       ∑     q   =   0     Q              I   β     p   +   1         q   +   1       ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   1     N          n   ·     (         g   b0qrn     ·     cos        (     n   ·   θ     )         -       h   b0qrn     ·     sin        (     n   ·   θ     )           )                 ]          …     +                             -   1     2     ·     [       ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   1     N          n   ·     (         g   cpqrn     ·     cos        (     n   ·   θ     )         -       h   cpqrn     ·     sin        (     n   ·   θ     )           )                     ]          …     +                             3     2     ·     [       ∑     q   =   0     Q                         I   β     q   +   1         q   +   1       ·       ∑     r   =   0     R                       I   f   r     ·       ∑     n   =   1     N          n   ·     (         g   c0qrn     ·     cos        (     n   ·   θ     )         -       h   c0qrn     ·     sin        (     n   ·   θ     )           )                 ]          …     +                 ∑     r   =   0     R                         I   f   r       r   +   1       ·       ∑     n   =   1     N          n   ·     (         g   f00rn     ·     cos        (     n   ·   θ     )         -       h   f00rn     ·     sin        (     n   ·   θ     )           )                         (   38   )                               
 
         [0148]    Using the identities introduced earlier in Equations (12) and (13), Equation (38) is rewritten:  
                                     T   =         [       ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     n   =   1     N          n   ·     (         G   apqn     ·     cos        (     n   ·   θ     )         -       H   apqn     ·     sin        (     n   ·   θ     )           )                 ]        …     +                         -   1     2     ·     [       ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     n   =   1     N          n   ·     (         G   bpqn     ·     cos        (     n   ·   θ     )         -       H   bpqn     ·     sin        (     n   ·   θ     )           )                 ]          …     +                             -     3       2     ·     [       ∑     q   =   0     Q              I   β     q   +   1         q   +   1       ·       ∑     n   =   1     N          n   ·     (         G   b0qn     ·     cos        (     n   ·   θ     )         -       H   b0qn     ·     sin        (     n   ·   θ     )           )             ]          …     +                             -   1     2     ·     [       ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     n   =   1     N          n   ·     (         G   cpqn     ·     cos        (     n   ·   θ     )         -       H   cpqn     ·     sin        (     n   ·   θ     )           )                 ]          …     +                             3     2     ·     [       ∑     q   =   0     Q                         I   β     q   +   1         q   +   1       ·       ∑     n   =   1     N          n   ·     (         G   c0qn     ·     cos        (     n   ·   θ     )         -       H   c0qn     ·     sin        (     n   ·   θ     )           )             ]          …     +                 ∑     r   =   0     R                         I   f   r       r   +   1       ·       ∑     n   =   1     N          n   ·     (         g   f00rn     ·     cos        (     n   ·   θ     )         -       h   f00rn     ·     sin        (     n   ·   θ     )           )                         (   38   )                               
 
         [0149]    The electrical model parameters naturally flow from the expression for flux linkage to that for torque. However, for motors employing permanent magnets, additional parameters appear as the electrical model is transformed into the torque model. Physically, these parameters relate to how the magnets on the motor interact with themselves—cogging parameters. It is not mathematically obvious how changes in motor terminal current and voltage, as the motor spins, indicate or measure this behavior. In other words, the cogging parameters are unobservable solely via feedback from the motor terminals as the rotor turns.  
         [0150]    Various methods in accordance with the present invention are available to deal with these unobservable parameters. For example, in one embodiment, the torque model terms with unobservable parameters are grouped together:  
                   T          =         ∑     p   =   0     p                         I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     n   =   1     N                       n   ·     [               (       G   apqn     -       G   bpqn     2     -       G   cpqn     2       )     ·     cos        (     n   ·   θ     )                       …                 +     (       -     H   apqn       +       H   bpqn     2     +       H   cpqn     2       )       ·     sin        (     n   ·   θ     )               ]          …               +                              ∑     q   =   0     Q                         I   β     q   +   1         q   +   1       ·       ∑     n   =   1     N                           3     2     ·   n   ·     [         (       -     G   b0qn       +     G   c0qn       )     ·     cos        (     n   ·   θ     )         +       (       H   b0qn     -     H   c0qn       )     ·     sin        (     n   ·   θ     )           ]                     …                      +                                       ∑     r   =   0     R                         I   f   r       r   +   1       ·       ∑     n   =   1     N          n   ·     (         g   f00rn     ·     cos        (     n   ·   θ     )         -       h   f00rn     ·     sin        (     n   ·   θ     )           )                           (   39   )                               
 
         [0151]    For the particular case of a switched reluctance machine these parameters are simply not present (no magnets in the motor construction) and Equation (39) reduces to:  
                   T          =         ∑     p   =   0     p                         I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     n   =   1     N                       n   ·     [               (       G   apqn     -       G   bpqn     2     -       G   cpqn     2       )     ·     cos        (     n   ·   θ     )                       …                 +     (       -     H   apqn       +       H   bpqn     2     +       H   cpqn     2       )       ·     sin        (     n   ·   θ     )               ]          …               +                            ∑     q   =   0     Q                         I   β     q   +   1         q   +   1       ·       ∑     n   =   1     N          n   ·                  3     2     ·     [         (       -     g   b0qn       +     g   c0qn       )     ·     cos        (     n   ·   θ     )         +       (       h   b0qn     -     h   c0qn       )     ·     sin        (     n   ·   θ     )           ]                                      (   40   )                               
 
         [0152]    The triple and first double summation terms in Equation (39) involve coefficients that are observable through the motor terminals while the second double summation groups those terms that are not observable.  
         [0153]    Cogging torque is measured, directly or indirectly, to provide data used to derive an expression that can be substituted for the unknown grouped terms. For example, by spinning the motor on a test rig (no current applied to the motor windings) and measuring the cogging, a Fourier series can be fitted directly to the test data and this known expression is substituted for the unknown grouped terms. Consider Equation (39) in the particular case when there no current is flowing in the stator phases:  
         [0154]    I α =I β =0  
         [0155]    The grouped unobservable terms from Equation (39) are as follows:  
         ∑     r   =   0     R                         I   f   r       r   +   1       ·       ∑     n   =   1     N                     (         g   f00rn     ·     cos        (     n   ·   θ     )         -       h   f00rn     ·     sin        (     n   ·   θ     )           )                               
 
         [0156]    Since I f  is nominally constant, the effect of cogging can be modeled by a trigonometric polynomial:  
               ∑     n   =   1     N                     (         p   n     ·     sin        (     n   ·   θ     )         +       q   n     ·     cos        (     n   ·   θ     )           )             (   41   )                               
 
         [0157]    The p n  and q n  parameters are provided by the cogging torque measurement obtained from the unenergized motor. It is then assumed that Equation (41) can replace the unobservable component of the expression for torque in Equation (39), that is:  
           ∑     r   =   0     R                         I   f   r       r   +   1       ·       ∑     n   =   1     N                     n   ·     (         g   f00rn     ·     cos        (     n   ·   θ     )         -       h   f00rn     ·     sin        (     n   ·   θ     )           )             =       ∑     n   =   1     N                     (         p   k     ·     sin        (     n   ·   θ     )         +       q   k     ·     cos        (     n   ·   θ     )           )                             
 
         [0158]    which yields:  
                   T          =         ∑     p   =   0     p                         I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     n   =   1     N                       n   ·     [               (       G   apqn     -       G   bpqn     2     -       G   cpqn     2       )     ·     cos        (     n   ·   θ     )                       …                 +     (       -     H   apqn       +       H   bpqn     2     +       H   cpqn     2       )       ·     sin        (     n   ·   θ     )               ]          …               +                              ∑     q   =   0     Q                         I   β     q   +   1         q   +   1       ·       ∑     n   =   1     N                       n   ·     [         (           -     3       2     ·     G   b0qn       +         3     2     ·     G   c0qn         )     ·     cos        (     n   ·   θ     )         +       (           3     2     ·     H   b0qn       -         3     2     ·     H   c0qn         )     ·     sin        (     n   ·   θ     )           ]                     …                      +                                       ∑     r   =   1     N          (         p   k     ·     sin        (     n   ·   θ     )         +       q   k     ·     cos        (     n   ·   θ     )           )                     (   42   )                               
 
         [0159]    Other techniques in accordance with the invention use an indirect measurement of cogging torque. This generally involves three steps. First, during commissioning, the motor is spun at speed unloaded (free shaft) at one or more speeds. Since there is no load applied to the motor shaft, the motor current is minimal. A simple linear voltage model (for example, including only phase currents and BEMF components—the α and β currents appear independent and to the first power only) of the motor is fitted from the voltage, current and shaft sensor information. The linear model will predict the operation of the motor at light loads quite accurately. Next, the torque model for the motor is derived as described previously from the linear voltage motor. The torque model will predict the output torque of the motor at light loads quite accurately.  
         [0160]    In an alternative method, during commissioning, the motor is spun at speed unenergized and the terminal voltage is measured. Using this data, part of the complete motor model, the BEMF component, can be fitted. Using the same method as that for the complete model, a torque model can be created from this partial electrical model. The resultant model does not fully describe how the motor generates torque over the full current range, but for small values of current it is reasonably accurate.  
         [0161]    The motor is then controlled so that position is maintained. That is, the controller energizes the windings until the motor holds a demanded position, against the cogging torque (it is assumed that no other load is applied—the motor is operating free shaft). Knowing a relatively accurate torque model for these low current ranges, the value of cogging torque at any particular angle can now be calculated. In this way, by repeating the above process over a full revolution, data can be collected concerning the cogging model. A Fourier series, for example, can be fitted, a look-up table can be created, etc., as previously and this is used in place of those terms in the torque model that involves unobservable parameters.  
         [0162]    For numerical reasons it is desirable that the αβ-FoR currents are normalized so that they lie in the closed interval [−1,1]. This process is best understood by considering Equation (1):  
               λ   φ     =       ∑     p   =   0     p                       i   α   p     ·       ∑     q   =   0     Q                       i   β   q     ·       ∑     r   =   0     R                       i   f   r     ·       ∑     n   =   0     N                     (         g     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                           (   1   )                               
 
         [0163]    Assuming flux is directly measured and that measured currents are normalized using some scale factor I, then Equation (1) becomes:  
               λ   φ     =       ∑     p   =   0     p                         (       i   α     I     )     p     ·       ∑     q   =   0     Q                         (       i   β     I     )     q     ·       ∑     r   =   0     R                         (       i   f     I     )     r     ·       ∑     n   =   0     N                     (         g     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                           (   43   )                               
 
         [0164]    The corresponding voltage equation is given by:  
                     v   φ            =       R   φ     +         i   α     I     ·     R     φ                 α         +         i   β     I     ·     R     φ                 β         +           i   α     I     ·       i   β     I     ·     R     φ                 α                 β                       …     +                              ∑     p   =   1     p            [     p                       (       i   α     I     )       p   -   1       ·                         t                         (       i   α     I     )       ]     ·       ∑     q   =   0     Q                         (       i   β     I     )     q     ·       ∑     r   =   0     R                         (       i   f     I     )     r     ·       ∑     n   =   0     N                       (         g     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   …                              +                              ∑     p   =   0     p                           (       i   α     I     )     p     ·       ∑     [   q         q   =   1     Q                           (       i   β     I     )       q   -   1       ·                         t                         (       i   β     I     )              ]   ∑       r   =   0     R                       (       i   f     I     )     r     ·       ∑     n   =   0     N                       (         g     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   …             +                            ∑     p   =   0     p                         (       i   α     I     )     p     ·       ∑     q   =   0     Q                         (       i   β     I     )     q     ·       ∑     r   =   0     R                         (       i   f     I     )     r     ·       ∑     n   =   1     N          ω   ·   n   ·                (         g     φ                 pqrn       ·     cos        (     n   ·   θ     )         -       h     φ                 pqrn       ·     sin        (     n   ·   θ     )           )                                   (   44   )                               
 
         [0165]    Terms such as  
                             t            (       i   α     I     )                           
 
         [0166]    correspond to the derivative of the normalized current. Two further equations of interest referenced earlier are those relating flux to coenergy and coenergy to torque:  
               ω   c     =     ∫       ∑     φ   =   1       N   φ              λ   φ               i   φ                     (   17   )               T   =         ∂               ∂   θ            ω   c               (   18   )                               
 
         [0167]    The integral in Equation (17) is with respect to true current measurement. From this, if the torque equation is evaluated using normalized current then true torque value is obtained my multiplying by the scaling factor I.  
         [0168]    The torque model is used by the solver  34  to calculate appropriate currents for smooth torque with zero angle sensitivity. Over a single revolution of the shaft, the torque levels calculated may be such as to reject some disturbance. Further, as discussed above, errors in position measurement degrade performance, and the performance tends to rapidly deteriorate with errors in angular measurement. To achieve smooth torque with zero, or at least reduced sensitivity to angular measurement, a solution is derived that considers the change in torque with respect to angle, then minimizes this variance. First, a set of nonlinear equations are solved. For N functional relationships involving variables x i , i=1, . . . ,N: 
           F   i ( x   1   ,x   2   , . . . ,x   N )=0  i= 1 , . . . ,N   (45) 
         [0169]    Adopting vector notation and expanding the functions F i  using the Taylor series:  
                 F   i          (     x   +     δ                 x       )       =         F   i          (   x   )       +       ∑     j   =   1     N              ∂               ∂     x   j                F   i     ·   δ                     x   j         +     O        (     δ                   x   2       )                 (   46   )                               
 
         [0170]    The Jacobian is written:  
               J   ij     =         ∂               ∂     x   j              F   i               (   47   )                               
 
         [0171]    Then: 
           F ( x+δx )= F ( x )+ J·δx+O (δ x   2 )  (48) 
         [0172]    From this, a set of linear equations is obtained: 
           J·δx   new   =−F   (49) 
         [0173]    Solving the linear equation above yields: 
           x   new   =x   old   +δx   new   (50) 
         [0174]    In this particular case, the non-linear equations are for torque and zero sensitivity with respect to angle condition.  
         [0175]    In the problem under discussion, while the Jacobian matrix will generally be small (two by two or three by three) there is little computational cost in calculating the inverse. However, there is significant overhead in calculating the individual elements of the Jacobian. One way to reduce the cost of computing is to keep the Jacobian constant for some number of iterations p&gt;1. Such a technique (cyclic updating of the Jacobian matrix) offsets the reduction in computational cost with a deterioration in convergence rate for the solution. There are also multi-dimensional secant-type methods that avoid the explicit calculation of the Jacobian through the use of multi-dimensional finite differencing.  
         [0176]    With the method described above, the initial guess to the solution has to be reasonably close because global convergence is not guaranteed. This typically is not problematical while searching for solutions for PM motors but may be so for switched reluctance motors. One possible solution is to examine the use of quasi-Newton methods, which possess global convergence properties, possibly with a restart scheme.  
         [0177]    Torque may be calculated via coenergy using Equation (39), repeated as follows:  
             T   =         ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q            I   β   q     ·       ∑     n   =   1     N            n   ·     [                 (       G   apqn     -       G   bpqn     2     -       G   cpqn     2       )     ·     cos        (     n   ·   θ     )                       …     +                 (       -     H   apqn       +       H   bpqn     2     +       H   cpqn     2       )     ·     sin        (     n   ·   θ     )               ]          …               +       ∑     q   =   0     Q              I   β     q   +   1         q   +   1       ·       ∑     n   =   1     N                3     2     ·   n   ·     [         (       -     G   b0qn       +     G   c0qn       )     ·     cos        (     n   ·   θ     )         +       (       H   b0qn     -     H   c0qn       )     ·     sin        (     n   ·   θ     )           ]                     …           +       ∑     r   =   0     R              I   f   r       r   +   1       ·       ∑     n   =   1     N          n   ·     (         g   f00rn     ·     cos        (     n   ·   θ     )         -       h   f00rn     ·     sin        (     n   ·   θ     )           )                       (   39   )                               
 
         [0178]    Ignoring the unobservable parameters and re-arranging Equation (39) yields:  
             0   =         ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q            I   β   q     ·       ∑     n   =   1     N            n   ·     [                 (       G   apqn     -       G   bpqn     2     -       G   cpqn     2       )     ·     cos        (     n   ·   θ     )                       …     +                 (       -     H   apqn       +       H   bpqn     2     +       H   cpqn     2       )     ·     sin        (     n   ·   θ     )               ]                     …               +       ∑     q   =   0     Q              I   β     q   +   1         q   +   1       ·       ∑     n   =   1     N              3     2     ·   n   ·     [         (       -     G   b0qn       +     G   c0qn       )     ·     cos        (     n   ·   θ     )         +         (       H   b0qn     -     H   c0qn       )     ·   sin          (     n   ·   θ     )         ]             -   T             (   51   )                               
 
         [0179]    The necessary partial derivatives or entries to the Jacobian, with respect to i α  and i β , can now be derived.  
                   ∂               ∂     i   α              T        (       i   α     ,     i   β     ,   θ     )         =       ∑     p   =   0     P            I   α   p     ·       ∑     q   =   0     Q            I   β   q     ·       ∑     n   =   1     N          n   ·     [                 (       G   apqn     -       G   bpqn     2     -       G   cpqn     2       )     ·     cos        (     n   ·   θ     )                       …     +                 (       -     H   apqn       +       H   bpqn     2     +       H   cpqn     2       )     ·     sin        (     n   ·   θ     )               ]                         (   52   )                       ∂               ∂     i   β              T        (       i   α     ,     i   β     ,   θ     )         =         ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q            qI   β     q   -   1       ·       ∑     n   =   1     N            n   ·     [                 (       G   apqn     -       G   bpqn     2     -       G   cpqn     2       )     ·     cos        (     n   ·   θ     )                       …     +                 (       -     H   apqn       +       H   bpqn     2     +       H   cpqn     2       )     ·     sin        (     n   ·   θ     )               ]                     …               +       ∑     q   =   0     Q            I   β   q     ·       ∑     n   =   1     N              3     2     ·   n   ·     [                 (       -     G   b0qn       +     G   c0qn       )     ·     cos        (     n   ·   θ     )                       …     +                 (       H   apqn     +       H   bpqn     2     +       H   cpqn     2       )     ·     sin        (     n   ·   θ     )               ]                      
          Hence   :             (   53   )                   J   11     =       ∑     p   =   0     P            I   α   p     ·       ∑     q   =   0     Q            I   β   q     ·       ∑     n   =   1     N          n   ·     [                 (       G   apqn     -       G   bpqn     2     -       G   cpqn     2       )     ·     cos        (     n   ·   θ     )                       …     +                 (       -     H   apqn       +       H   bpqn     2     +       H   cpqn     2       )     ·     sin        (     n   ·   θ     )               ]                                      (   54   )                 J   11     =         ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q            qI   β     q   -   1       ·       ∑     n   =   1     N            n   ·     [                 (       G   apqn     -       G   bpqn     2     -       G   cpqn     2       )     ·     cos        (     n   ·   θ     )                       …     +                 (       -     H   apqn       +       H   bpqn     2     +       H   cpqn     2       )     ·     sin        (     n   ·   θ     )               ]                     …               +       ∑     q   =   0     Q            I   β   q     ·       ∑     n   =   1     N              3     2     ·   n   ·     [         (       -     G   b0qn       +     G   c0qn       )     ·     cos        (     n   ·   θ     )         +         (       H   b0qn     -     H   c0qn       )     ·   sin          (     n   ·   θ     )         ]                       (   55   )                               
 
         [0180]    Regarding zero angular sensitivity, sensitivity with respect to angle is given by:  
                 ∂               ∂   θ          T           (   56   )                               
 
         [0181]    From Equation (39):  
                   ∂               ∂   θ          T     =         ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q            I   β   q     ·       ∑     n   =   1     N              n   2     ·     [                            -     (       G   apqn     -       G   bpqn     2     -       G   cpqn     2       )       ·     sin        (     n   ·   θ     )                       …     +                 (       -     H   apqn       +       H   bpqn     2     +       H   cpqn     2       )     ·     cos        (     n   ·   θ     )                          ]                     …               +       ∑     q   =   0     Q              I   β     q   +   1         q   +   1       ·       ∑     n   =   1     N              n   2     ·       3     2     ·     [                 -     (       -     G   b0qn       +     G   c0qn       )       ·     sin        (     n   ·   θ     )                       …     +                 (       H   b0qn     -     H   c0qn       )     ·     cos        (     n   ·   θ     )               ]            
          Hence   :                       (   57   )                   J   21     =         ∂               ∂     i   α                ∂               ∂   θ          T            
          and   :             (   58   )                 J   22     =         ∂               ∂     i   β                ∂               ∂   θ          T             (   59   )                               
 
         [0182]    By changing the order of the partial derivatives, in Equations (58) and (59):  
               J   21     =         ∂               ∂   θ            J   11               (   60   )                 J   22     =         ∂               ∂   θ            J   12               (   61   )                               
 
         [0183]    As noted above, cogging torque cannot be estimated using data available solely from the motor terminals. The cogging model discussed above can be incorporated directly into the solver  34 . Recall that the observable and unobservable torque model terms were grouped together in Equation (39). If total motor torque is separated into torque estimated via terminal variables (T tv ) and cogging torque (T cog ), then: 
           T=T   tv   +T   cog   (62) 
         [0184]    and  
                   ∂               ∂   θ          T     =           ∂               ∂   θ            T   tv       +         ∂               ∂   θ            T   cog                 (   63   )                               
 
         [0185]    Considering T cog  as solely a function of angle (representing the angle dependant but current independent cogging) in terms of a Fourier series:  
                   ∂               ∂     i   α              T   cog       =           ∂               ∂     i   β              T   cog       =   0             (   64   )                     ∂               ∂     i   α              (         ∂               ∂   θ            T   cog       )       =           ∂               ∂     i   β              (         ∂               ∂   θ            T   cog       )       =   0             (   65   )                               
 
         [0186]    From Equations (64) and (65) it is seen that there is no effect upon the calculation of the Jacobian matrix, see Equation (39) and Equations (51) to (61). The only effect is upon the calculation of true torque (T) and its partial derivative with respect to angle, or the sensitivity. Recall Equation (39):  
             T          =         ∑     p   =   0     p                         I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     n   =   1     N                       n   ·     [               (       G   apqn     -       G   bpqn     2     -       G   cpqn     2       )     ·     cos        (     n   ·   θ     )                       …                 +     (       -     H   apqn       +       H   bpqn     2     +       H   cpqn     2       )       ·     sin        (     n   ·   θ     )               ]          …               +                              ∑     q   =   0     Q                         I   β     q   +   1         q   +   1       ·       ∑     n   =   1     N                     n            3     2     ·     [         (       -     G   b0qn       +     G   c0qn       )     ·     cos        (     n   ·   θ     )         +       (       H   b0qn     -     H   c0qn       )     ·     sin        (     n   ·   θ     )           ]                     …                      +                                       ∑     r   =   0     R                         I   f   r       r   +   1       ·       ∑     n   =   1     N          n   ·     (         g   f00rn     ·     cos        (     n   ·   θ     )         -       h   f00rn     ·     sin        (     n   ·   θ     )           )                                         
 
         [0187]    If, as mentioned previously, T cog  is treated as a function of mechanical angle via a Fourier series:  
                 T   cog          (   θ   )       =       ∑     n   =   1       N   c                       (         a   n     ·     sin        (     n   ·   θ     )         +       b   n     ·     cos        (     n   ·   θ     )           )               (   66   )                               
 
         [0188]    then Equation (39) yields:  
                   T          =         ∑     p   =   0     p                         I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     n   =   1     N                       n   ·     [               (       G   apqn     -       G   bpqn     2     -       G   cpqn     2       )     ·     cos        (     n   ·   θ     )                       …                 +     (       -     H   apqn       +       H   bpqn     2     +       H   cpqn     2       )       ·     sin        (     n   ·   θ     )               ]          …               +                              ∑     q   =   0     Q                         I   β     q   +   1         q   +   1       ·       ∑     n   =   1     N                           3     2     ·   n   ·     [         (       -     G   b0qn       +     G   c0qn       )     ·     cos        (     n   ·   θ     )         +       (       H   b0qn     -     H   c0qn       )     ·     sin        (     n   ·   θ     )           ]                     …                      +                                       ∑     n   =   1       N   c            (         a   n     ·     sin        (     n   ·   θ     )         +       b   n     ·     cos        (     n   ·   θ     )           )                     (   67   )                               
 
         [0189]    True sensitivity is then the partial derivative with respect to angle of the expression for torque presented in Equation (67), see Equation (57):  
                     S   a            =         ∑     p   =   0     p                         I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q                       I   β   q     ·       ∑     n   =   1     N                         n   2     ·     [               -     (       G   apqn     -       G   bpqn     2     -       G   cpqn     2       )       ·     sin        (     n   ·   θ     )                       …                 +     (       -     H   apqn       +       H   bpqn     2     +       H   cpqn     2       )       ·     cos        (     n   ·   θ     )               ]          …               +                              ∑     q   =   0     Q                         I   β     q   +   1         q   +   1       ·       ∑     n   =   1     N                             3     ·     n   2       2     ·     [         -     (       -     G   b0qn       +     G   c0qn       )       ·     sin        (     n   ·   θ     )         +       (       H   b0qn     -     H   c0qn       )     ·     cos        (     n   ·   θ     )           ]                     …                      +                                       ∑     n   =   1       N   c            n   ·     (         a   n     ·     cos        (     n   ·   θ     )         -       b   n     ·     sin        (     n   ·   θ     )           )                       (   68   )                               
 
         [0190]    To this point it has been assumed that the smooth torque solution is achieved in a point by point manner. An alternative approach is to calculate the solution across the angle intervals in the interval (0,2π) simultaneously. For convenience, the following nomenclature is introduced. Suppose for a particular torque and sensitivity demand the solution is to be calculated at various angles: 
         θ( k ) for all k=1 , . . . ,N   
         [0191]    The current column vector is given by:  
             I   =     (             i   α          (     θ        (   1   )       )                   i   α          (     θ        (   2   )       )               ⋯               i   α          (     θ        (   N   )       )                   i   β          (     θ        (   1   )       )                   i   β          (     θ        (   2   )       )               ⋯               i   β          (     θ        (   N   )       )             )             (   69   )                               
 
         [0192]    If the new 
           I ( n +1)= I ( n )+Δ( n )  (70) 
         [0193]    The k th  torque vector is a row vector defined by: 
         φ Tk =(0 . . . 0 T   (θ(   k ), i   α ( k ),i β ( k ))0 . . . 0) 
         [0194]    Similarly, the k&#39;th sensitivity vector is defined by: 
         φ Sk =(0 . . . 0 S (θ( k ), i   α ( k ), i   β ( k ))0 . . . 0) 
         [0195]    These vectors can be stacked to form diagonal matrices:  
             A   =     (           φ   T1             ⋯             φ   TN           )             B   =     (           φ   S1             ⋯             φ   SN           )                                 
 
         [0196]    Finally, appropriate partial derivatives with respect to the currents are taken and the resultant matrices aggregated to form a 2N by 2N matrix:  
             Φ   =     (               ∂               ∂     i   α            A          ∂               ∂     i   β            A                   ∂               ∂     i   α            B          ∂               ∂     i   β            B           )             (   71   )                               
 
         [0197]    The desired torque and sensitivity at a particular angle θ(k) are given by: 
           T (θ( k ))  S (θ( k )) 
         [0198]    The 2N×1 demand vector D of these values over the angle range is given by:  
             D   =     (             T   d          (     θ        (   1   )       )                   T   d          (     θ        (   2   )       )               ⋯               T   d          (     θ        (   N   )       )                   S   d          (     θ        (   1   )       )               ⋯               S   d          (     θ        (   1   )       )             )             (   72   )                               
 
         [0199]    and the actual values of torque and sensitivity resultant from any current combination (i α ,i β ) which constitute the iterated solution are given by the column vector:  
             A   =     (           T        (       θ        (   1   )       ,       i   α          (   1   )       ,       i   β          (   1   )         )                 T        (       θ        (   2   )       ,       i   α          (   2   )       ,       i   β          (   2   )         )               ⋯             T        (       θ        (   N   )       ,       i   α          (   N   )       ,       i   β          (   N   )         )                 S        (       θ        (   1   )       ,       i   α          (   1   )       ,       i   β          (   1   )         )               ⋯             S        (       θ        (   N   )       ,       i   α          (   N   )       ,       i   β          (   N   )         )             )             (   73   )                               
 
         [0200]    Using this notation and from the development initially presented: 
         Δ( n )=Φ −1 ·( D−A )  (74) 
         [0201]    with: 
           I ( n +1)= I ( n )+Δ( n ) 
         [0202]    Starting from a reasonable guess, three to fifteen iterations is typically sufficient when dealing with a PM motor. As in the switched reluctance motor case previously, issues of convergence becomes critical. Typical seed values for the PM motor are usually chosen to lie upon a sine wave generated with some harmonic appropriate to the machine in question. Hence, in the unstacked version of the solver:  
         (           i   α               i   β           )     =     (         0.2             -   0.2           )                           
 
         [0203]    In the stacked version this expression is replaced with sine feeds of the appropriate magnitude and harmonic, for example, five in a 12-10 PM motor.  
         [0204]    An alternative to approach to that outlined above is to view the problem as a constrained non-linear optimization task with respect to the alpha beta currents for each angle: 
         [0205]    [0205]             ∂               ∂   θ            T        (       i   α     ,     i   β     ,     θ        (   k   )         )         =   0                         
  T ( i   α   ,i   β ,θ( k ))= T   demand   
           MIN ( i   α   2   +i   β   2 ) 
         [0206]    Such a problem is a particular case of that described in  Sensitivity of Automatic Control Systems  by Rosenwasser and Yusupov (CRC Press, 1999).  
         [0207]    In some cases where cogging frequencies are high, the resultant current profiles may prove difficult to follow. Of course, increasingly complex and expensive drives can provide better current profile following capabilities. In practice, a reasonable balance between cost and current following capabilities is required. One solution is the removal of the higher harmonic terms from all the sensitivity expressions presented throughout this disclosure. In particular, consider the expression presented in Equation (71). If the higher harmonic terms are ignored, above N t , then:  
               S   a     =         ∑     p   =   0     P              I   α     p   +   1         p   +   1       ·       ∑     q   =   0     Q            I   β   q     ·       ∑     n   =   1     N              n   2     ·     [                 -     (       G   apqn     -       G   bpqn     2     -       G   cpqn     2       )       ·     sin        (     n   ·   θ     )                       …     +                 (       -     H   apqn       +       H   bpqn     2     +       H   cpqn     2       )     ·     cos        (     n   ·   θ     )               ]          …               +       ∑     q   =   0     Q              I   β     q   +   1         q   +   1       ·       ∑     n   =   1     N                  3     ·     n   2       2     ·     [         -     (       -     G   b0qn       +     G   c0qn       )       ·     sin        (     n   ·   θ     )         +       (       H   b0qn     -     H   c0qn       )     ·     cos        (     n   ·   θ     )           ]                     …           +       ∑     n   =   1       N   t            n   ·     (         a   n     ·     cos        (     n   ·   θ     )         -       b   n     ·     sin        (     n   ·   θ     )           )                   (   75   )                               
 
         [0208]    Typically the cut-off harmonic will be in the range 35 to 40. This will result in smoother current profiles, which in the presence of error in angular precision, will introduce higher frequency torque ripple somewhat more quickly than would otherwise be the case.  
         [0209]    If balanced feed is not used, it is necessary to use the abc-FoR. As with the αβ-FoR discussion above, the following disclosure is generally provided in terms of a three phase hybrid motor, though the model form can be generalized into different types of rotating machines having any number of phases by one skilled in the art having the benefit of this disclosure. For notational convenience, the abc-stator phases are represented by “1,” “2” and “3” subscripts, while the single rotor phase is represented by a “4” subscript.  
         [0210]    The general form of the flux linkage model in the abc-FoR is given by:  
                 λ   φ          (       i   1     ,     i   2     ,     i   3     ,     i   4     ,   θ     )       =       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N          (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                               (   76   )                               
 
         [0211]    Equation (4) provides the known equation:  
               v   φ     =         i   φ     ·     R   φ       +                           t            λ   φ                 (   4   )                               
 
         [0212]    From Equation (76):  
                                     t            λ   φ       =         ∑     p   =   0     P          p   ·     i   1     p   -   1       ·     (                           t            i   1       )     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                       +       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q            qi   2     q   -   1       ·     (                           t            i   2       )     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                       +       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q              i   2   q     ·       ∑     r   ·         r   =   0     R              i   3     r   -   1       ·     (                           t            i   3       )     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                     +       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            si   4     s   -   1       ·     (                           t            i   4       )     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                       +       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N          ω   ·   n   ·     (         g     φ                 pqrsn       ·     cos        (     n   ·   θ     )         -       h     φ                 pqrsn       ·     sin        (     n   ·   θ     )           )                                   (   77   )                               
 
         [0213]    Substituting Equation (77) into Equation (4):  
                 v   φ     =         i   φ     ·     R   φ       +       ∑     p   =   0     P          p   ·     i   1     p   -   1       ·     (                           t            i   1       )     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                       +       ∑     p   =   0     P              i   1   p     ·       ∑   q       q   =   0     Q              i   2     q   -   1       ·     (                           t            i   2       )     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                     +       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q              i   2   q     ·       ∑     r   ·         r   =   0     R              i   3     r   -   1       ·     (                           t            i   3       )     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                     +       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            si   4     s   -   1       ·     (                           t            i   4       )     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                       +       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N          ω   ·   n   ·     (         g     φ                 pqrsn       ·     cos        (     n   ·   θ     )         -       h     φ                 pqrsn       ·     sin        (     n   ·   θ     )           )                                                (   78   )                               
 
         [0214]    As noted herein above, in the particular case of a switched reluctance motor:  
         [0215]    i f ≡0 and  
                                     t            i   f       ≡   0           (   9   )                               
 
         [0216]    Page  53  of  84   
         [0217]    So in the case of a switched reluctance motor, Equation (78) yields  
                 v   φ     =         i   φ     ·     R   φ       +       ∑     p   =   0     P          p   ·     i   1     p   -   1       ·     (                           t            i   1       )     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                   +       ∑     p   =   0     P              i   1   p     ·       ∑   q       q   =   0     Q              i   2     q   -   1       ·     (                           t            i   2       )     ·       ∑     r   =   0     R            i   3   r     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                 +       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q              i   2   q     ·       ∑     r   ·         r   =   0     R              i   3     r   -   1       ·     (                           t            i   3       )     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                 +       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     n   =   1     N          ω   ·   n   ·     (         g     φ                 pqrsn       ·     cos        (     n   ·   θ     )         -       h     φ                 pqrsn       ·     sin        (     n   ·   θ     )           )                                            (   79   )                               
 
         [0218]    Recall from Equations (17) and (18), coenergy and torque are found using the expressions:  
               ω   c     =     ∫       ∑     φ   =   1     4            λ   φ               i     c                                     (   17   )               T   =         ∂               ∂   θ            ω   c               (   18   )                               
 
         [0219]    Any reasonable integral path can be selected; in certain embodiments four directed line segments are used:  
         [0220]    Variable of integration i 4  di 4 ≠C i 1 ,i 2 ,i 3 ,di 1 ,di 2 ,di 3 =C  
         [0221]    Variable of integration i 1  di 1 ≠C i 4 =I 4  i 2 ,i 3 ,di 2 ,di 3 ,di 4 =C  
         [0222]    Variable of integration i 2  di 2 ≠C i 4 =I 4  i 1 =I 1  i 3 ,di 1 ,di 3 ,di 4 =C  
         [0223]    Variable of integration i 3  di 3 ≠C i 4 =I 4  i 1 =I 1  i 2 =I 2  di 1 ,di 2 ,di 4 =C  
         [0224]    This path is selected to minimize the number of unobservable parameters appearing in the final expression for torque.  
         [0225]    The integrals are then evaluated over the selected path. Substituting Equation (76) into Equation (17):  
               ω   c     =     ∫       [       ∑     φ   =   1     4            ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N          (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·                cos        (     n   ·   θ     )           )                         ]               i     c                                   (   80   )                               
 
         [0226]    For notational convenience, this integral is re-written:  
               ω   c     =       ∑     φ   =   1     4          F     c                               (   81   )                               
 
         [0227]    where, for φ=1, . . . ,4:  
               F   φ     =     ∫       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )               i     c                                                     (   82   )                               
 
         [0228]    In the particular case of a switched reluctance machine (no permanent magnets) there is no associated stator phase:  
                 F   φ     =       ∫       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )               i     c                                     φ                     =   1       ,   2   ,   3.                                           
 
         [0229]    Integral One (F 1 ):  
         F   1     =     ∫       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     n   =   1     N            (         g     1      pqrsn       ·     sin        (     n   ·   θ     )         +       h     1      pqrsn       ·     cos        (     n   ·   θ     )           )               i   1                                               
 
         [0230]    This is identically zero over all but the second DLS, where:  
         [0231]    i 4 =I 4  i 1 ,i 2 ,i 3 =C di 2 ,d 3 ,d 4 =C  
         [0232]    hence:  
                 F   1     =       ∫   0     I   1              ∑     p   =   0     P            ξ   p     ·       ∑     s   =   0     S            I   4   s     ·       ∑     n   =   1     N            (         g     1      p00sn       ·     sin        (     n   ·   θ     )         +       h     1      p00sn       ·     cos        (     n   ·   θ     )           )             ξ                          
          yielding   :                               F   1     =       ∑     p   =   0     P              I   1     p   +   1         p   +   1       ·       ∑     s   =   0     S            I   4   s     ·       ∑     n   =   1     N          (         g     1      p00sn       ·     sin        (     n   ·   θ     )         +       h     1      p00sn       ·     cos        (     n   ·   θ     )           )                       (   83   )                               
 
         [0233]    Integral Two (F 2 ):  
         F   2     =     ∫       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            I   4   s     ·       ∑     n   =   1     N            (         g     2      pqrsn       ·     sin        (     n   ·   θ     )         +       h     2      pqrsn       ·     cos        (     n   ·   θ     )           )               i   2                                                   
 
         [0234]    This is identically zero along all but the third DLS, where:  
         [0235]    i 4 =I 4  i i =I 1  i 1 ,i 3 =C di 1 ,di 3 ,di 4 =C  
         [0236]    hence:  
                 F   2     =       ∫   0     I   2              ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            ξ   q     ·       ∑     s   =   0     S            I   4   s     ·       ∑     n   =   1     N            (         g     2      pq0sn       ·     sin        (     n   ·   θ     )         +       h     2      pq0sn       ·     cos        (     n   ·   θ     )           )             ξ                              
          yielding   :                               F   2     =       ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q              I   2     q   +   1         q   +   1       ·       ∑     s   =   0     S            I   4   s     ·       ∑     n   =   1     N          (         g     2      pq0sn       ·     sin        (     n   ·   θ     )         +       h     2      pq0sn       ·     cos        (     n   ·   θ     )           )                           (   84   )                               
 
         [0237]    Integral Three (F 3 ):  
         F   3     =     ∫       ∑     p   =   0     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N            (         g     3      pqrsn       ·     sin        (     n   ·   θ     )         +       h     3      pqrsn       ·     cos        (     n   ·   θ     )           )               i   3                                                   
 
         [0238]    This is identically zero along all but the fourth DLS, where:  
         [0239]    i 4 =I 4  i i =I 1  i 2 =I 2  di 1 ,di 2 ,di 4 =C  
         [0240]    hence:  
                 F   3     =       ∫   0     I   3              ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R            ξ   r     ·       ∑     s   =   0     S            I   4   s     ·       ∑     n   =   1     N            (         g     3      pqsn       ·     sin        (     n   ·   θ     )         +       h     3      pqrsn       ·     cos        (     n   ·   θ     )           )             ξ                                  
          yielding   :                               F   3     =       ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R              I   3     r   +   1         r   +   1       ·       ∑     s   =   0     S            I   4   s     ·       ∑     n   =   1     N          (         g     3      pqrsn       ·     sin        (     n   ·   θ     )         +       h     3      pqrsn       ·     cos        (     n   ·   θ     )           )                               (   85   )                               
 
         [0241]    Integral Four (F 4 ):  
         F   4     =     ∫       ∑     p   =   0     P            i     1   p       ·       ∑     q   =   0     Q            i     2   q       ·       ∑     r   =   0     R            i     3   r       ·       ∑     s   =   0     S            i     4   s       ·       ∑     n   =   1     N            (         g     4      pqrsn       ·     sin        (     n   ·   θ     )         +       h     4      pqrsn       ·     cos        (     n   ·   θ     )           )               i   4                                                   
 
         [0242]    This is identically zero along all but the first DLS, where:  
         [0243]    i 1 ,i 2 ,i 3 ,di 1 ,di 2 ,di 3 =C  
                     F   4     =         ∫   0     I   f              ∑     s   =   0     S            ξ   s     ·         ∑   (       n   =   1     N            g     4000      sn       ·     sin        (     n   ·   θ     )                 +       h     4000      sn       ·     cos        (     n   ·   θ     )             )             ξ            
          yielding   :                               F   4     =       ∑     s   =   0     S              I   f     s   +   1         s   +   1       ·       ∑     n   =   1     N          (           g     4000      sn       ·   sin                     (     n   ·   θ     )       +       h     4000      sn       ·     cos        (     n   ·   θ     )           )                   (   86   )                               
 
         [0244]    Substituting Equations (83) to (86) into Equation (81) results in the expression:  
               ω   c     =         ∑     p   =   0     P              I   1     p   +   1         p   +   1       ·       ∑     s   =   0     S            I   4   s     ·       ∑     n   =   1     N            (         g     1      p00sn       ·     sin        (     n   ·   θ     )         +       h     1      p00sn       ·     cos        (     n   ·   θ     )           )                   …                          +       ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q              I   2     q   +   1         q   +   1       ·       ∑     s   =   0     S            I   4   s     ·       ∑     n   =   1     N            (         g     2      pq0sn       ·     sin        (     n   ·   θ     )         +       h     2      pq0sn       ·     cos        (     n   ·   θ     )           )                   …                   +       ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R              I   3     r   +   1         r   +   1       ·       ∑     s   =   0     S            I   4   s     ·       ∑     n   =   1     N            (         g     3      pqrsn       ·     sin        (     n   ·   θ     )         +       h     3      pqrsn       ·     cos        (     n   ·   θ     )           )                   …                       +       ∑     s   =   0     S              I   f     s   +   1         s   +   1       ·       ∑     n   =   1     N          (         g     4000      sn       ·     sin        (     n   ·   θ     )         +       h     4000      sn       ·     cos        (     n   ·   θ     )           )                     (   87   )                               
 
         [0245]    Recalling Equation (18) it is seen that, in the abc-FoR, torque is given by:  
             T   =         ∑     p   =   0     P              I   f     p   +   1         p   +   1       ·       ∑     s   =   0     S            I   4   s     ·       ∑     n   =   1     N            n   ·     (         g     1      p00sn       ·     cos        (     n   ·   θ     )         -       h     1      p00sn       ·     sin        (     n   ·   θ     )           )                     …               +       ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q              I   2     q   +   1         q   +   1       ·       ∑     s   =   0     S            I   4   s     ·       ∑     n   =   1     N            n   ·     (         g     2      pq0sn       ·     cos        (     n   ·   θ     )         -       h     2      pq0sn       ·     sin        (     n   ·   θ     )           )                     …                              +       ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R              I   3     r   +   1         r   +   1       ·       ∑     s   =   0     S            I   4   s     ·       ∑     n   =   1     N            n   ·     (         g     3      pqrsn       ·     cos        (     n   ·   θ     )         -       h     3      pqrsn       ·     sin        (     n   ·   θ     )           )                     …                                  +       ∑     s   =   0     S              I   f     s   +   1         s   +   1       ·       ∑     n   =   1     N          n   ·     (         g     4000      sn       ·     cos        (     n   ·   θ     )         -       h     4000      sn       ·     sin        (     n   ·   θ     )           )                       (   88   )                               
 
         [0246]    In the case of a switched reluctance motor:  
             T   =         ∑     p   =   0     P              I   1     p   +   1         p   +   1       ·       ∑     n   =   1     N            n   ·     (         g     1      p00n       ·     cos        (     n   ·   θ     )         -       h     1      p00n       ·     sin        (     n   ·   θ     )           )                     …           +       ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q              I   f     q   +   1         q   +   1       ·       ∑     n   =   1     N            n   ·     (         g     2      pq0n       ·     cos        (     n   ·   θ     )         -       h     2      pq0n       ·     sin        (     n   ·   θ     )           )                     …               +       ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R              I   3     r   +   1         r   +   1       ·       ∑     n   =   1     N          n   ·     (         g     3      pqrn       ·     cos        (     n   ·   θ     )         -       h     3      pqrn       ·     sin        (     n   ·   θ     )           )                               (   89   )                               
 
         [0247]    Data collection schemes suitable for parameter estimation were addressed above, including exemplary constant phase current and varying phase current schemes. The varying current scheme, which is typical of practical applications, is considered below. Recall Equation (78):  
               v   φ     =         i   φ     ·     R   φ       +       ∑     p   =   1     P          p   ·     i   1     p   -   1       ·     (                           t            i   1       )     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N            (         g     φ                 pqesn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                       +       ∑     p   =   1     P            i   1   p     ·       ∑     q   =   0     Q            qi   2     q   -   1       ·     (                           t            i   2       )     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                                  +       ∑     p   =   1     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R          r   ·     i   3     r   -   1       ·     (                           t            i   3       )     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                       +       ∑     p   =   1     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N          ω   ·   n   ·     (         g     φ                 pqrsn       ·     cos        (     n   ·   θ     )         -       h     φ                 pqrsn       ·     sin        (     n   ·   θ     )           )                                   (   78   )                               
 
         [0248]    Dividing by angular velocity:  
                 v   φ     ω     =           i   φ     ω     ·     R   φ       +       [       1   ω     ·     (                           t            i   1       )       ]     ·               ∑     p   =   1     P          p   ·     i   1     p   -   1       ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                       +       [       1   ω     ·     (                           t            i   2       )       ]     ·       ∑     p   =   1     P            i   1   p     ·       ∑     q   =   0     Q            qi   2     q   -   1       ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                         +       [       1   ω     ·     (                           t            i   3       )       ]     ·       ∑     p   =   1     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R          r   ·     i   3     r   -   1       ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N            (         g     φ                 pqrsn       ·     sin        (     n   ·   θ     )         +       h     φ                 pqrsn       ·     cos        (     n   ·   θ     )           )                   …                         +       ∑     p   =   1     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     s   =   0     S            i   4   s     ·       ∑     n   =   1     N          n   ·     (         g     φ                 pqrsn       ·     cos        (     n   ·   θ     )         -       h     φ                 pqrsn       ·     sin        (     n   ·   θ     )           )                                         (   90   )                               
 
         [0249]    The state variables assigned to the notional rotor phase are not observable via the motor terminals. Hence, the nominally constant rotor current must be lumped in with those model parameters that are observable, as disclosed above with respect to the model formulated for the αβ-FoR. The following identities are defined:  
                   ∑     s   =   0     S            I   4   s     ·     g     φ                 pqrsn           =       G     φ                 pqrn                     for                 all                 p       ,     q                 and                 r             (   91   )                     ∑     s   =   0     S            I   4   s     ·     h     φ                 pqrsn           =       H     φ                 pqrn                     for                 all                 p       ,     q                 and                 r             (   92   )                               
 
         [0250]    Using the identities provided by Equations (91) and (92), Equation (90) yields:  
                 v   φ     ω     =                    i   φ     ω     ·                   R   φ     +       [       1   ω     ·     (                           t            i   1       )       ]     ·                  ∑     p   =   1     P          p   ·             i   1     p   -   1       ·                  ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     n   =   1     N                           (         G     φ                 pqrn       ·                sin        (     n   ·   θ     )         +                 H     φ                 pqrn       ·           cos              (                n   ·   θ     )     )                     …     +       [       1   ω     ·     (                           t            i   1       )       ]     ·       ∑     p   =   1     P            i   1   p     ·       ∑     q   =   0     Q            qi   2     q   -   1       ·       ∑     r   =   0     R            i   3   r     ·       ∑     n   =   1     N            (         G     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       H     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   …                     +       [       1   ω     ·     (                           t            i   3       )       ]     ·       ∑     p   =   1     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R          r   ·     i   3     r   -   1       ·       ∑     n   =   1     N            (         G     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       H     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   …                     +       ∑     p   =   1     P            i   1   p     ·       ∑     q   =   0     Q            i   2   q     ·       ∑     r   =   0     R            i   3   r     ·       ∑     n   =   1     N          n   ·     (         G     φ                 pqrn       ·     cos        (     n   ·   θ     )         -       H     φ                 pqrn       ·     sin        (     n   ·   θ     )           )                                                                   (   93   )                               
 
         [0251]    Using the identities presented in Equations (91) and (92), Equation (89) is also re-written:  
             T   =         ∑     p   =   1     P              I   1     p   +   1         p   +   1       ·       ∑     n   =   1     N            n   ·     (         G     1      p00n       ·     cos        (     n   ·   θ     )         -       H     1      p00n       ·     sin        (     n   ·   θ     )           )                     …           +       ∑     p   =   1     P            I   1   p     ·       ∑     q   =   0     Q              I   2     q   +   1         q   +   1       ·       ∑     n   =   1     N            n   ·     (         G     2      pq0n       ·     cos        (     n   ·   θ     )         -       H     2      pq0n       ·     sin        (     n   ·   θ     )           )                     …               +       ∑     p   =   1     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R              I   3     r   +   1         r   +   1       ·       ∑     n   =   1     N            n   ·     (         G     3      pqrsn       ·     cos        (     n   ·   θ     )         -       H     3      pqrn       ·     sin        (     n   ·   θ     )           )                     …                   +       ∑     s   =   0     S              I   f     s   +   1         s   +   1       ·       ∑     n   =   1     N          n   ·     (         g     4000      sn       ·     cos        (     n   ·   θ     )         -       h     4000      sn       ·     sin        (     n   ·   θ     )           )                       (   94   )                               
 
         [0252]    and in the particular case of a switched reluctance machine:  
                         T   =         ∑     p   =   0     P              I   1     p   +   1         p   +   1       ·       ∑     n   =   1     N            n   ·     (         g     1      p00n       ·     cos        (     n   ·   θ     )         -       h     1      p00n       ·     sin        (     n   ·   θ     )           )                     …           +                     ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q                         I   2     q   +   1         q   +   1       ·       ∑     n   =   1     N            n   ·     (         g     2      pq0n       ·     cos        (     n   ·   θ     )         -       h     2      pq0n       ·     sin        (     n   ·   θ     )           )                     …               +                         ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R                         I   3     r   +   1         r   +   1       ·       ∑     n   =   1     N          n   ·     (         g     3      pqrsn       ·     cos        (     n   ·   θ     )         -       h     3      pqrn       ·     sin        (     n   ·   θ     )           )                                              (   95   )                               
 
         [0253]    Not all model parameters from the voltage fit are present in the final expressions for torque as a result of the path selected in evaluating the integral.  
         [0254]    The approach implemented by the solver  34  to calculate the required currents to achieve desired motor behavior, such as smooth torque with angle sensitivity minimized, is similar in the abc-FoR as that disclosed above with regard to the αβ-FoR The main difference is that the Jacobian is a three by three matrix with the third row elements being given by some constriction upon the values which the abc-FoR currents may take. For the purposes of the current disclosure, it will be assumed that any solution chosen will in some way minimize the sum of squares of the individual phase currents.  
         [0255]    Suppose torque is calculated via coenergy using the torque model with abc-FoR set out in Equation (88):  
                               T   =         ∑     p   =   0     P              I   1     p   +   1         p   +   1       ·       ∑     n   =   1     N            n   ·     (         G     1      p00n       ·     cos        (     n   ·   θ     )         -       H     1      p00n       ·     sin        (     n   ·   θ     )           )                     …           +                     ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q                         I   2     q   +   1         q   +   1       ·       ∑     n   =   1     N            n   ·     (         G     2      pq0n       ·     cos        (     n   ·   θ     )         -       H     2      pq0n       ·     sin        (     n   ·   θ     )           )                     …               +                           ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R                         I   3     r   +   1         r   +   1       ·       ∑     n   =   1     N            n   ·     (         G     3      pqrsn       ·     cos        (     n   ·   θ     )         -       H     3      pqrn       ·     sin        (     n   ·   θ     )           )                     …                   +                                    ∑     s   =   0     S                         I   f     s   +   1         s   +   1       ·       ∑     n   =   1     N          n   ·     (         g     4000      sn       ·     cos        (     n   ·   θ     )         -         h     4000      sn       ·   sin          (     n   ·   θ     )         )                         (   88   )                               
 
         [0256]    The necessary partial derivatives or entries to the Jacobian, with respect to i 1 ,i 2  and i 3 , can now be derived.  
                               ∂               ∂     i   1            T     =         ∑     p   =   0     P            I   1   p     ·       ∑     n   =   1     N                       n   ·     (         G     1      p00n       ·     cos        (     n   ·   θ     )         -       H     1      p00n       ·     sin        (     n   ·   θ     )           )                     …           +                     ∑     p   =   0     P          p   ·     I   1     p   -   1       ·       ∑     q   =   0     Q                         I   2     q   +   1         q   +   1       ·       ∑     n   =   1     N            n   ·     (         G     2      pq0n       ·     cos        (     n   ·   θ     )         -       H     2      pq0n       ·     sin        (     n   ·   θ     )           )                     …               +                       ∑     p   =   0     P          p   ·     I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R                         I   3     r   +   1         r   +   1       ·       ∑     n   =   1     N          n   ·     (         G     3      pqrsn       ·     cos        (     n   ·   θ     )         -         H     3      pqrn       ·   sin          (     n   ·   θ     )         )                                 (   96   )                           ∂               ∂     i   2            T     =         ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     n   =   1     N                       n   ·     (         G     2      pq0n       ·     cos        (     n   ·   θ     )         -       H     2      pq0n       ·     sin        (     n   ·   θ     )           )                     …               +                   ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q          q   ·     I   2     q   -   1       ·       ∑     r   =   0     R                         I   3     r   +   1         r   +   1       ·       ∑     n   =   1     N          n   ·     (         G     3      pqrsn       ·     cos        (     n   ·   θ     )         -         H     3      pqrn       ·   sin          (     n   ·   θ     )         )                                 (   97   )                       ∂               ∂     i   3            T     =       ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R                       I   3   r     ·       ∑     n   =   1     N          n   ·     (         G     3      pqrsn       ·     cos        (     n   ·   θ     )         -         H     3      pqrn       ·   sin          (     n   ·   θ     )         )                                          (   98   )                                              Hence   :                              J   11     =         ∑     p   =   0     P            I   1   p     ·       ∑     n   =   1     N            n   ·     (         G     1      p00n       ·     cos        (     n   ·   θ     )         -       H     1      p00n       ·     sin        (     n   ·   θ     )           )                     …           +                           ∑     p   =   1     P          p   ·     I   1     p   -   1       ·       ∑     q   =   0     Q              I   2     q   +   1         q   +   1       ·       ∑     n   =   1     N            n   ·     (         G     2      pq0n       ·     cos        (     n   ·   θ     )         -       H     2      pq0n       ·     sin        (     n   ·   θ     )           )                     …               +                         ∑     p   =   1     P          p   ·     I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R              I   3     r   +   1         r   +   1       ·       ∑     n   =   1     N          n   ·     (         G     3      pqrsn       ·     cos        (     n   ·   θ     )         -         H     3      pqrn       ·   sin          (     n   ·   θ     )         )                                              (   99   )                       J   12     =         ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     n   =   1     N            n   ·     (         G     2      pq0n       ·     cos        (     n   ·   θ     )         -       H     2      pq0n       ·     sin        (     n   ·   θ     )           )                     …               +                   ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q          q   ·     I   2     q   -   1       ·       ∑     r   =   0     R              I   3     r   +   1         r   +   1       ·       ∑     n   =   1     N          n   ·     (         G     3      pqrsn       ·     cos        (     n   ·   θ     )         -         H     3      pqrn       ·   sin          (     n   ·   θ     )         )                                 (   100   )                   J   13     =       ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R                       I   3   r     ·       ∑     n   =   1     N          n   ·     (         G     3      pqrsn       ·     cos        (     n   ·   θ     )         -         H     3      pqrn       ·   sin          (     n   ·   θ     )         )                                          (   101   )                               
 
         [0257]    As stated previously in Equation (56), sensitivity with respect to angle is given by:  
                 ∂               ∂   θ          T           (   56   )                               
 
         [0258]    From Equation (88):  
                   ∂               ∂   θ          T     =         ∑     p   =   0     P              I   1     p   +   1         p   +   1       ·       ∑     n   =   1     N              n   2     ·     (         -     G     1      p00n         ·     sin        (     n   ·   θ     )         -       H     1      p00n       ·     cos        (     n   ·   θ     )           )                     …           +                                 ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q                         I   2     q   +   1         q   +   1       ·       ∑     n   =   1     N              n   2     ·     (         -     G     2      pq0n         ·     sin        (     n   ·   θ     )         -       H     2      pq0n       ·     cos        (     n   ·   θ     )           )                     …               +                               ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R                         I   3     r   +   1         r   +   1       ·       ∑     n   =   1     N              n   2     ·     (         -     G     3      pqrsn         ·     sin        (     n   ·   θ     )         -       H     3      pqrn       ·     cos        (     n   ·   θ     )           )                     …                   +                             ∑     s   =   0     S                         I   f     s   +   1         s   +   1       ·       ∑     n   =   1     N          n   ·     (         g     4000      sn       ·     sin        (     n   ·   θ     )         -       h     4000      sn       ·     cos        (     n   ·   θ     )           )                     (   102   )                                            
 
         [0259]    Hence, the elements of the second row of the Jacobian are given by the following expressions:  
               J   21     =         ∂               ∂     i   1                ∂               ∂   θ          T             (   103   )                 J   22     =         ∂               ∂     i   2                ∂               ∂   θ          T             (   104   )                 J   23     =         ∂               ∂     i   3                ∂               ∂   θ          T             (   105   )                               
 
         [0260]    By changing the order of the partial derivatives in Equations (103)-(105):  
               J   21     =         ∂               ∂   θ            J   11               (   106   )                 J   22     =         ∂               ∂   θ            J   12               (   107   )                 J   23     =         ∂               ∂   θ            J   13               (   108   )                                 Explicitly   :                 J   21     =         ∑     p   =   0     P            I   1   p     ·       ∑     n   =   1     N              n   2     ·     (         -     G     1      p00n         ·     sin        (     n   ·   θ     )         -       H     1      p00n       ·     cos        (     n   ·   θ     )           )                     …           +                           ∑     p   =   0     P          p   ·     I   1     p   -   1       ·       ∑     q   =   0     Q                         I   2     q   +   1         q   +   1       ·       ∑     n   =   1     N              n   2     ·     (         -     G     2      pq0n         ·     sin        (     n   ·   θ     )         -       H     2      pq0n       ·     cos        (     n   ·   θ     )           )                     …               +                       ∑     p   =   0     P          p   ·     I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R                         I   3     r   +   1         r   +   1       ·       ∑     n   =   1     N            n   2     ·     (         -     G     3      pqrsn         ·     sin        (     n   ·   θ     )         -       H     3      pqrn       ·     cos        (     n   ·   θ     )           )                                 (   109   )                       J   22     =         ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     n   =   1     N              n   2     ·     (         -     G     2      pq0n         ·     sin        (     n   ·   θ     )         -       H     2      pq0n       ·     cos        (     n   ·   θ     )           )                     …               +                   ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q          q   ·     I   2     q   -   1       ·       ∑     r   =   0     R                         I   3     r   +   1         r   +   1       ·       ∑     n   =   1     N            n   2     ·     (         -     G     3      pqrsn         ·     sin        (     n   ·   θ     )         -       H     3      pqrn       ·     cos        (     n   ·   θ     )           )                                 (   110   )                 J   23     =       ∑     p   =   0     P            I   1   p     ·       ∑     q   =   0     Q            I   2   q     ·       ∑     r   =   0     R            I   3   r     ·       ∑     n   =   1     N            n   2     ·     (         -     G     3      pqrsn         ·     sin        (     n   ·   θ     )         -       H     3      pqrn       ·     cos        (     n   ·   θ     )           )                             (   111   )                               
 
         [0261]    The criterion used in selecting current can be to either balance the feed or minimize the sum of squares. In the case of the least squares sum, the following is minimized:  
               I   ss     =       ∑     k   =   1     3          i   k   2               (   112   )                               
 
         [0262]    A minimum is achieved when:  
                   ∂               ∂     i   k              I   ss       =       2   ·     i   k       =   c             (   113   )                               
 
         [0263]    The third row of the Jacobian is then given by expressions of the form:  
               J     3      k       =             ∂   2                    ∂     i   k   2              I   ss       =   2             (   114   )                               
 
         [0264]    Cogging can be included into the solver  34  in the same way as described above in conjunction with the αβ-FoR smooth torque solver.  
         [0265]    Moreover, in a manner similar to that disclosed with the αβ-FoR smooth torque solver, the solution may be calculated across the angle intervals in a given interval simultaneously, rather than in a point by point manner. For a particular torque and sensitivity demand, the solution is to be calculated at various angles: 
         θ( k ) for all  k =1 , . . . ,N   
         [0266]    The current column vector is given by: 
           I =( i   a (θ(1)) . . .  i   a (θ( N )) i   b (θ(1)) . . .  i   b (θ( N )) i   c (θ(1)) . . .  i   c (θ( N ))) T   (115) 
         [0267]    If the new 
           I ( n +1)= I ( n )+Δ( n )  (116) 
         [0268]    The k&#39;th torque vector is a row vector defined by: 
         φ Tk =(0 . . . 0  T (θ( k ), i   a ( k ), i   b ( k ), i   c ( k ))0 . . . 0) 
         [0269]    Similiarly the kth sensitivity vector is defined by: 
         φ Sk =(0 . . . 0  S (θ( k ), i   a ( k ), i   b ( k ), i   c ( k ))0 . . . 0) 
         [0270]    Finally, the minimum sum of squares current is given by: 
         φ Ik =( 0  . . .  0  I ss ( i   a ( k ), i   b ( k ), i   c ( k ))0 . . . 0) 
         [0271]    These vectors can be stacked to form diagonal matrices:  
       A   =         (           φ   T1             ⋯             φ   TN           )                   B     =         (           φ   S1             ⋯             φ   SN           )                   C     =     (           φ   I1             ⋯             φ   IN           )                               
 
         [0272]    Thus, appropriate partial derivatives with respect to the currents are taken and the resultant matrices aggregated to form a 3N by 3N matrix:  
             Φ   =     (               ∂               ∂     i   a            A               ∂               ∂     i   b            A               ∂               ∂     i   c            A                   ∂               ∂     i   a            A               ∂               ∂     i   b            B               ∂               ∂     i   c            C                   ∂               ∂     i   a            A               ∂               ∂     i   b            B               ∂               ∂     i   c            C           )             (   117   )                               
 
         [0273]    The desired torque, sensitivity and rate of change of the sum of squares at a particular angle θ(k) are given by:  
         [0274]    T(θ(k)) S(θ(k)) I(θ(k))  
         [0275]    The demand vector D of these values over the angle range is given by:  
             D   =     (             T   d          (     θ        (   1   )       )                   T   d          (     θ        (   2   )       )               ⋯               T   d          (     θ        (   N   )       )                   S   d          (     θ        (   1   )       )                   S   d          (     θ        (   2   )       )               ⋯               S   d          (     θ        (   N   )       )                 I        (     θ        (   1   )       )               ⋯             I        (     θ        (   N   )       )             )             (   118   )                               
 
         [0276]    and the actual values of torque and sensitivity resultant from any current combination (i a ,i b ,i c ) which constitute the iterated solution are given by the column vector:  
             A   =     (             T   d          (       θ        (   1   )       ,       i   a          (   1   )       ,       i   b          (   1   )       ,       i   c          (   1   )         )                 T        (       θ        (   2   )       ,       i   a          (   2   )       ,       i   b          (   2   )       ,       i   c          (   2   )         )               ⋯             T        (       θ        (   N   )       ,       i   a          (   N   )       ,       i   b          (   N   )       ,       i   c          (   N   )         )                 S        (       θ        (   1   )       ,       i   a          (   1   )       ,       i   b          (   1   )       ,       i   c          (   1   )         )               ⋯             S        (       θ        (   N   )       ,       i   a          (   N   )       ,       i   b          (   N   )       ,       i   c          (   N   )         )             )             (   119   )                               
 
         [0277]    Using this notation and from the development initially presented: 
         Δ( n )=Φ −1 ·( D−A )  (120) 
         [0278]    with: 
           I ( n +1)= I ( n )+Δ( n ) 
         [0279]    In one embodiment of the invention, a PM motor was used with a model fitted via the terminal variables as described herein. From this, smooth torque feeds were calculated for a variety of loads. FIG. 4 illustrates the calculated current profiles for various torques, showing three phase currents generated for a smooth torque solution. FIG. 5 shows a plot for a typical 12-10 PM motor, for which excluding noise and peaks (the plot illustrates raw data) ripple approaches 2% of the mean or 0.8% of the maximum rated torque for that motor (2.5 Nm).  
         [0280]    It has been assumed that the individual components of the electrical model and correspondingly the torque model comprise products of polynomials and trigonometric functions. In alternative embodiments, the polynomials are replaced with true orthogonal functions. These orthogonal functions are built up from polynomials in a recursive manner. In particular polynomials of the form:  
         [0281]    [0281] 1 ,x,x 2 ,x 3 ,x 4 ,x 5    
         [0282]    are replaced with expressions of the form:  
         1     2       ,         3   2       ·   x     ,         5   8       ·     (       3        x   2       -   1     )       ,         7   8       ·     (       5   ·     x   3       -     3   ·   x       )       ,       3     8   ·     2         ·     (       35   ·     x   4       +   3   -     30   ·     x   2         )       ,         43659   128       ·     (       x   5     -       70   63     ·     x   3       +       15   63     ·   x       )                             
 
         [0283]    There are a number of sound theoretical and practical reasons why models using true orthogonal functions are to be preferred. Typically, more accurate models that have fewer terms can be derived. Such a statement is true when the order of the current terms grows beyond 2. The theoretical reason for this is well understood by those with an understanding of such mathematical structures. Succinctly, model components that are orthogonal to one another do not interact in a detrimental manner. Unnecessary model complexity is avoided and the result is that the torque estimate, achieved via the previously described transforms, are improved.  
         [0284]    The process necessary to derive the mathematical expressions necessary is essentially the same as those described previously. For the purposes of brevity, the critical mathematical expressions and notation are presented without unnecessary repetition of the associated derivations for the balanced feed case.  
         [0285]    Let the r&#39;th order orthogonal function of variable x be:  
         [0286]    g r (x)  
         [0287]    The expression for flux is then:  
           λ   φ          (       i   α     ,     i   β     ,   θ     )       =       ∑     p   =   0     P                         g   p          (     i   α     )       ·       ∑     q   =   0     Q                         g   q          (     i   β     )       ·       ∑     r   =   0     R                         g   r          (     i   f     )       ·       ∑     n   =   0     N                     (         a     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       b     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                                         
 
         [0288]    The derivative of flux is given by:  
                                     t            λ   φ       =         ∑     p   =   0     P                         f   p          (     i   α     )       ·     (                           t            i   α       )     ·       ∑     q   =   0     Q                         g   q          (     i   β     )              ∑     r   =   0     R                         g   r          (     i   f     )       ·       ∑     n   =   0     N                       (         a     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       b     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   …                   +                                 ∑     p   =   0     P                         g   p          (     i   α     )       ·       ∑     q   =   0     Q                         f   q          (     i   β     )       ·     (                           t            i   β       )     ·       ∑     r   =   0     R                         g   p          (     i   f     )       ·       ∑     n   =   0     N                       (         a     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       b     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   …                   +                               ∑     p   =   0     P                         g   p          (     i   α     )       ·       ∑     q   =   0     Q                         g   q          (     i   β     )       ·       ∑     r   =   0     R                         f   r          (     i   β     )       ·     (                           t            i   f       )     ·       ∑     n   =   0     N                       (         a     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       b     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   …                   +                               ∑     p   =   0     P                         g   p          (     i   α     )       ·       ∑     q   =   0     Q                         g   q          (     i   β     )       ·       ∑     r   =   0     R                         g   r          (     i   f     )       ·       ∑     n   =   1     N          n   ·   ω   ·     (         a     φ                 pqrn       ·     cos        (     n   ·   θ     )         -       b     φ                 pqrn       ·     sin        (     n   ·   θ     )           )                                                          where   :                                      x              g   p          (   x   )           =       f   p          (   x   )                                               
 
         [0289]    Then, the electrical equation is written:  
                             v   φ     ω     =         R   φ     ω     +         i   α     ω     ·     R     φ                 α         +         i   β     ω     ·     R     φ                 β         +             i   α     ·     i   β       ω     ·     R       φ                 α                 β                                    …     +                     [       1   ω     ·     (                           t            i   α       )       ]     ·       ∑     p   =   0     P                         f   p          (     i   α     )       ·       ∑     q   =   0     Q                         g   q          (     i   β     )       ·       ∑     n   =   0     N                       (         A     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       B     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   …                 +                         [       1   ω     ·     (                           t            i   β       )       ]     ·       ∑     p   =   0     P                         g   p          (     i   α     )       ·       ∑     q   =   0     Q                         f   q          (     i   β     )       ·       ∑     n   =   0     N                       (         A     φ                 pqrn       ·     sin        (     n   ·   θ     )         +       B     φ                 pqrn       ·     cos        (     n   ·   θ     )           )                   …                 +                       ∑     p   =   0     P                         g   p          (     i   α     )       ·       ∑     q   =   0     Q                         g   q          (     i   β     )       ·       ∑     n   =   1     N          n   ·                (         A     φ                 pqrn       ·     cos        (     n   ·   θ     )         -       B     φ                 pqrn       ·     sin        (     n   ·   θ     )           )                                           
 
         [0290]    Coenergy is derived in a similar manner as previously resulting in:  
               ω   c     =         ∑     p   =   0     P                       (         h   p          (     I   α     )       -       h   p          (   0   )         )     ·       ∑     q   =   0     Q                         g   q          (     I   β     )       ·       ∑     n   =   0     N            [                 (       A     a                 pqrn       -       1   2     ·     A     b                 pqrn         -       1   2     ·     A     c                 pqrn           )     ·     sin        (     n   ·   θ     )                       …     +                   (       B     a                 pqrn       -       1   2     ·     B     b                 pqrn         -       1   2     ·     B     c                 pqrn           )     ·     cos        (     n   ·   θ     )                            ]                   …               +                     ∑     p   =   0     P              g   p          (   0   )       ·       ∑     q   =   0     Q                       (         h   q          (     I   β     )       -       h   q          (   0   )         )     ·       ∑     n   =   0     N          [                 (           -     3       2     ·     A     b                 pqrn         +         3     2     ·     A     c                 pqrn           )     ·     sin        (     n   ·   θ     )                       …     +                   (           -     3       2     ·     A     b                 pqrn         +         3     2     ·     A     c                 pqrn           )     ·     cos        (     n   ·   θ     )                            ]                                                      
 
         [0291]    where: 
           h   p ( x )=∫ f   p ( x ) dx   
         [0292]    Then, torque is given by:  
             T   =         ∑     p   =   0     P                       (         h   p          (     I   α     )       -       h   p          (   0   )         )     ·       ∑     q   =   0     Q                         g   q          (     I   β     )       ·       ∑     n   =   0     N            n   ·     [                 (       A     a                 pqrn       -       1   2     ·     A     b                 pqrn         -       1   2     ·     A     c                 pqrn           )     ·     cos        (     n   ·   θ     )                       …     +                   -     (       B     a                 pqrn       -       1   2     ·     B     b                 pqrn         -       1   2     ·     B     c                 pqrn           )       ·     sin        (     n   ·   θ     )                            ]                     …               +                     ∑     p   =   0     P              g   p          (   0   )       ·       ∑     q   =   0     Q                       (         h   q          (     I   β     )       -       h   q          (   0   )         )     ·       ∑     n   =   0     N          n   ·     [                 (           -     3       2     ·     A     b                 pqrn         +         3     2     ·     A     c                 pqrn           )     ·     cos        (     n   ·   θ     )                       …     +                   (           -     3       2     ·     A     b                 pqrn         +         3     2     ·     A     c                 pqrn           )     ·     sin        (     n   ·   θ     )                            ]                                                        
 
         [0293]    As previously, a solver can now be defined which will calculate the necessary current values to achieve the desired solution.  
         [0294]    One property and advantage associated with the use of model components which are truly orthonormal is that with just the most basic model present it is possible to calculate the parameters of other additional orthonormal model components in isolation from one another. That is, the model can be refined by the addition of a new orthonormal expression. The parameters for the model components estimated and the new model component can be either kept or discarded dependant upon the magnitude of the parameter associated with it.  
         [0295]    In this manner, many different model components can be sieved in a numerically efficient and elegant manner to determine whether they should be included in the model or not. More particularly, the model fitting process can be fully automated. Starting from a very basic model (the presence of resistance terms, non-angle varying inductance) it is possible to automate the selection of model components. Starting from a basic model as described above, the electrical model is extended by selecting one or more additional “candidate” basis functions. Refiting the model results in a new set of model parameters.  
         [0296]    Those parts of the model, or functions, with significant coefficients or parameters are kept while other parts are rejected. The test for significant a model component can be as simple as testing whether the absolute value of the coefficient is greater than some predefined percentage of the absolute value of the current biggest parameter. Such a sieving process allows for the automatic building up of a model. It is the use of orthonormal basis functions which allows for this activity, due to their minimal interaction. If the “standard” polynomials are used then the sieving process becomes confused.  
         [0297]    The adaptive control schemes disclosed herein have several applications. For example, in accordance with certain embodiments of the invention, the control scheme is embedded into a speed control loop for use in a speed servo application. The particular embodiments disclosed above are illustrative only, as the invention may be modified and practiced in different but equivalent manners apparent to those skilled in the art having the benefit of the teachings herein. For example, the electrical model which uses a product of polynomials and trigonometric functions can be written as a product of polynomials and complex exponentials:  
         λ   φ     =       ∑     p   =   0     P            i   α   p     ·       ∑     q   =   0     Q            i   β   q     ·       ∑     r   =   0     R            i   f   r     ·       ∑     n   =     -   N       N            e     φ                 pqrn       ·     exp        (        ·   n   ·   θ     )                                             
 
         [0298]    Furthermore, no limitations are intended to the details of construction or design herein shown, other than as described in the claims below. It is therefore evident that the particular embodiments disclosed above may be altered or modified and all such variations are considered within the scope and spirit of the invention. Accordingly, the protection sought herein is as set forth in the claims below.