Sliding mode control fundamentals
Sliding mode control (SMC) is a robust nonlinear control technique that forces a system's state onto a predefined surface in state space, then constrains it to slide along that surface toward equilibrium. Its value in robust control comes from a key property: once on the sliding surface, the system becomes insensitive to a whole class of uncertainties and disturbances (those satisfying the matching condition). This gives SMC a significant edge over classical linear methods for uncertain nonlinear plants.
Three core advantages distinguish SMC from classical approaches:
- Matched uncertainty rejection: Disturbances and model errors that enter through the same channel as the control input are completely rejected during sliding mode.
- Finite-time convergence: The system state reaches the sliding surface in finite time, rather than the asymptotic convergence typical of linear controllers.
- Order reduction: On the sliding surface, the system dynamics reduce to a lower-order system, which simplifies both analysis and design.
Definition of sliding mode control
SMC is a variable structure control strategy that uses a discontinuous control law to drive the system state toward a sliding surface. This surface is a hyperplane in state space defined by a chosen function of the system states. Once the state reaches this surface, the discontinuous control keeps it there, and the state then evolves along the surface toward the desired equilibrium.
The "variable structure" label comes from the fact that the control law switches between different structures depending on which side of the sliding surface the state currently occupies.
Advantages vs classical control methods
- Handles uncertainties and disturbances satisfying the matching condition, providing deterministic robustness guarantees rather than relying on gain/phase margins
- Finite-time convergence to the sliding surface, giving a hard bound on the time to reach nominal behavior
- Reduces the effective system order on the sliding surface, making the remaining dynamics easier to shape
- Applicable to a broad class of nonlinear systems, including those with non-differentiable or discontinuous dynamics where linearization-based methods fail
Sliding surface design
The sliding surface is the single most important design choice in SMC. It determines how the system behaves once sliding mode is established. A poorly chosen surface can yield stable but sluggish response, or even instability in the reduced-order dynamics. The surface is typically a function of the system states, and its coefficients are selected to place the reduced-order poles where you want them.
Selection of switching function
The switching function defines the sliding surface as the set . Three common forms are used:
- Linear sliding surface: , where is a constant row vector. The coefficients in determine the reduced-order dynamics. For a second-order system with states and , choosing yields first-order dynamics on the surface, so directly sets the convergence rate.
- Terminal sliding surface: , where and are positive odd integers with , and . This produces finite-time convergence to the origin along the surface, not just finite-time reaching of the surface.
- Integral sliding surface: , where . The integral term can eliminate the reaching phase entirely by designing the initial value of to be zero, so the system starts in sliding mode from .
Existence of sliding mode
For sliding mode to exist, the system state must actually reach the surface in finite time. This requires the reaching condition: the switching function must decrease in magnitude whenever the state is off the surface. The standard form is:
This condition says that and must have opposite signs. If , then (the state moves toward the surface from above), and vice versa. A stronger version, with , guarantees reaching in finite time bounded by .
Stability of sliding mode
Reaching the surface is not enough. The reduced-order dynamics on the surface must also be stable. Once is enforced, the system evolves according to lower-dimensional dynamics determined by the surface coefficients.
You verify stability of these reduced-order dynamics using Lyapunov theory. A common candidate is the quadratic Lyapunov function:
If you can show for all , the sliding mode is stable. For multi-input systems, you'd use and verify .
Reaching phase analysis
The reaching phase is the interval between the initial time and the moment the state first hits the sliding surface. During this phase, the system is not on the surface, so the robustness guarantees of sliding mode do not yet apply. This makes the reaching phase a vulnerability: the system is exposed to uncertainties and disturbances before it reaches the surface.
Minimizing the duration of the reaching phase is therefore a practical design priority.
Reaching condition for sliding mode
The reaching condition ensures the state moves toward the sliding surface during this phase. A commonly used strengthened form is:
where is the reaching rate. This guarantees that the distance to the surface decreases at a rate of at least , giving an upper bound on reaching time of .
Techniques for reducing reaching phase
- High-gain control: Increasing the discontinuous gain speeds up reaching but increases control effort and worsens chattering.
- Disturbance observers: Estimating and feedforward-compensating disturbances reduces the burden on the discontinuous term, allowing faster and smoother reaching.
- Reaching law approaches: These explicitly shape the trajectory during the reaching phase. Common reaching laws include:
- Constant rate: , which drives to zero at a constant rate
- Power rate: with , which accelerates convergence near the surface
- Exponential: , which combines constant-rate reaching far from the surface with exponential decay near it
- Integral sliding surfaces: As mentioned above, these can eliminate the reaching phase altogether by ensuring .
Equivalent control method
The equivalent control method provides a way to analyze what happens during sliding mode. The idea is to find the continuous control input that would be needed to keep the state exactly on the sliding surface. This "equivalent control" captures the average behavior of the actual discontinuous controller during sliding.
Derivation of equivalent control
For a system of the form:
with sliding surface , the sliding condition requires during sliding mode. Expanding using the chain rule:
Solving for gives the equivalent control:
This requires that , which is the condition that the control input actually influences the sliding variable (a controllability-like requirement for the surface).
Role in sliding mode control design
The equivalent control represents the average continuous effort needed to maintain sliding. Substituting back into the system equation gives the reduced-order dynamics on the surface, which you then analyze for stability.
The full SMC law is typically composed as:
where is chosen large enough to satisfy the reaching condition despite bounded uncertainties. The term handles the nominal dynamics, while the discontinuous term provides robustness.
Chattering phenomenon
Chattering is the most significant practical limitation of standard SMC. It manifests as high-frequency oscillation of the state around the sliding surface, caused by the discontinuous switching of the control law. In real systems, chattering leads to excessive actuator wear, high energy consumption, and excitation of unmodeled high-frequency dynamics (flexible modes, parasitic dynamics) that can destabilize the system.
Causes of chattering
Three main sources contribute to chattering:
- Discontinuous control law: The signum function switches instantaneously between and . In an ideal system with infinite switching frequency, this produces perfect sliding. In practice, finite switching rates cause oscillation.
- Unmodeled dynamics: Actuator delays, sensor lags, and neglected fast dynamics create a gap between the commanded and actual control, causing the state to overshoot the surface repeatedly.
- Digital implementation: Finite sampling rates and quantization in sensors and actuators prevent the controller from switching at the exact moment the state crosses the surface.
Techniques for chattering reduction
- Boundary layer approach: Replace the discontinuous control with a continuous approximation inside a thin layer around the surface (detailed in the next section).
- Higher-order sliding modes: Use higher derivatives of to produce a continuous control signal while still achieving finite-time convergence of and its derivatives to zero.
- Disturbance observers: Estimate and compensate for the disturbances that force the discontinuous gain to be large. A smaller required gain means less chattering.
- Adaptive gain tuning: Adjust online so it's only as large as needed to maintain the reaching condition, rather than using a fixed conservative upper bound.
Boundary layer approach
The boundary layer approach is the simplest and most widely used chattering mitigation technique. Instead of enforcing exactly (which requires discontinuous control), you accept for some small boundary layer thickness . Inside this layer, the control transitions smoothly rather than switching abruptly.
Continuous approximation of discontinuous control
The signum function is replaced with a continuous function inside the boundary layer. Two common choices:
- Saturation function:
- Hyperbolic tangent: , which provides a smooth transition everywhere
The modified control law becomes:
Outside the boundary layer (), the controller behaves identically to standard SMC. Inside, it acts as a high-gain linear controller.
Tradeoff between robustness and performance
This approach introduces a fundamental tradeoff:
- Larger : Less chattering, smoother control signals, but the state only converges to a neighborhood of the surface (steady-state error proportional to ). Robustness to matched disturbances is degraded.
- Smaller : Better tracking accuracy and robustness, but chattering returns as .
Adaptive boundary layer methods address this by adjusting online. For example, can be reduced when the state is near the surface and disturbances are small, and increased when chattering is detected.
Higher-order sliding modes
Higher-order sliding modes (HOSM) offer a more principled solution to chattering than the boundary layer approach. Instead of approximating the discontinuous control, HOSM pushes the discontinuity into higher derivatives of the control signal, producing a continuous (or even smooth) actual control input while still achieving finite-time exact convergence to .
The order of a sliding mode refers to the number of consecutive time derivatives of that are driven to zero. Standard SMC is first-order (only ). Second-order drives both and .
Second-order sliding mode control
Second-order sliding mode (SOSM) algorithms drive and to zero in finite time. The control input itself is continuous (the discontinuity appears in ), which directly addresses chattering. Three well-known SOSM algorithms:
- Twisting algorithm: Applies different control magnitudes depending on the signs of and . Converges in finite time but requires measurement of .
- Super-twisting algorithm: Only requires measurement of (not ), making it particularly practical. The control law has the form , . The integral term provides the continuous control component.
- Sub-optimal algorithm: Uses only the value of and its maximum, requiring minimal information about the system.
Arbitrary-order sliding mode control
Arbitrary-order sliding mode (AOSM) generalizes HOSM to drive all to zero in finite time, where is the chosen order. Higher orders produce smoother control signals, since the discontinuity is pushed into the -th derivative of .
The tradeoff is design complexity: AOSM controllers require knowledge of (or bounds on) higher-order derivatives of the sliding variable, and parameter tuning becomes more involved as the order increases. In practice, second-order methods (especially the super-twisting algorithm) cover most applications.
Sliding mode observers
Sliding mode observers (SMOs) apply SMC principles to state estimation rather than control. They use a discontinuous injection term to drive the output estimation error to zero in finite time, after which the observer "slides" and the remaining state estimates converge. The finite-time convergence and robustness to certain disturbances make SMOs attractive compared to standard Luenberger observers for uncertain systems.
Design of sliding mode observers
For a system:
where represents uncertainties, the SMO takes the form:
The design involves two gain matrices:
- (linear observer gain): Shapes the estimation error dynamics, analogous to a Luenberger observer gain
- (sliding mode gain): Provides robustness by injecting a discontinuous correction based on the output error
The sliding surface for the observer is . The gains and must be selected so that: (1) the reaching condition is satisfied for , and (2) the estimation error dynamics are stable once sliding occurs.
Applications in fault detection and estimation
SMOs are particularly useful for fault detection and isolation (FDI):
- During normal operation, the observer tracks the system output and the sliding variable remains near zero.
- When a fault occurs, it drives the output away from the observer's prediction, causing to deviate from zero. Monitoring provides a residual signal for fault detection.
- The equivalent output error injection term (the average value of the discontinuous injection during sliding) contains information about the fault magnitude, enabling fault estimation, not just detection.
For example, in a sensor fault scenario, the SMO estimates what the sensor output should be. A persistent discrepancy between the estimated and measured outputs indicates a sensor fault, and the equivalent injection term quantifies the fault magnitude.
Sliding mode control applications
SMC's robustness and ability to handle nonlinearities have led to widespread use across engineering domains. The following sections highlight three major application areas.
Robotic manipulators
Robot arms are a natural fit for SMC because they involve highly nonlinear dynamics (coupled inertias, Coriolis and centrifugal terms, gravity), and the model parameters change with payload and configuration. SMC can provide accurate trajectory tracking despite these uncertainties.
A typical design defines a sliding surface for each joint as , where is the tracking error for joint . The controller then drives each to zero, achieving exponential tracking error convergence with rate on the surface. Force control and impedance control variants also exist for tasks requiring contact with the environment.
Electric motors and power systems
SMC has been applied to DC motors, induction motors, and permanent magnet synchronous motors (PMSMs) for speed, torque, and position control. The robustness to parameter variations (resistance changes with temperature, inductance varies with saturation) is particularly valuable here.
In power systems, SMC-based controllers have been used for voltage regulation in power converters, frequency control in microgrids, and power flow management. The fast finite-time response helps maintain grid stability during transient events.
Automotive and aerospace systems
Automotive applications include:
- Anti-lock braking systems (ABS): SMC regulates wheel slip ratio despite varying road surface conditions
- Traction control and electronic stability control (ESC): SMC handles the nonlinear tire-road friction characteristics
- Engine and transmission control: Robust to manufacturing tolerances and aging effects
Aerospace applications include attitude control of satellites and aircraft, where SMC rejects external disturbances (aerodynamic forces, gravity gradient torques) and compensates for actuator faults. Fault-tolerant control is a particularly active area: an SMC-based attitude controller can maintain desired orientation even with partial actuator failures, provided sufficient control authority remains.
Adaptive sliding mode control
Adaptive sliding mode control (ASMC) addresses a limitation of standard SMC: the discontinuous gain must be chosen based on known bounds of the uncertainties. If these bounds are conservative, the gain is unnecessarily large, worsening chattering. If the bounds are wrong, robustness is lost. ASMC removes this requirement by estimating uncertain parameters online.
Combining sliding mode with adaptive control
In ASMC, the control law is augmented with adaptive terms that estimate unknown parameters. For a system:
where and are unknown, the ASMC law takes the form:
The estimates and are updated by adaptation laws derived from Lyapunov stability analysis. As the estimates improve, the discontinuous gain can be reduced, directly decreasing chattering.
Handling parametric uncertainties
ASMC can handle parametric uncertainties satisfying the matching condition (uncertainties entering through the same channel as the control input) or, in some formulations, the extended matching condition.
The adaptation laws are typically derived by choosing a composite Lyapunov function that includes both the sliding variable and the parameter estimation errors. For example:
where and are positive definite gain matrices that set the adaptation speed. Larger gains give faster adaptation but can introduce oscillations in the estimates. The Lyapunov analysis guarantees that the parameter errors remain bounded and that the sliding variable converges to zero.
Discrete-time sliding mode control
Discrete-time sliding mode control (DSMC) adapts SMC for digital implementation, where control inputs are updated only at sampling instants. This is the form that actually runs on microcontrollers and DSPs, so understanding the differences from continuous-time SMC is essential for practical implementation.
Sliding mode control for sampled-data systems
In DSMC, the sliding surface is defined at discrete time steps:
The key difference from continuous SMC is that you cannot achieve true sliding mode in discrete time. Instead, the state reaches a quasi-sliding mode band around the surface, with width proportional to the sampling period .
A common discrete reaching law is:
where and . The first term provides constant-rate reaching, and the second term adds exponential decay. The system reaches the quasi-sliding mode band in a finite number of steps.
Digital implementation considerations
Several practical factors affect DSMC performance:
- Sampling period: Must be small enough that the quasi-sliding mode band is acceptably narrow (band width scales with ). Too small a wastes computational resources; too large degrades performance and can cause instability.
- Quantization: Finite sensor and actuator resolution introduces additional error. If the quantization level is comparable to the quasi-sliding mode band width, it becomes the dominant source of steady-state error.
- Computation delay: The time needed to compute means the control is actually applied slightly late. For fast systems, this delay can be significant and may require predictive compensation (computing based on a one-step-ahead prediction of ).
- Multirate schemes: Using different sampling rates for the sliding variable computation and the control update can improve performance in systems where sensor and actuator bandwidths differ.