Algorithmcore
Sliding mode control
Also called variable structure control.
Drives the state to a surface on which the dynamics are as wanted, with a switching control that dominates matched uncertainty.
- Time
- O(n + q) worst
- Space
- O(1) extra
- Where
- n = the order of the system; q = the number of arithmetic operations to evaluate the nominal drift and the input gain once
- Model
- Real RAM
- Properties
- deterministicexactonlineiterative
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Vadim I. Utkin, Stanislav V. Emelyanov, Aleksei F. Filippov, 1977
Sliding mode control is a feedback design for systems with uncertain models. It picks a surface in the state space on which the motion is the one you want, and a switching control that pushes the state onto the surface from both sides and then holds it there. The switching gain is chosen larger than a bound on the uncertainty, so any uncertainty that enters through the same channel as the input (matched uncertainty) has no effect on the motion along the surface. The price is a discontinuous control, which in a real loop causes chattering.
In plain words
Think of a car that you want to keep on the center line of a road with gusty side wind. You do not try to model the wind. You only decide which side of the line you are on, and steer hard back toward it. If your steering is stronger than the strongest gust, you reach the line in a known time and then stay on it, with the steering flipping left and right very fast. While you ride the line, the car behaves the way the line was designed to make it behave, and the wind does not matter. The design has two parts: choose a good line, and make the push toward it strong enough. The fast flipping is the weak point, because a real steering system cannot switch infinitely fast.
The problem
Input. A system of order in controllable canonical form,
with a scalar input , a known nominal model of , a known input gain , and an unknown term with a known bound . This is a control-affine system in which the uncertainty enters through the input column (matched uncertainty). Also coefficients such that the polynomial is Hurwitz, a gain margin and a switching gain .
Output. A feedback such that every solution reaches the sliding surface
within time , stays on it afterwards, and then goes to exponentially, for every that satisfies the bound.
The algorithm
SLIDING-MODE-CONTROL(x, c, f̂, b, k, φ)- 1
s ← c_1 x_1 + ... + c_{n-1} x_{n-1} + x_n - 2
v ← -f̂(x) - (c_1 x_2 + ... + c_{n-1} x_n) - 3
if φ > 0 then σ ← sat(s / φ) - 4
else σ ← sgn(s) - 5
u ← (v - k σ) / b(x) - 6
return u, s
Line L1 computes the sliding variable. Line L2 is the nominal equivalent control: with and , the derivative would be exactly . Lines L3 and L4 choose the switching function: gives the ideal sliding mode, and with a layer width gives the boundary layer version. Line L5 adds the switching term and divides by the input gain. Along the system,
A computer runs the algorithm at sampling instants and holds between them. The theory assumes that it runs continuously.
Example
Take the double integrator with a sine disturbance, , , so , and . Choose (), and . The algorithm gives
From , , so the reaching time is at most . On the surface , so and decays like , whatever the disturbance does. A 4th order Runge-Kutta simulation with step , with computed at the start of each step and held over the step, gives:
| 0 | 1 | 0 | 1 |
| 0.5 | 0.85762 | -0.49318 | 0.364431 |
| 1 | 0.56424 | -0.56077 | 0.003476 |
| 1.5 | 0.34247 | -0.34532 | -0.002847 |
| 2 | 0.20759 | -0.21039 | -0.002799 |
| 3 | 0.07594 | -0.07406 | 0.001883 |
| 4 | 0.02827 | -0.02593 | 0.002349 |
| 6 | 0.00336 | -0.00233 | 0.001034 |
The sliding variable first reaches at , before the bound . After that, , and the switching term changes sign 365 times in the 500 steps between and . With the band is . The simulation shows chattering of the size of the step: the band is up to a term of order , and it is an effect of the sampling, not of the ideal law. With the boundary layer the control has no jumps, and stays below (the measured maximum after is ).
Correctness
The full proof is in proofs/correctness.md. Its main steps:
- The sliding variable obeys . This is algebra: line L2 cancels the known part of and line L5 divides out .
- Theorem (reaching). With and , wherever (the reaching condition). So decreases at rate at least and reaches before .
- Theorem (invariance). Solutions are understood in the sense of Filippov. After reaches it cannot leave, because on any interval where the function decreases.
- Theorem (sliding motion). On , , so obeys a linear system in companion form with characteristic polynomial . That polynomial is Hurwitz, so the reduced state goes to exponentially, and does not appear in the reduced system.
- Theorem (boundary layer). With , the state enters the layer in finite time, and then goes exponentially to the band . The state is then ultimately bounded, not convergent.
- Theorem (sampling). If the switching term is held over steps of length , the band is reached in finite time and is never left.
The tests check the identity and the reaching condition exactly in Fraction for 200 random systems with to , the table above, the reaching time, the band for and , the boundary layer bound, and a third order system with and .
Proof: Sliding mode control reaches the surface s = 0 within |s(0)| / eta, stays on it, and the reduced motion is exponentially stable for every matched uncertainty within the boundfull
The system is
where and are known and continuous, , and the unknown term is measurable in , continuous in , and satisfies for all and . The coefficients make Hurwitz, and with . For there are no coefficients and .
Lines L1 to L5 give
with (line L4) or for (line L3). Here is the absolute value of a real number, and is the Euclidean norm of a vector.
Lemma 1: the sliding variable obeys s' = delta - k sigma(s)
Along a solution, wherever the derivative exists,
By line L5, . Substitution gives .
The identity is algebraic, so it holds exactly for exact data. The tests check it in Fraction.
Solutions
With the right side is discontinuous on , so solutions are taken in the sense of Filippov (Filippov 1988): an absolutely continuous whose derivative lies, for almost every , in the closed convex hull of the limits of the right side at nearby points. Off the surface this is the ordinary equation. On the surface, is replaced by any value in . In both cases Lemma 1 holds in the form with when and when , for almost every . The function is absolutely continuous, because is.
Theorem 1: reaching in finite time
Let . On every interval where ,
for almost every . Equivalently, (the reaching condition). Integrating, for as long as has not reached . Since , reaches at some time .
Theorem 2: the surface is invariant
Let be a time with , and suppose for some . Let . By continuity, and on . By Theorem 1, is non-increasing on , and by absolute continuity . This is impossible. So for all .
Theorem 3: the motion on the surface
For , . Let . Then for , and . So , where is the companion matrix of . Its eigenvalues are the roots of , which have negative real parts. So there are constants and with , and decays at the same rate. The term does not appear in this equation. For , already.
Together, Theorems 1 to 3 show that every solution reaches the surface within , stays on it, and then converges to exponentially, for every with . In the reduced coordinates the origin is globally asymptotically stable.
Theorem 4: the boundary layer
Let with . Now the closed loop has a continuous right side. Where , and Theorem 1 applies, so enters the layer within time ; by the argument of Theorem 2 it does not leave it. Inside the layer, , so where ,
By the comparison lemma (Khalil 2002, Section 3.4), after the entry time . So . Since , this band lies in the layer. With from some time on, the state obeys , with the last unit vector, and the variation of constants formula gives . So is ultimately bounded by any number larger than .
The boundary layer gives up exact sliding and exact rejection of ; it keeps a bound that is proportional to .
Theorem 5: sampled switching
Suppose the switching term is computed at the instants and held, so that on , while the rest of the control acts continuously. Let .
If , then on the step , so decreases, and on the step. If , every value on the step lies in . The case is symmetric, and if , then and on the step. So once at a sample, for all later . If , then decreases by at least over the step, so the band is reached after at most steps.
In an implementation where the whole control, including , is held, has the extra term , which is of order on a bounded set. It adds a term of order to the band. The tests measure for and for in the page example, where .
Complexity
Count real operations at unit cost, as in the real RAM. Let be the cost to evaluate and once. Lines L1 and L2 take operations each, and the rest is , so one evaluation costs time and extra space. A simulation with steps and a held control evaluates the algorithm times; a simulation that evaluates it inside the right side evaluates it times with RK4.
Properties
- Robust to matched uncertainty. Any with is rejected on the surface, without a model of . This is an invariance property, not only robustness.
- Not robust to unmatched uncertainty. A term that enters for is not in the input channel, and the switching cannot cancel it. It changes the motion on the surface.
- Finite-time reaching. The surface is reached in finite time, with a bound that depends only on and .
- Reduced order motion. On the surface the system has order , and its dynamics are set by the alone, as in pole placement for a system of order .
- Discontinuous. The control jumps on . The closed loop is a differential equation with a discontinuous right side, and classical existence and uniqueness results such as the Picard-Lindelöf theorem do not apply. Filippov's theory gives the solutions.
Variants and improvements
- Boundary layer. Replace by (line L3). The control is continuous, and the exact sliding becomes the bound (Slotine and Li 1991, Chapter 7).
- State-dependent gain. If the bound depends on the state, use . This keeps the gain small where the uncertainty is small and reduces the chattering.
- Uncertain input gain. If only bounds are known, divide by an estimate and raise to cover the ratio (Slotine and Li 1991, Chapter 7).
- Integral sliding mode. Add an integral term to so that the sliding mode starts at and the reaching phase disappears.
- Terminal sliding mode. A nonlinear surface such as makes the motion on the surface reach the origin in finite time too.
- Higher order sliding modes. The super-twisting algorithm acts on instead of , gives a continuous control and rejects disturbances with a bounded derivative.
- Observers. The same idea, with the switching term in an observer, gives the sliding mode observer.
When to use it
Use it when the model has large matched uncertainty with a known bound, when you need a guaranteed reaching time, and when the actuator can tolerate fast switching or a boundary layer is acceptable. It suits electric drives and power converters, where the actuator is a switch anyway, and robot joints with friction and payload uncertainty. If the model is accurate, feedback linearization or backstepping give smooth controls with fewer tuning trade-offs. If the actuator is slow or the plant has light resonances that the switching can excite, prefer a smooth robust design, or use the super-twisting algorithm. If the uncertainty is unmatched, the method alone is not enough.
Pitfalls
- Gain too small at line L5. If at some time, the reaching condition fails, and can move away from the surface. The bound must cover the worst case of the model error and the disturbance together.
- Gain too large at line L5. The size of the chattering grows with . A gain far above wastes actuator effort and excites fast unmodeled dynamics.
- Wrong surface at line L1. If the polynomial in the is not Hurwitz, the state reaches the surface and then diverges along it.
- Small b(x) at line L5. The control is divided by , so it becomes large where is small. If changes sign, the method fails.
- Hidden chattering in simulation. A fixed step simulation of the discontinuous law shows chattering of the size of the step. A variable step solver can become very slow near or report a wrong smooth result. State the step with every result.
- Relative degree. The construction needs the input to appear in . If has relative degree two or more with respect to , does not appear in , and the design fails; choose so that its relative degree is one.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Shared helper of the control pages of https://algorithm.tamnd.com/. The authors are listed in prov/.
"""Fixed step simulation for the control pages.
Conventions:
- A continuous-time system is a function f(t, x, u) that returns x' as a
flat list. x is a flat list. u is whatever the control returns (a flat
list, a scalar, or None when there is no control).
- A discrete-time system is a function F(k, x, u) that returns x_(k+1).
- The integrator is the classical 4th order Runge-Kutta method with a fixed
step dt. The input is held constant over each step.
- Time t_k = t0 + k dt is computed by multiplication, not by summation.
- The number of steps round((t1 - t0) / dt) and the hold ratio
round(hold / dt) must match the real ratios within 1e-9 (relative), or
ValueError is raised.
This file holds no controller or observer of a control page.
"""
__all__ = ["rk4_step", "simulate", "simulate_discrete", "lti"]
def _axpy(a, x, y):
return [yi + a * xi for xi, yi in zip(x, y)]
def rk4_step(f, t, x, u, dt):
"""Return x(t + dt) after one RK4 step of x' = f(t, x, u), u held constant."""
k1 = f(t, x, u)
k2 = f(t + dt / 2, _axpy(dt / 2, k1, x), u)
k3 = f(t + dt / 2, _axpy(dt / 2, k2, x), u)
k4 = f(t + dt, _axpy(dt, k3, x), u)
return [xi + dt / 6 * (a + 2 * b + 2 * c + d) for xi, a, b, c, d in zip(x, k1, k2, k3, k4)]
def _ratio(num, den, what):
r = round(num / den)
if abs(r * den - num) > 1e-9 * max(abs(num), abs(den)):
raise ValueError(what + " is not an integer multiple of dt")
return r
def simulate(f, x0, t0, t1, dt, control=None, hold=None):
"""Simulate x' = f(t, x, u) from x(t0) = x0 to t1 with RK4 and step dt.
control(t, x) gives the input. It is called at each sampling instant
t0 + j hold, and its value is held (zero-order hold) until the next
instant. hold must be an integer multiple of dt; hold = None means
hold = dt. With control = None the input is None.
Returns (ts, xs, us): ts has N + 1 times, xs the N + 1 states, and us the
N inputs, where us[k] acts on [ts[k], ts[k + 1]].
"""
if dt <= 0:
raise ValueError("dt must be positive")
n_steps = _ratio(t1 - t0, dt, "t1 - t0")
if n_steps < 0:
raise ValueError("t1 is before t0")
r = 1 if hold is None else _ratio(hold, dt, "hold")
if r < 1:
raise ValueError("hold must be at least dt")
x = list(x0)
ts = [t0]
xs = [list(x)]
us = []
u = None
for k in range(n_steps):
t = t0 + k * dt
if control is not None and k % r == 0:
u = control(t, list(x))
x = rk4_step(f, t, x, u, dt)
ts.append(t0 + (k + 1) * dt)
xs.append(x)
us.append(u)
return ts, xs, us
def simulate_discrete(F, x0, N, control=None):
"""Run x_(k+1) = F(k, x_k, u_k) for k = 0, ..., N - 1.
u_k = control(k, x_k), or None if control is None. Returns (xs, us) with
N + 1 states and N inputs. Exact if F and control are exact.
"""
x = list(x0)
xs = [list(x)]
us = []
for k in range(N):
u = control(k, list(x)) if control is not None else None
x = list(F(k, x, u))
xs.append(x)
us.append(u)
return xs, us
def lti(A, B=None):
"""Return f(t, x, u) = A x + B u for the system x' = A x + B u.
u may be a flat list, a scalar (one input) or None (zero input). B may
be None for a system with no input.
"""
def f(t, x, u):
dx = [sum(a * xi for a, xi in zip(row, x)) for row in A]
if B is None or u is None:
return dx
uu = u if isinstance(u, (list, tuple)) else [u]
return [d + sum(b * ui for b, ui in zip(row, uu)) for d, row in zip(dx, B)]
return f
def _self_test():
import math
f = lti([[-1.0]])
_, xs, _ = simulate(f, [1.0], 0.0, 1.0, 0.01)
assert abs(xs[-1][0] - math.exp(-1.0)) < 1e-9
return True
if __name__ == "__main__":
_self_test()
sliding_mode_control.py 85 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/sliding-mode-control/. The authors are listed in prov/WP3VZ0.jsonl.
"""Sliding mode control of a system in controllable canonical form
x_i' = x_(i+1), i = 1, ..., n - 1,
x_n' = f(x) + b(x) u + d(t, x),
with a known nominal model f_hat of f, a known b(x) != 0 and an unknown
term delta = f - f_hat + d with |delta| <= D. The sliding variable is
s = c_1 x_1 + ... + c_(n-1) x_(n-1) + x_n,
and the control is
u = (-f_hat(x) - sum_(i < n) c_i x_(i+1) - k sigma(s)) / b(x),
with sigma(s) = sgn(s), or sat(s / phi) for a boundary layer of width
phi > 0. Along the system s' = delta - k sigma(s), so k >= D + eta gives
s s' <= -eta |s| when sigma = sgn.
The input values may be int, Fraction or float. With exact data and exact
f_hat and b, the value of u is exact (the division by b uses Fraction when
both sides are int).
"""
from fractions import Fraction
__all__ = ["sgn", "sat", "sliding_variable", "smc"]
def sgn(s):
"""Return -1, 0 or 1."""
return (s > 0) - (s < 0)
def sat(z):
"""Return z clipped to [-1, 1]."""
if z > 1:
return 1
if z < -1:
return -1
return z
def _div(p, q):
if isinstance(p, int) and isinstance(q, int):
return Fraction(p, q)
return p / q
def sliding_variable(c, x):
"""s = c_1 x_1 + ... + c_(n-1) x_(n-1) + x_n, for len(c) = len(x) - 1."""
n = len(x)
if len(c) != n - 1:
raise ValueError("c must have len(x) - 1 entries")
return sum(c[i] * x[i] for i in range(n - 1)) + x[n - 1]
def smc(x, c, f_hat, b, k, phi=0):
"""Return (u, s) for the state x.
c: the n - 1 coefficients of the sliding surface; the polynomial
c_1 + c_2 l + ... + c_(n-1) l^(n-2) + l^(n-1) must be Hurwitz.
f_hat(x): the nominal drift of the last state.
b(x): the input gain of the last state, never zero.
k: the switching gain, k >= D + eta with eta > 0.
phi: 0 for the discontinuous law, or the width of the boundary layer.
"""
n = len(x)
if k <= 0:
raise ValueError("k must be positive")
if phi < 0:
raise ValueError("phi must be zero or positive")
s = sliding_variable(c, x) # @line L1
bx = b(x)
if bx == 0:
raise ZeroDivisionError("b(x) = 0")
v = -f_hat(x) - sum(c[i] * x[i + 1] for i in range(n - 1)) # @line L2
if phi > 0: # @line L3
sigma = sat(_div(s, phi)) # @line L3
else:
sigma = sgn(s) # @line L4
u = _div(v - k * sigma, bx) # @line L5
return u, s # @line L6
test_sliding_mode_control.py 153 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/sliding-mode-control/. The authors are listed in prov/WP3VZ0.jsonl.
import math
import random
from fractions import Fraction
import ctlsim
from sliding_mode_control import sat, sgn, sliding_variable, smc
# Simulations: classical RK4 (ctlsim) with step DT, the control computed at
# the start of each step and held over the step (a sampled controller).
# Tolerances are stated at each check.
DT = 0.002
def steps(T, dt=DT):
n = round(T / dt)
assert abs(n * dt - T) < 1e-12
return n
def page_plant(t, x, u):
# x1' = x2, x2' = u + d with d = 0.5 sin 2t, so D = 0.5.
return [x[1], u + 0.5 * math.sin(2 * t)]
def page_control(phi=0):
# s = x1 + x2, f_hat = 0, b = 1, k = 1.5 = D + eta with eta = 1.
return lambda t, x: smc(x, [1.0], lambda x: 0.0, lambda x: 1.0, 1.5, phi)[0]
def run_page(dt, phi=0, T=6.0):
n = steps(T, dt)
ts, xs, us = ctlsim.simulate(page_plant, [1.0, 0.0], 0.0, T, dt, control=page_control(phi))
assert len(ts) == n + 1
ss = [x[0] + x[1] for x in xs]
return ts, xs, us, ss
def test_helpers():
assert [sgn(-2), sgn(0), sgn(Fraction(1, 3))] == [-1, 0, 1]
assert [sat(-3), sat(Fraction(1, 2)), sat(7)] == [-1, Fraction(1, 2), 1]
assert sliding_variable([2, 3], [1, -1, 4]) == 2 - 3 + 4
def test_sliding_derivative_exact():
# s' = delta - k sigma(s) exactly, for random rational data, n = 1..4.
rng = random.Random(7)
for _ in range(200):
n = rng.randint(1, 4)
x = [Fraction(rng.randint(-9, 9), rng.randint(1, 5)) for _ in range(n)]
c = [Fraction(rng.randint(1, 9), rng.randint(1, 3)) for _ in range(n - 1)]
a = Fraction(rng.randint(-5, 5), 2)
bconst = Fraction(rng.randint(1, 6), rng.randint(1, 4)) * rng.choice([-1, 1])
delta = Fraction(rng.randint(-7, 7), 3)
k = abs(delta) + 1
phi = rng.choice([0, Fraction(1, 2)])
def f_hat(x):
return a * x[0] * x[-1] - x[0] ** 2
def b(x):
return bconst * (1 + x[0] ** 2)
u, s = smc(x, c, f_hat, b, k, phi)
assert s == sliding_variable(c, x)
xdot_n = f_hat(x) + delta + b(x) * u
xdot = x[1:] + [xdot_n]
sdot = sum(c[i] * xdot[i] for i in range(n - 1)) + xdot[n - 1]
sigma = sat(s / phi) if phi else sgn(s)
assert sdot == delta - k * sigma
if phi == 0 and s != 0:
# reaching condition s s' <= -eta |s| with eta = k - |delta| = 1
assert s * sdot <= -abs(s)
def test_page_example_reaching_and_band():
ts, xs, us, ss = run_page(DT)
assert len(us) == 3000
# the table values on the page, to 5e-6
table = {
0.5: (0.85762, -0.49318, 0.364431),
1.0: (0.56424, -0.56077, 0.003476),
2.0: (0.20759, -0.21039, -0.002799),
6.0: (0.00336, -0.00233, 0.001034),
}
for t, (a, b, s) in table.items():
i = steps(t)
assert abs(xs[i][0] - a) < 5e-6 and abs(xs[i][1] - b) < 5e-6 and abs(ss[i] - s) < 5e-6
# reaching time: theorem bound |s(0)| / eta = 1; measured 0.858
t_reach = next(t for t, s in zip(ts, ss) if s <= 0)
assert t_reach <= 1.0
assert abs(t_reach - 0.858) < 1e-9
# after reaching, |s| <= (k + D) dt up to O(dt^2); measured 0.00399
band = max(abs(s) for t, s in zip(ts, ss) if t >= t_reach)
assert band <= 2.0 * DT * 1.01
# the sampled law switches at almost every step (chattering)
switches = sum(1 for i in range(1, len(us)) if 2 <= ts[i] < 3 and sgn(us[i] + xs[i][1]) != sgn(us[i - 1] + xs[i - 1][1]))
assert switches > 300
# on the surface x1' = -x1 + s, so x1 decays; measured x1(6) = 0.00336
assert abs(xs[-1][0]) < 0.004
def test_band_halves_with_step():
ts, xs, us, ss = run_page(0.001)
t_reach = next(t for t, s in zip(ts, ss) if s <= 0)
band = max(abs(s) for t, s in zip(ts, ss) if t >= t_reach)
assert band <= 2.0 * 0.001 * 1.01
assert band > 1.9 * 0.001
def test_boundary_layer():
# with sat(s / phi) and phi = 0.05, |s| ends within phi D / k = 0.01667
# (measured 0.01663) and u has no jumps
ts, xs, us, ss = run_page(DT, phi=0.05)
assert max(abs(s) for t, s in zip(ts, ss) if t >= 2) <= 0.05 * 0.5 / 1.5
jumps = max(abs(us[i] - us[i - 1]) for i in range(1, len(us)))
assert jumps < 0.1
def test_third_order_with_nonlinear_gain():
# x''' = sin x1 + (2 + cos x1) u + 0.3 cos t, s = 2 x1 + 3 x2 + x3,
# k = 1.3 = D + 1, so reaching takes at most |s(0)| = 2 (measured 1.764).
def plant(t, x, u):
return [x[1], x[2], math.sin(x[0]) + (2 + math.cos(x[0])) * u + 0.3 * math.cos(t)]
def control(t, x):
return smc(x, [2.0, 3.0], lambda x: math.sin(x[0]), lambda x: 2 + math.cos(x[0]), 1.3)[0]
T = 10.0
ts, xs, us = ctlsim.simulate(plant, [1.0, 0.0, 0.0], 0.0, T, DT, control=control)
assert len(us) == steps(T) == 5000
ss = [2 * x[0] + 3 * x[1] + x[2] for x in xs]
t_reach = next(t for t, s in zip(ts, ss) if s <= 0)
assert t_reach <= 2.0
assert max(abs(s) for t, s in zip(ts, ss) if t >= t_reach) < 2.0 * 1.3 * DT
# on s = 0 the reduced system has the poles -1 and -2
assert max(abs(v) for v in xs[-1]) < 0.002
def test_errors():
for bad in [
lambda: smc([1.0, 0.0], [1.0], lambda x: 0.0, lambda x: 1.0, 0.0),
lambda: smc([1.0, 0.0], [1.0], lambda x: 0.0, lambda x: 1.0, 1.0, -1.0),
lambda: smc([1.0, 0.0], [1.0, 2.0], lambda x: 0.0, lambda x: 1.0, 1.0),
lambda: smc([1.0, 0.0], [1.0], lambda x: 0.0, lambda x: 0.0, 1.0),
]:
try:
bad()
except (ValueError, ZeroDivisionError):
continue
raise AssertionError("no error")
History
Switching feedback with sliding motions was studied from the late 1950s in the Soviet Union, in the group of Stanislav Emelyanov in Moscow, with Vadim Utkin as a main contributor. Utkin's 1977 survey in IEEE Transactions on Automatic Control presented the equivalent control and the invariance to matched disturbances to a Western audience, and his 1992 book gave the full theory. Aleksei Filippov's work on differential equations with discontinuous right sides, collected in his 1988 book, gave the solutions of the closed loop a precise meaning. Slotine (1984) introduced the boundary layer to trade exactness for a continuous control, and Levant (1993) started the line of higher order sliding modes.
References
- Variable structure systems with sliding modes, the survey of sliding modes, the equivalent control and the invariance to matched disturbances
- Vadim I. Utkin, Sliding Modes in Control and Optimization, Springer, 1992, the equivalent control method and the conditions for the existence of a sliding mode
- A. F. Filippov, Differential Equations with Discontinuous Righthand Sides, Kluwer, 1988, the definition of solutions of differential equations with a discontinuous right side
- Jean-Jacques E. Slotine and Weiping Li, Applied Nonlinear Control, Prentice Hall, 1991, Chapter 7 (Sliding Control), the sliding condition, the reaching time and the boundary layer
- Hassan K. Khalil, Nonlinear Systems, third edition, Prentice Hall, 2002, Section 14.1, Sliding mode control
- Christopher Edwards and Sarah K. Spurgeon, Sliding Mode Control, Theory and Applications, Taylor and Francis, 1998, the introductory chapters on the sliding surface, the reaching condition and matched uncertainty
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag WP3VZ0 Edit this page History Report an error Markdown