Algorithm Search⌘K

Modeladvanced

Mixed logical dynamical system

Also called MLD system.

A model that writes hybrid dynamics with logic as linear equations and inequalities in real and binary variables.

A mixed logical dynamical (MLD) system is a discrete-time model in which the state update is linear in real variables and binary variables, and a set of linear inequalities ties the binary variables to the state and the input. The inequalities encode logic (if, and, or, implies), switching between modes, saturations and the condition that a real quantity is above a threshold. Bemporad and Morari (1999) introduced the form so that the finite-horizon optimal control of a hybrid plant becomes a mixed-integer linear or quadratic program, which a standard solver can handle. The model is the input format of hybrid MPC. It describes the same systems as a piecewise affine system under mild conditions (Heemels, De Schutter and Bemporad 2001), but in a form that an optimizer reads directly.

The machine

The state xk=(xc,xℓ)x_k = (x_c, x_\ell) has real components xc∈Rncx_c \in \mathbb{R}^{n_c} and binary components xℓ∈{0,1}nℓx_\ell \in \{0, 1\}^{n_\ell}, and the input and output are split the same way. The model adds auxiliary binary variables δk∈{0,1}rℓ\delta_k \in \{0, 1\}^{r_\ell} and auxiliary real variables zk∈Rrcz_k \in \mathbb{R}^{r_c}:

xk+1=Axk+B1uk+B2δk+B3zk,x_{k+1} = A x_k + B_1 u_k + B_2 \delta_k + B_3 z_k,
yk=Cxk+D1uk+D2δk+D3zk,y_k = C x_k + D_1 u_k + D_2 \delta_k + D_3 z_k,
E2δk+E3zk≤E1uk+E4xk+E5.E_2 \delta_k + E_3 z_k \le E_1 u_k + E_4 x_k + E_5.

Time is discrete. For a given xkx_k and uku_k, the inequalities define the allowed (δk,zk)(\delta_k, z_k). The model is well posed if, for every (xk,uk)(x_k, u_k) for which the inequalities have a solution, the next state xk+1x_{k+1} and the output yky_k are unique (Bemporad and Morari 1999). The pairs (xk,uk)(x_k, u_k) with no solution are forbidden, so the inequalities also express state and input constraints.

From logic to inequalities. Let f(x)f(x) be affine with m≤f(x)≤Mm \le f(x) \le M on the bounded domain, and let ε>0\varepsilon > 0 be a small tolerance.

statement inequalities
δ1∨δ2\delta_1 \lor \delta_2 δ1+δ2≥1\delta_1 + \delta_2 \ge 1
δ1∧δ2\delta_1 \land \delta_2 δ1=1\delta_1 = 1, δ2=1\delta_2 = 1
δ1⇒δ2\delta_1 \Rightarrow \delta_2 δ1≤δ2\delta_1 \le \delta_2
[f(x)≤0]⇔[δ=1][f(x) \le 0] \Leftrightarrow [\delta = 1] f(x)≤M(1−δ)f(x) \le M(1 - \delta), f(x)≥ε+(m−ε)δf(x) \ge \varepsilon + (m - \varepsilon)\delta
z=δf(x)z = \delta f(x) mδ≤z≤Mδm\delta \le z \le M\delta, f(x)−M(1−δ)≤z≤f(x)−m(1−δ)f(x) - M(1 - \delta) \le z \le f(x) - m(1 - \delta)

These are big-M constraints. The constants MM and mm come from bounds on xx and uu, so the domain must be bounded in the directions that the logic uses. The tolerance ε\varepsilon is needed because a strict inequality f(x)>0f(x) > 0 cannot be written as a closed constraint.

Example. Take the scalar PWA system xk+1=0.5xk+ukx_{k+1} = 0.5x_k + u_k if xk≥0x_k \ge 0 and xk+1=2xk+ukx_{k+1} = 2x_k + u_k if xk<0x_k < 0, on ∣x∣≤5|x| \le 5, ∣u∣≤1|u| \le 1. Let δ=1\delta = 1 stand for x≥0x \ge 0. With f(x)=−x∈[−5,5]f(x) = -x \in [-5, 5], the event gives −x≤5(1−δ)-x \le 5(1 - \delta) and −x≥ε−(5+ε)δ-x \ge \varepsilon - (5 + \varepsilon)\delta. Write the update as xk+1=2xk+uk+zkx_{k+1} = 2x_k + u_k + z_k with z=δ⋅(−1.5x)z = \delta \cdot (-1.5x), where −1.5x∈[−7.5,7.5]-1.5x \in [-7.5, 7.5]:

−7.5δ≤z≤7.5δ,−1.5x−7.5(1−δ)≤z≤−1.5x+7.5(1−δ).-7.5\delta \le z \le 7.5\delta, \qquad -1.5x - 7.5(1 - \delta) \le z \le -1.5x + 7.5(1 - \delta).

