ArticleslgStudy

computer science

Lyapunov optimization

Lyapunov optimization is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Lyapunov optimization rather than just read about it. In short: This article describes Lyapunov optimization for dynamical systems. It gives an example application to optimal control in queueing networks.

Key takeaways

  • Lyapunov optimization belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Lyapunov optimization to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Lyapunov optimization from memory before moving on to harder problems.

Reference excerpt

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 dynamic 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. 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∈{0,1,2,…}. Suppose there are N queues in the network, and define the vector of queue backlogs at time t by:

Q(t)=(Q1(t),…,QN(t))

Quadratic Lyapunov functions For each slot t, define:

L(t)=12∑i=1NQi(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:

ΔL(t)=L(t+1)−L(t)

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

Qi(t+1)=max⁡{Qi(t)+ai(t)−bi(t),0} where ai(t) and bi(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:

Qi(t+1)2=(max⁡{Qi(t)+ai(t)−bi(t),0})2⩽(Qi(t)+ai(t)−bi(t))2 Rearranging this inequality, summing over all i, and dividing by 2 leads to:

ΔL(t)⩽B(t)+∑i=1NQi(t)(ai(t)−bi(t))(Eq.1) where:

B(t)=12∑i=1N(ai(t)−bi(t))2 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:

𝔼[B(t)|Q(t)]⩽B Taking conditional expectations of (Eq. 1) leads to the following bound on the conditional expected Lyapunov drift:

𝔼[ΔL(t)|Q(t)]⩽B+∑i=1NQi(t)𝔼[ai(t)−bi(t)|Q(t)](Eq.2)

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 ε>0:

𝔼[ai(t)−bi(t)|Q(t)]⩽−ε 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.

Theorem (Lyapunov Drift). Suppose there are constants B⩾0,ε>0 such that for all t and all possible vectors Q(t) the conditional Lyapunov drift satisfies: 𝔼[ΔL(t)|Q(t)]⩽B−ε∑i=1NQi(t). Then for all slots t>0 the time average queue size in the network satisfies: 1t∑τ=0t−1∑i=1N𝔼[Qi(τ)]⩽Bε+𝔼[L(0)]εt. Proof. Taking expectations of both sides of the drift inequality and using the law of iterated expectations yields:

𝔼[ΔL(t)]⩽B−ε∑i=1N𝔼[Qi(t)] Summing the above expression over τ∈{0,1,…,t−1} and using the law of telescoping sums gives:

𝔼[L(t)]−𝔼[L(0)]⩽Bt−ε∑τ=0t−1∑i=1N𝔼[Qi(τ)] 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 throughout utility subject to stability. To stabilize the network while minimizing the time average of the penalty 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:

ΔL(t)+Vp(t) where V 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 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 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. A generalization of the Lyapunov drift theorem of the previous section is important in this context. For simplicity of exposition, assume p(t) is bounded from below:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Lyapunov optimization

Start with the simplest possible case. Write down what Lyapunov optimization claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Lyapunov optimization before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Lyapunov optimization ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Lyapunov optimization

In research
Lyapunov optimization appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Lyapunov optimization in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Lyapunov optimization is common in secondary-school and first-year university syllabi. It links to neighbouring topics Networking algorithms, Queueing theory, so understanding it makes those chapters shorter.
In everyday life
Look for Lyapunov optimization outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Lyapunov optimization” →

How to study Lyapunov optimization in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Lyapunov optimization means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Lyapunov optimization out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Lyapunov optimization in simple terms?

This article describes Lyapunov optimization for dynamical systems. It gives an example application to optimal control in queueing networks.

Why does Lyapunov optimization matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Lyapunov optimization?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Lyapunov optimization.

Tags

  • Networking algorithms
  • Queueing theory

Keep exploring