Variable-structure control systems change their structure depending on the current system state. Sliding Mode Control (SMC) is the most widely used instantiation: the controller switches between two or more structures to drive the state onto a designer-specified manifold — the sliding surface — and keep it there. Once constrained to the surface, the closed-loop dynamics are governed entirely by the surface geometry, independent of the plant model or matched disturbances. This structural robustness makes SMC a preferred choice for motor drives, DC-DC power converters, and any embedded plant whose parameters drift or are poorly known.
The controller operates on a discrete-time linear plant
where
A linear sliding surface is defined by
The sliding manifold
The equivalent control
This exists if and only if
The switching term adds a robust push toward the surface:
where
replaces the discontinuous
The Lyapunov function
On the surface
| Operation | Time | Space | Notes |
|---|---|---|---|
| Construction |
|
||
| ComputeControl |
|
|
|
| Surface |
|
monitoring only |
All data is stored in fixed-size arrays; no heap allocation at any point.
Consider a double-integrator plant (
with surface
-
Precompute
$SB = 1$ , so$(SB)^{-1} = 1$ . -
At state
$x = [1, 0]^\top$ :$s = 1 > \phi$ ,$\mathrm{sat}(s/\phi) = 1$ . -
Equivalent control:
$u_{eq} = -(SA)x = -[0;1][1;0]^\top = 0$ . -
Switching term:
$u_{sw} = 1 \cdot 2 \cdot 1 = 2$ . -
Total:
$u = 0 - 2 = -2$ . The large negative input decelerates the state toward the surface. - Once
$|s| \le 0.05$ , the saturation ramps linearly and the control becomes smooth.
-
Singular
$SB$ : the equivalent control is undefined. This occurs when the surface does not satisfy the relative-degree-one condition. Assert non-singularity at construction. -
Chattering: ideal SMC (
$\phi \to 0$ ) switches at infinite frequency, exciting unmodeled dynamics and wearing actuators. The boundary layer is not optional for real hardware. -
Gain too small: if
$K_i \le |d_i|$ , the switching term cannot overcome the disturbance and the surface is never reached. The state remains bounded but does not converge. -
Boundary-layer error: the steady-state tracking error is
$O(\phi)$ . Reducing$\phi$ improves accuracy at the cost of higher-frequency control activity. -
Discrete-time reaching: the Zeno-like finite-time result holds in continuous time; in discrete time the state enters an
$O(\phi + \Delta t)$ neighborhood of the surface.
-
Higher-order SMC (super-twisting): drives both
$s$ and$\dot{s}$ to zero simultaneously, eliminating chattering without a boundary layer at the cost of requiring$\dot{s}$ estimates. -
Terminal SMC: uses a nonlinear surface
$s = \dot{e} + \beta e^{p/q}$ to achieve finite-time convergence to the origin (not just to the surface). - Integral SMC: augments the surface with an integral of the state to achieve zero steady-state error in the presence of constant disturbances.
-
Adaptive switching gain: adjusts
$K$ online to match the unknown disturbance bound, avoiding over-gain chattering.
- Brushless motor current and speed control: fast switching, large disturbance rejection.
- DC-DC converters: inherent switching structure matches SMC's variable-structure nature.
- Pneumatic and hydraulic actuators: strong friction/backlash rejection via matched-disturbance cancellation.
- Satellite attitude control: robustness to inertia uncertainty and external torques.
- LQR: smooth optimal alternative; minimises quadratic cost but has no guaranteed robustness to matched disturbances.
- Disturbance Observer (DOB): estimates and cancels the disturbance algebraically; complementary to SMC for unmatched disturbances.
- SaturationRateLimiter: the boundary-layer
satfunction is semantically identical to the saturation block already in the library. - LuenbergerObserver: may be combined with SMC when the full state is not measured (output feedback SMC).
- V. Utkin, "Variable Structure Systems with Sliding Modes," IEEE Transactions on Automatic Control, 22(2), pp. 212–222, 1977.
- J.-J. Slotine, W. Li, Applied Nonlinear Control, Prentice-Hall, 1991, Chapter 7.
- H. K. Khalil, Nonlinear Systems, 3rd ed., Prentice-Hall, 2002, Chapter 14.