For δ=1\delta = 1 the second pair gives z=−1.5xz = -1.5x and xk+1=0.5xk+ukx_{k+1} = 0.5x_k + u_k. For δ=0\delta = 0 the first pair gives z=0z = 0 and the second pair holds because ∣1.5x∣≤7.5|1.5x| \le 7.5. So A=2A = 2, B1=1B_1 = 1, B2=0B_2 = 0, B3=1B_3 = 1, with one binary variable, one auxiliary real variable and six inequalities. The model is well posed: the event inequalities fix δ\delta for every xx outside (−ε,0)(-\varepsilon, 0), and the inequalities forbid that small interval.

What it counts

The model predicts the next state and the output, but each prediction is a feasibility problem: given xkx_k and uku_k, find (δk,zk)(\delta_k, z_k) that satisfy the inequalities. Over a horizon of NN steps, the unknowns are N(m+rℓ+rc)N(m + r_\ell + r_c) input and auxiliary variables, of which NrℓN r_\ell are binary (plus binary inputs if any). With a quadratic cost, the optimal control problem is a mixed-integer quadratic program; with a 1-norm or infinity-norm cost, a mixed-integer linear program (Bemporad and Morari 1999). The size of the MLD model, and the tightness of the big-M constants, decide how hard these programs are for branch and bound (see mixed-integer programming).

Relation to other models

  • PWA systems. A PWA system on a bounded domain becomes an MLD system with one binary variable per mode, ∑iδi=1\sum_i \delta_i = 1, and zi=δi(Aix+Biu+fi)z_i = \delta_i(A_i x + B_i u + f_i); the next state is ∑izi\sum_i z_i. A well-posed MLD system defines a PWA system: for each value of the binary variables the remaining constraints are a polyhedron in (x,u)(x, u) and the update is affine. Heemels, De Schutter and Bemporad (2001) proved this equivalence, with the conditions on boundedness and well-posedness, and they extended it to linear complementarity, extended linear complementarity and max-min-plus-scaling systems. The PWA form is better for analysis by cells; the MLD form is better as input to an optimizer.
  • Hybrid automata. A hybrid automaton has continuous time, locations with flows, guards and resets, and can be nondeterministic. An MLD system is in discrete time and is deterministic when it is well posed. A discrete-time hybrid automaton with affine flows, polyhedral guards and affine resets can be written in MLD form.
  • Timed automata and Petri nets. A timed automaton has only clocks, and a Petri net only discrete markings. The MLD form can encode the discrete part of both with binary variables, but it is meant for plants with real dynamics, not for model checking.
  • Mixed-integer programs. One step of an MLD system is a set of constraints of a mixed-integer program. Stacking NN copies gives the constraints of a planning problem.

Known results in the model

  • Predictive control. The finite-horizon optimal control of an MLD system is an MIQP or MILP, and with a terminal equality constraint the receding horizon law makes the state converge to the equilibrium when the first problem is feasible (Bemporad and Morari 1999). See hybrid MPC and the MPC stability theorem.
  • Equivalence. MLD and PWA systems describe the same input and state behaviors under the conditions of Heemels, De Schutter and Bemporad (2001), so the hardness results for PWA systems also hold here: asymptotic stability is NP-hard to decide even for two half spaces (Blondel and Tsitsiklis 1999), see piecewise affine system.
  • Observability and controllability. Bemporad, Ferrari-Trecate and Morari (2000) reduced these questions for MLD and PWA systems to mixed-integer linear programs.
  • Modeling tools. The HYSDEL language (Torrisi and Bemporad 2004) takes a description with logic, automata, events and linear dynamics and generates the MLD matrices, with the big-M constants computed from the given bounds.
  • Explicit solutions. The optimal input of the finite-horizon problem is a piecewise affine function of the state, and it can be computed offline by multiparametric mixed-integer programming or dynamic programming (Borrelli, Bemporad and Morari 2017, Chapters 16 and 17). See explicit MPC.

References

  1. A. Bemporad and M. Morari, Control of systems integrating logic, dynamics, and constraints, Automatica 35(3), 1999, pages 407 to 427, the MLD form, the translation of propositional logic into mixed-integer inequalities, well-posedness, and predictive control of MLD systems
  2. W. P. M. H. Heemels, B. De Schutter and A. Bemporad, Equivalence of hybrid dynamical models, Automatica 37(7), 2001, pages 1085 to 1091, the equivalence of MLD, PWA, linear complementarity, extended linear complementarity and max-min-plus-scaling systems
  3. F. D. Torrisi and A. Bemporad, HYSDEL: a tool for generating computational hybrid models for analysis and synthesis problems, IEEE Transactions on Control Systems Technology 12(2), 2004, pages 235 to 249, the HYSDEL language and its compilation into MLD form
  4. A. Bemporad, G. Ferrari-Trecate and M. Morari, Observability and controllability of piecewise affine and hybrid systems, IEEE Transactions on Automatic Control 45(10), 2000, pages 1864 to 1876, observability and controllability tests for MLD and PWA systems by mixed-integer linear programming
  5. F. Borrelli, A. Bemporad and M. Morari, Predictive Control for Linear and Hybrid Systems, Cambridge University Press, 2017, Chapter 16, Models of Hybrid Systems

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/9HNM8B/text.yaml