User:JamesQueue/Old Version of Lyapunov Optimization

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 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.

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. 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. The drift-plus-penalty procedure can also be used to compute solutions to convex programs and linear programs.

Lyapunov drift for queueing networks
Consider a queueing network that evolves in discrete time with normalized time slots t in {0, 1, 2, …}. Suppose there are N queues in the network, and define the vector of queue backlogs at time t by:

$$ Q(t) = (Q_1(t), Q_2(t), ..., Q_N(t)) $$

Quadratic Lyapunov functions
For each slot t, define L(t) as the sum of the squares of the current queue backlogs (divided by 2 for convenience later):

$$ L(t) = \frac{1}{2}\sum_{i=1}^NQ_i(t)^2 $$

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:

$$ \Delta(t) = L(t+1) - L(t) $$

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

$$ Q_i(t+1) = \max[Q_i(t) + a_i(t) - b_i(t), 0] $$

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

$$ Q_i(t+1)^2 = \max[Q_i(t) + a_i(t) - b_i(t), 0]^2 \leq (Q_i(t+1) + a_i(t) - b_i(t))^2 $$

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

$$ (Eq. 1) \text{ } \Delta(t) \leq B(t) + \sum_{i=1}^N Q_i(t)(a_i(t) - b_i(t)) $$

where B(t) is defined:

$$ B(t) = \frac{1}{2}\sum_{i=1}^N[a_i(t)^2 + b_i(t)^2 - 2a_i(t)b_i(t)] $$

Suppose the second moments of arrivals and service in each queue are bounded, so that there is a finite constant B>0 such that for all t and all possible queue vectors Q(t) the following property holds:

$$ E[B(t) | Q(t)] \leq B $$

Taking conditional expectations of (Eq. 1) leads to the following bound on the conditional expected Lyapunov drift:

$$ (Eq. 2) \text{ } E[\Delta(t) | Q(t)] \leq B + \sum_{i=1}^N Q_i(t)E[a_i(t) - b_i(t) | Q(t)] $$

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 $$\epsilon>0$$:

$$ E[a_i(t) - b_i(t) | Q(t)] \leq -\epsilon $$

If the above holds for the same epsilon for all queues i, all slots t, and all possible vectors Q(t), 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.

$$\text{ Theorem (Lyapunov Drift):}$$

Suppose there are constants $$B\geq 0, \epsilon>0$$ such that for all t and all possible vectors Q(t) the conditional Lyapunov drift satisfies:

$$ E[\Delta(t)|Q(t)] \leq B - \epsilon \sum_{i=1}^N Q_i(t) $$

Then for all slots t>0 the time average queue size in the network satisfies:

$$ \frac{1}{t}\sum_{\tau=0}^{t-1} \sum_{i=1}^NE[Q_i(\tau)] \leq \frac{B}{\epsilon} + \frac{E[L(0)]}{\epsilon t} $$

$$ \text{ Proof:}$$

Taking expectations of both sides of the drift inequality and using the law of iterated expectations yields:

$$ E[\Delta(t)] \leq B - \epsilon \sum_{i=1}^N E[Q_i(t)] $$

Summing the above expression over $$\tau \in \{0, 1, \ldots, t-1\}$$ and using the law of telescoping sums gives:

$$ E[L(t)] - E[L(0)] \leq Bt - \epsilon \sum_{\tau=0}^{t-1}\sum_{i=1}^NE[Q_i(\tau)] $$

Using the fact that L(t) 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 p(t) as a network penalty incurred on slot t. Suppose the goal is to stabilize the queueing network while minimizing the time average of p(t). For example, to stabilize the network while minimizing time average power, p(t) can be defined as the total power incurred by the network on slot t. To treat problems of maximizing the time average of some desirable reward r(t), the penalty can be defined p(t) = -r(t). This is useful for maximizing network throughput utility subject to stability.

To stabilize the network while minimizing the time average of p(t), network algorithms can be designed to make control actions that greedily minimize a bound on the following drift-plus-penalty expression on each slot t:

$$ \Delta(t) + Vp(t) $$

where V is a non-negative weight that is chosen as desired to affect a performance tradeoff. Choosing V = 0 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. Using V>0 and defining p(t) as the network power use on slot t leads to the drift-plus-penalty algorithm for minimizing average power subject to network stability developed by Neely. Using V>0 and using p(t) as -1 times 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.

A generalization of the Lyapunov drift theorem of the previous section is important in this context. For simplicity of exposition, assume the penalty p(t) is lower bounded by some (possibly negative) real number p_min:

$$ p(t) \geq p_{min} \text{ } \forall t \in \{0, 1, 2, ...\} $$

Let p* represent a desired target for the time average of p(t). Let V 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 V parameter can be tuned to make time average penalty as close to (or below) the target as desired, with a corresponding queue size tradeoff.

$$\text{ Theorem (Lyapunov Optimization):}$$

Suppose there are constants $$B\geq 0, \epsilon>0, V\geq 0, p^*$$ such that for all t and all possible vectors Q(t) the following drift-plus-penalty condition holds:

$$ (Eq. 3) \text{ } E[\Delta(t) + Vp(t) | Q(t)] \leq B + Vp^* - \epsilon\sum_{i=1}^NQ_i(t) $$

Then for all t>0 the time average penalty and time average queue sizes satisfy:

\frac{1}{t}\sum_{\tau=0}^{t-1} E[p(\tau)] \leq p^* + \frac{B}{V} + \frac{E[L(0)]}{Vt} $$
 * $$ \text{ }

\frac{1}{t}\sum_{\tau=0}^{t-1} \sum_{i=1}^NE[Q_i(\tau)] \leq \frac{B + V(p^* - p_{min})}{\epsilon} + \frac{E[L(0)]}{\epsilon t} $$
 * $$ \text{ }

$$ \text{ Proof:}$$

Taking expectations of (Eq. 3) and using the law of iterated expectations gives:

$$ E[\Delta(t)] + VE[p(t)] \leq B + Vp^* - \epsilon \sum_{i=1}^NE[Q_i(t)] $$

Summing the above over the first t slots and using the law of telescoping sums gives:

$$ E[L(t)] - E[L(0)] + V\sum_{\tau=0}^{t-1}E[p(\tau)] \leq (B+Vp^*)t - \epsilon\sum_{\tau=0}^{t-1}\sum_{i=1}^NE[Q_i(\tau)] $$

Since L(t) and Q_i(t) are non-negative quantities, it follows that:

$$ - E[L(0)] + V\sum_{\tau=0}^{t-1}E[p(\tau)] \leq (B+Vp^*)t $$

Dividing the above by Vt and rearranging terms proves the time average penalty bound. A similar argument proves the time average queue size bound.

Related links

 * Drift plus penalty
 * Backpressure routing
 * Lyapunov function
 * Foster's theorem
 * Control-Lyapunov function