This article describes Lyapunov optimization for dynamical systems. It gives an example application to optimal control in queueing networks.
Introduction
Lyapunov optimization refers to the use of a Lyapunov function to optimally control a dynamical system. Lyapunov functions are used extensively in control theory to ensure different forms of system stability. The state of a system at a particular time is often described by a multi-dimensional vector. A Lyapunov function is a nonnegative scalar measure of this multi-dimensional state. Typically, the function is defined to grow large when the system moves towards undesirable states. System stability is achieved by taking control actions that make the Lyapunov function drift in the negative direction towards zero.
Lyapunov drift is central to the study of optimal control in queueing networks. A typical goal is to stabilize all network queues while optimizing some performance objective, such as minimizing average energy or maximizing average throughput. Minimizing the drift of a quadratic Lyapunov function leads to the
backpressure routing algorithm for network stability, also called the max-weight algorithm.[1][2]
Adding a weighted penalty term to the Lyapunov drift and minimizing the sum leads to the drift-plus-penalty algorithm for joint network stability and penalty minimization.[3][4][5] The drift-plus-penalty procedure can also be used to compute solutions to convex programs and linear programs.[6]
Lyapunov drift for queueing networks
Consider a queueing network that evolves in discrete time with normalized time slots
Suppose there are
queues in the network, and define the vector of queue backlogs at time
by:

Quadratic Lyapunov functions
For each slot
define:

This function is a scalar measure of the total queue backlog in the network. It is called quadratic Lyapunov function on the queue state. Define the Lyapunov drift as the change in this function from one slot to the next:

Bounding the Lyapunov drift
Suppose the queue backlogs change over time according to the following equation:

where
and
are arrivals and service opportunities, respectively, in queue
on slot
This equation can be used to compute a bound on the Lyapunov drift for any slot t:

Rearranging this inequality, summing over all
and dividing by 2 leads to:

where:

