This invention provides a method and
system for controlling the speed of a
permanent magnet synchronous motor, belonging to the field of
motor control technology. The method first constructs a discrete-time
mathematical model of the motor and an external
system including lumped reference signals and lumped disturbances, and establishes a composite
system model accordingly. Then, a dimension-reduced observer is constructed to estimate the external signals, and state and input transformations are performed in conjunction with
regulator equations. Next, a constraint set for the transformed system is constructed, and the state variables are decomposed into nominal components, deterministic error components, and uncertain error components. Furthermore, a time-varying constraint
compression set is dynamically constructed based on the errors, and an
online model predictive control
optimization problem with dynamically tightened constraints is solved to obtain the nominal control quantity. Finally, the nominal control quantity and the estimated external signals are combined to synthesize the actual control
voltage. This invention effectively suppresses disturbances, strictly ensures
system safety constraints, guarantees the recursive feasibility and closed-
loop stability of the control, and improves the dynamic response speed.