A method of regulating a rotating electrical machine, receiving as input a discrete control voltage determined to control the electromagnetic torque delivered by said machine to a set point torque, by determining at each sampling time said discrete control voltage to be applied to said machine as a function of at least one sampled signal representing the electromagnetic torque of said machine, so that the set point torque is reached at the next sampling time, said method comprising:
- determining a discrete voltage control law of said machine in which said discrete control voltage to be applied at each sampling time is determined in the form of a first term corresponding to free evolution of the state of said machine in the absence of control, between the preceding sampling time and the current sampling time, and a second term dependent on said set point torque and a set point for the magnetic energy consumed by said machine, and
- determining, at each sampling time based on said discrete control law, the control voltage to be applied to said machine for the torque of said machine to reach said set point torque and the magnetic energy consumed by said machine to correspond to said set point magnetic energy,
- wherein said discrete control law is {right arrow over (V)}s,k−1={right arrow over (f)}(ΔΓk,ΔWk) where f is a function providing said control voltage to be applied at sampling time k−1 to reach said set point torque and energy as a function of variables ΔΓk and ΔWk respectively representing the difference between said electromagnetic torque of said machine to be reached at said next sampling time and said free evolution component of said torque at said time and the difference between the magnetic energy consumed by said machine at time k and said free evolution component of said energy at said time.