Suppose the second moments of arrivals and service in each queue are bounded, so that there is a finite constant
such that for all
and all possible queue vectors
the following property holds:
![{\displaystyle \mathbb {E} [B(t)|Q(t)]\leqslant B}](https://wikimedia.org/api/rest_v1/media/math/render/svg/cc879fc787057147c92fc634f7f09892c72d5826)
Taking conditional expectations of (Eq. 1) leads to the following bound on the conditional expected Lyapunov drift:
![{\displaystyle \mathbb {E} [\Delta L(t)|Q(t)]\leqslant B+\sum _{i=1}^{N}Q_{i}(t)\mathbb {E} [a_{i}(t)-b_{i}(t)|Q(t)]\qquad (Eq.2)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/27419e2f2fbdfb01984e232ce13e480db408c01d)
A basic Lyapunov drift theorem
In many cases, the network can be controlled so that the difference between arrivals and service at each queue satisfies the following property for some real number
:
![{\displaystyle \mathbb {E} [a_{i}(t)-b_{i}(t)|Q(t)]\leqslant -\varepsilon }](https://wikimedia.org/api/rest_v1/media/math/render/svg/27f5d1830acffb2316bf406b5eccf94dbf3fc94d)
If the above holds for the same epsilon for all queues
all slots
and all possible vectors
then (Eq. 2) reduces to the drift condition used in the following Lyapunov drift theorem. The theorem below can be viewed as a variation on Foster's theorem for Markov chains. However, it does not require a Markov chain structure.
- Theorem (Lyapunov Drift).[5][7] Suppose there are constants
such that for all
and all possible vectors
the conditional Lyapunov drift satisfies:
![{\displaystyle \mathbb {E} [\Delta L(t)|Q(t)]\leqslant B-\varepsilon \sum _{i=1}^{N}Q_{i}(t).}](https://wikimedia.org/api/rest_v1/media/math/render/svg/81b02e00a9091840430bc60d628f3db31d2e2779)
- Then for all slots
the time average queue size in the network satisfies:
![{\displaystyle {\frac {1}{t}}\sum _{\tau =0}^{t-1}\sum _{i=1}^{N}\mathbb {E} [Q_{i}(\tau )]\leqslant {\frac {B}{\varepsilon }}+{\frac {\mathbb {E} [L(0)]}{\varepsilon t}}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7d04356c4194f90d3e7de3dd462d51af7c07ccf4)
Proof. Taking expectations of both sides of the drift inequality and using the law of iterated expectations yields:
![{\displaystyle \mathbb {E} [\Delta L(t)]\leqslant B-\varepsilon \sum _{i=1}^{N}\mathbb {E} [Q_{i}(t)]}](https://wikimedia.org/api/rest_v1/media/math/render/svg/0e2cfc411afc870f651784001160a5e91c122fc5)
Summing the above expression over
and using the law of telescoping sums gives:
![{\displaystyle \mathbb {E} [L(t)]-\mathbb {E} [L(0)]\leqslant Bt-\varepsilon \sum _{\tau =0}^{t-1}\sum _{i=1}^{N}\mathbb {E} [Q_{i}(\tau )]}](https://wikimedia.org/api/rest_v1/media/math/render/svg/551627df41a7477f1104641c653a18cf17dadf63)
Using the fact that
is non-negative and rearranging the terms in the above expression proves the result.
Lyapunov optimization for queueing networks
Consider the same queueing network as in the above section. Now define
as a network penalty incurred on slot
Suppose the goal is to stabilize the queueing network while minimizing the time average of
For example, to stabilize the network while minimizing time average power,
can be defined as the total power incurred by the network on slot t.[8] To treat problems of maximizing the time average of some desirable reward
the penalty can be defined
This is useful for maximizing network throughout utility subject to stability.[3]
To stabilize the network while minimizing the time average of the penalty
network algorithms can be designed to make control actions that greedily minimize a bound on the following drift-plus-penalty expression on each slot
:[5]

where
is a non-negative weight that is chosen as desired to affect a performance tradeoff. A key feature of this approach is that it typically does not require knowledge of the probabilities of the random network events (such as random job arrivals or channel realizations). Choosing
reduces to minimizing a bound on the drift every slot and, for routing in multi-hop queueing networks, reduces to the backpressure routing algorithm developed by Tassiulas and Ephremides.[1][2] Using
and defining
as the network power use on slot
leads to the drift-plus-penalty algorithm for minimizing average power subject to network stability developed by Neely.[8] Using
and using
as the negative of an admission control utility metric leads to the drift-plus-penalty algorithm for joint flow control and network routing developed by Neely, Modiano, and Li.[3]
A generalization of the Lyapunov drift theorem of the previous section is important in this context. For simplicity of exposition, assume
is bounded from below:

For example, the above is satisfied with
in cases when the penalty
is always non-negative. Let
represent a desired target for the time average of
Let
be a parameter used to weight the importance of meeting the target. The following theorem shows that if a drift-plus-penalty condition is met, then the time average penalty is at most O(1/V) above the desired target, while average queue size is O(V). The
parameter can be tuned to make time average penalty as close to (or below) the target as desired, with a corresponding queue size tradeoff.
- Theorem (Lyapunov Optimization). Suppose there are constants
and
such that for all
and all possible vectors
the following drift-plus-penalty condition holds:
![{\displaystyle \mathbb {E} [\Delta L(t)+Vp(t)|Q(t)]\leqslant B+Vp^{*}-\varepsilon \sum _{i=1}^{N}Q_{i}(t)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/1e8acf734e7fb64a44e7973a1f5fc0c4f655cb87)
- Then for all
the time average penalty and time average queue sizes satisfy:
![{\displaystyle {\frac {1}{t}}\sum _{\tau =0}^{t-1}\mathbb {E} [p(\tau )]\leqslant p^{*}+{\frac {B}{V}}+{\frac {\mathbb {E} [L(0)]}{Vt}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/35628f30ea21e784f69e247ea3d3ad7d8e5c8b9c)
![{\displaystyle {\frac {1}{t}}\sum _{\tau =0}^{t-1}\sum _{i=1}^{N}\mathbb {E} [Q_{i}(\tau )]\leqslant {\frac {B+V(p^{*}-p_{\min })}{\varepsilon }}+{\frac {\mathbb {E} [L(0)]}{\varepsilon t}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/6195af82bd74d49e8c9a960edfb4a9e6dade7ff7)
Proof. Taking expectations of both sides of the posited drift-plus-penalty and using the law of iterated expectations we have:
![{\displaystyle \mathbb {E} [\Delta L(t)]+V\mathbb {E} [p(t)]\leqslant B+Vp^{*}-\varepsilon \sum _{i=1}^{N}\mathbb {E} [Q_{i}(t)]}](https://wikimedia.org/api/rest_v1/media/math/render/svg/18a42c480b71d5f3428bf98fd86cfc450e9e96c4)
Summing the above over the first
slots and using the law of telescoping sums gives:
![{\displaystyle {\begin{aligned}\mathbb {E} [L(t)]-\mathbb {E} [L(0)]+V\sum _{\tau =0}^{t-1}\mathbb {E} [p(\tau )]&\leqslant (B+Vp^{*})t-\varepsilon \sum _{\tau =0}^{t-1}\sum _{i=1}^{N}\mathbb {E} [Q_{i}(\tau )]\\-\mathbb {E} [L(0)]+V\sum _{\tau =0}^{t-1}\mathbb {E} [p(\tau )]&\leqslant (B+Vp^{*})t&&{\text{Since }}L(t),Q_{i}(t)\geqslant 0\\V\sum _{\tau =0}^{t-1}\mathbb {E} [p(\tau )]&\leqslant p^{*}Vt+Bt+\mathbb {E} [L(0)]\end{aligned}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/f94d8a21cf3c3feca238caf123dbb36f7f433e25)
Dividing by
and rearranging terms proves the time average penalty bound. A similar argument proves the time average queue size bound.
References
- ^ a b L. Tassiulas and A. Ephremides,
"Stability Properties of Constrained Queueing Systems and Scheduling Policies for Maximum Throughput in Multihop Radio Networks, IEEE Transactions on Automatic Control, vol. 37, no. 12, pp. 1936-1948, Dec. 1992.
- ^ a b L. Tassiulas and A. Ephremides, "Dynamic Server Allocation to Parallel Queues with Randomly Varying Connectivity," IEEE Transactions on Information Theory, vol. 39, no. 2, pp. 466-478, March 1993.
- ^ a b c M. J. Neely, E. Modiano, and C. Li, "Fairness and Optimal Stochastic Control for Heterogeneous Networks," Proc. IEEE INFOCOM, March 2005.
- ^ L. Georgiadis, M. J. Neely, and L. Tassiulas, "Resource Allocation and Cross-Layer Control in Wireless Networks," Foundations and Trends in Networking, vol. 1, no. 1, pp. 1-149, 2006.
- ^ a b c M. J. Neely. Stochastic Network Optimization with Application to Communication and Queueing Systems, Morgan & Claypool, 2010.
- ^ M. J. Neely, "Distributed and Secure Computation of Convex Programs over a Network of Connected Processors," DCDIS Conf, Guelph, Ontario, July 2005
- ^ E. Leonardi, M. Mellia, F. Neri, and M. Ajmone Marsan, "Bounds on Average Delays and Queue Size Averages and Variances in Input-Queued Cell-Based Switches", Proc. IEEE INFOCOM, 2001.
- ^ a b M. J. Neely, "Energy Optimal Control for Time Varying Wireless Networks," IEEE Transactions on Information Theory, vol. 52, no. 7, pp. 2915-2934, July 2006.
Primary Sources
- M. J. Neely. Stochastic Network Optimization with Application to Communication and Queueing Systems, Morgan & Claypool, 2010.