Docsity

Notes on Decomposition Methods-Optimization Techniques-Lecture Notes, Study notes of Convex Optimization

Toggle sidebar
bg1
Notes on Decomposition Methods
Stephen Boyd, Lin Xiao, Almir Mutapcic, and Jacob Mattingley
Notes for EE364B, Stanford University, Winter 2006-07
February 12, 2007
Contents
1 Primal decomposition 3
1.1 Simple example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 Dual decomposition 7
2.1 Simple example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Decomposition with constraints 11
3.1 Primal decomposition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.2 Dual decomposition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.3 Simple example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.4 Coupling constraints and coupling variables . . . . . . . . . . . . . . . . . . 15
4 More general decomposition structures 17
4.1 General examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.2 Framework for decomposition structures . . . . . . . . . . . . . . . . . . . . 19
4.3 Primal decomposition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.4 Dual decomposition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.5 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5 Rate control 24
5.1 Dual decomposition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.2 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6 Single commodity network flow 28
6.1 Dual decomposition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.2 Analogy with electrical networks . . . . . . . . . . . . . . . . . . . . . . . . . 30
6.3 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
1
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24

Partial preview of the text

Download Notes on Decomposition Methods-Optimization Techniques-Lecture Notes and more Study notes Convex Optimization in PDF only on Docsity!

Notes on Decomposition Methods

 - Notes for EE364B, Stanford University, Winter 2006- Stephen Boyd, Lin Xiao, Almir Mutapcic, and Jacob Mattingley - February 12, 
  • 1 Primal decomposition Contents
    • 1.1 Simple example
  • 2 Dual decomposition
    • 2.1 Simple example
  • 3 Decomposition with constraints
    • 3.1 Primal decomposition
    • 3.2 Dual decomposition
    • 3.3 Simple example
    • 3.4 Coupling constraints and coupling variables
  • 4 More general decomposition structures
    • 4.1 General examples
    • 4.2 Framework for decomposition structures
    • 4.3 Primal decomposition
    • 4.4 Dual decomposition
    • 4.5 Example
  • 5 Rate control
    • 5.1 Dual decomposition
    • 5.2 Example
  • 6 Single commodity network flow
    • 6.1 Dual decomposition
    • 6.2 Analogy with electrical networks
    • 6.3 Example

Decomposition is a general approach to solving a problem by breaking it up into smaller ones and solving each of the smaller ones separately, either in parallel or sequentially. (When it is done sequentially, the advantage comes from the fact that problem complexity grows more than linearly.) Problems for which decomposition works in one step are called (block) separable, or trivially parallelizable. As a general example of such a problem, suppose the variable x can be partitioned into subvectors x 1 ,... , xk, the objective is a sum of functions of xi, and each constraint involves only variables from one of the subvectors xi. Then evidently we can solve each problem involving xi separately (and in parallel), and then re-assemble the solution x. Of course this is a trivial, and not too interesting, case. A more interesting situation occurs when there is some coupling or interaction between the subvectors, so the problems cannot be solved independently. For these cases there are techniques that solve the overall problem by iteratively solving a sequence of smaller problems. There are many ways to do this; in this note we consider some simple examples that illustrate the ideas. Decomposition in optimization is an old idea, and appears in early work on large-scale LPs from the 1960s [DW60]. A good reference on decomposition methods is chapter 6 of Bertsekas [Ber99]. Some recent reference on decomposition applied to networking problems are Kelly et al [KMT97] and Chiang et al [CLCD07]. The idea of decomposition comes up in the context of solving linear equations, but goes by other names such as block elimination, Schur complement methods, or (for special cases) matrix inversion lemma (see [BV04, App. C]). The core idea, i.e., using efficient methods to solve subproblems, and combining the results in such a way as to solve the larger problem, is the same, but the techniques are a bit different. The original primary motivation for decomposition methods was to solve very large prob- lems that were beyond the reach of standard techniques, possibly using multiple processors. This remains a good reason to use decomposition methods for some problems. But other reasons are emerging as equally (or more) important. In many cases decomposition methods yield decentralized solution methods. Even if the resulting algorithms are slower (in some cases, much slower) than centralized methods, decentralized solutions might be prefered for other reasons. For example, decentralized solution methods can often be translated into, or interpreted as, simple protocols that allow a collection of subsystems to coordinate their actions to achieve global optimality. In §1, we describe the simplest decomposition method, which is called primal decompo- sition since the subsystems coordinate to choose the values of some primal variables. In § 2 we describe dual decomposition, in which dual variables (prices) are manipulated to solve the global problem. We explore general decomposition structures, and the associated de- composition methods, in §4. In §5 and §6 we consider two more specific examples in more detail.

there is a subgradient of f 1 of the form (0, g 1 ), and not surprisingly, g 1 is a subgradient of φ 1 at y. We can carry out the same procedure to find a subgradient g 2 ∈ ∂φ 2 (y) Then g 1 + g 2 is a subgradient of φ 1 + φ 2 at y. We can solve the master problem by a variety of methods, including bisection (if the di- mension of y is one), gradient or quasi-Newton methods (if the functions are differentiable), or subgradient, cutting-plane, or ellipsoid methods (if the functions are nondifferentiable). This basic decomposition method is called primal decomposition because the master algo- rithm manipulates (some of the) primal variables. When we use a subgradient method to solve the master problem, we get a very simple primal decomposition algorithm.

repeat Solve the subproblems (possibly in parallel). Find ¯x 1 that minimizes f 1 (x 1 , y), and a subgradient g 1 ∈ ∂φ 1 (y). Find ¯x 2 that minimizes f 2 (x 2 , y), and a subgradient g 2 ∈ ∂φ 2 (y). Update complicating variable. y := y − αk(g 1 + g 2 ).

Here αk is a step length that can be chosen in any of the standard ways. We can interpret this decomposition method as follows. We have two subproblems, with private variables or local variables x 1 and x 2 , respectively. We also have the complicating variable y which appears in both subproblems. At each step of the master algorithm the complicating variable is fixed, which allows the two subproblems to be solved independently. From the two local solutions, we construct a subgradient for the master problem, and using this, we update the complicating variable. Then we repeat the process. When a subgradient method is used for the master problem, and φ 1 and φ 2 are differen- tiable, the update has a very simple interpretation. We interpret g 1 and g 2 as the gradients of the optimal value of the subproblems, with respect to the complicating variable y. The update simply moves the complicating variable in a direction of improvement of the overall objective. The primal decomposition method works well when there are few complicating variables, and we have some good or fast methods for solving the subproblems. For example, if one of the subproblems is quadratic, we can solve it analytically; in this case the optimal value is also quadratic, and given by a Schur complement of the local quadratic cost function. (But this trick is so simple that most people would not call it decomposition.) The basic primal decomposition method described above can be extended in several ways. We can add separable constraints, i.e., constraints of the form x 1 ∈ C 1 , x 2 ∈ C 2. In this case (and also, in the case when dom fi is not all vectors) we have the possibility that φi(y) = ∞ (i.e., y 6 ∈ dom φ) for some choices of y. In this case we find a cutting-plane that separates y from dom φ, to use in the master algorithm.

−1 −0.5 0 0.5 1

1

2

3

y

φ 1 (y) φ 2 (y) φ 1 (y) + φ 2 (y)

Figure 1: Objective function of master problem (i.e., φ 1 + φ 2 ) and decomposed components (φ 1 and φ 2 ) as a function of y.

1.1 Simple example

We illustrate primal decomposition with a simple example, with a single (scalar) complicating variable. The problem has the form (1), where f 1 and f 2 are piecewise-linear convex functions of x 1 and y, and x 2 and y, respectively. For the particular problem instance we consider, x 1 ∈ R^20 , x 2 ∈ R^20 , and f 1 and f 2 are each the maximum of 100 affine functions. Since the complicating variable y is scalar, we can optimize over y using a bisection algorithm. Figure 1 shows φ 1 , φ 2 , and φ 1 + φ 2 as a function of y. The optimal value of the problem is p⋆^ ≈ 1 .71, achieved for y⋆^ ≈ 0 .14. Figure 2 shows the progress of a bisection method for minimizing φ 1 (y) + φ 2 (y), with initial interval [− 1 , 1]. At each step, the two subproblems are solved separately, using the current value of y.

2 Dual decomposition

We can apply decomposition to the problem (1) after introducing some new variables, and working with the dual problem. We first express the problem as

minimize f (x) = f 1 (x 1 , y 1 ) + f 2 (x 2 , y 2 ) subject to y 1 = y 2 ,

by introducing a new variable and equality constraint. We have introduced a local version of the complicating variable y, along with a consistency constraint that requires the two local versions to be equal. Note that the objective is now separable, with the variable partition (x 1 , y 1 ) and (x 2 , y 2 ). Now we form the dual problem. The Lagrangian is

L(x 1 , y 1 , x 2 , y 2 , ν) = f 1 (x 1 , y 1 ) + f 2 (x 2 , y 2 ) + νT^ y 1 − νT^ y 2 ,

which is separable. The dual function is

g(ν) = g 1 (ν) + g 2 (ν),

where g 1 (ν) = inf x 1 ,y 1

( f 1 (x 1 , y 1 ) + νT^ y 1

) , g 2 (ν) = inf x 2 ,y 2

( f 2 (x 2 , y 2 ) − νT^ y 2

) .

Note that g 1 and g 2 can be evaluated completely independently, e.g., in parallel. Also note that g 1 and g 2 can be expressed in terms of the conjugates of f 1 and f 2 :

g 1 (ν) = −f 1 ∗ (0, −ν), g 2 (ν) = −f 2 ∗ (0, ν).

The dual problem is

maximize g 1 (ν) + g 2 (ν) = −f 1 ∗ (0, −ν) − f 2 ∗ (0, ν), (6)

with variable ν. This is the master problem in dual decomposition. The master algorithm solves this problem using a subgradient, cutting-plane, or other method. To evaluate a subgradient of −g 1 (or −g 2 ) is easy. We find ¯x 1 and ¯y 1 that minimize f 1 (x 1 , y 1 ) + νT^ y 1 over x 1 and y 1. Then a subgradient of −g 1 at ν is given by −y¯ 1. Similarly, if ¯x 2 and ¯y 2 minimize f 2 (x 2 , y 2 ) − νT^ y 2 over x 2 and y 2 , then a subgradient of −g 2 at ν is given by ¯y 2. Thus, a subgradient of the negative dual function −g is given by ¯y 2 − y¯ 1 , which is nothing more than the consistency constraint residual. If we use a subgradient method to solve the master problem, the dual decomposition algorithm has a very simple form.

repeat Solve the subproblems (possibly in parallel). Find x 1 and y 1 that minimize f 1 (x 1 , y 1 ) + νT^ y 1. Find x 2 and y 2 that minimize f 2 (x 2 , y 2 ) − νT^ y 2. Update dual variables (prices). ν := ν − αk(y 2 − y 1 ).

Here αk is a step size which can be chosen several ways. If the dual function g is differentiable, then we can choose a constant step size, provided it is small enough. Another choice in this case is to carry out a line search on the dual objective. If the dual function is nondifferentiable, we can use a diminishing nonsummable step size, such as αk = α/k. At each step of the dual decomposition algorithm, we have a lower bound on p⋆, the optimal value of the original problem, given by

p∗^ ≥ g(ν) = f 1 (x 1 , y 1 ) + νT^ y 1 + f 2 (x 2 , y 2 ) − νT^ y 2.

where x 1 , y 1 , x 2 , y 2 are the iterates. Generally, the iterates are not feasible for the original problem, i.e., we have y 2 − y 1 6 = 0. (If they are feasible, we have maximized g.) A reasonable guess of a feasible point can be constructed from this iterate as

(x 1 , y¯), (x 2 , y¯),

where ¯y = (y 1 + y 2 )/2. In other words, we replace y 1 and y 2 (which are different) with their average value. (The average is the projection of (y 1 , y 2 ) onto the feasible set y 1 = y 2 .) This gives an upper bound on p⋆, given by

p⋆^ ≤ f 1 (x 1 , y¯) + f 2 (x 2 , ¯y).

A better feasible point can be found by replacing y 1 and y 2 with their average, and then solv- ing the two subproblems (2) and (3) encountered in primal decomposition, i.e., by evaluating φ 1 (¯y) + φ 2 (¯y). This gives the bound

p⋆^ ≤ φ 1 (¯y) + φ 2 (¯y).

Dual decomposition has an interesting economic interpretation. We imagine two sepa- rate economic units, each with its own private variables and cost function, but also with some coupled variables. We can think of y 1 as the amounts of some resources consumed by the first unit, and y 2 as the amounts of some resources generated by the second unit. Then, the consistency condition y 1 = y 2 means that supply is equal to demand. In primal decomposition, the master algorithm simply fixes the amount of resources to be transfered from one unit to the other, and updates these fixed transfer amounts until the total cost is minimized. In dual decomposition, we interpret ν as a set of prices for the resources. The master algorithm sets the prices, not the actual amount of the transfer from one unit to the other. Then, each unit independently operates in such a way that its cost, including the cost of the resource transfer (or profit generated from it), is minimized. The dual decompo- sition master algorithm adjusts the prices in order to bring the supply into consistency with the demand. In economics, the master algorithm is called a price adjustment algorithm, or tatonnement procedure. There is one subtlety in dual decomposition. Even if we do find the optimal prices ν⋆, there is the question of finding the optimal values of x 1 , x 2 , and y. When f 1 and f 2 are strictly convex, the points found in evaluating g 1 and g 2 are guaranteed to converge to optimal, but in general the situation can be more difficult. (For more on finding the primal solution

1.6 0 5 10 15

2

k

better bound worse bound g(ν)

Figure 4: Convergence of dual function (lower bound), and simple and better upper bounds.

3 Decomposition with constraints

So far, we’ve considered the case where two problems would be separable, except for some complicating variables that appear in both subproblems. We can also consider the case where the two subproblems are coupled via constraints that involve both sets of variables. As a simple example, suppose our problem has the form

minimize f 1 (x 1 ) + f 2 (x 2 ) subject to x 1 ∈ C 1 , x 2 ∈ C 2 h 1 (x 1 ) + h 2 (x 2 )  0.

Here C 1 and C 2 are the feasible sets of the subproblems, presumably described by linear equalities and convex inequalities. The functions h 1 : Rn^ → Rp^ and h 2 : Rn^ → Rp^ have components that are convex. The subproblems are coupled via the p constraints that involve both x 1 and x 2. We refer to these as complicating constraints (since without them, the problems involving x 1 and x 2 can be solved separately).

3.1 Primal decomposition

To use primal decomposition, we can introduce a variable t ∈ Rp^ that represents the amount of the resources allocated to the first subproblem. As a result, −t is allocated to the second subproblem. The first subproblem becomes

minimize f 1 (x 1 ) subject to x 1 ∈ C 1 , h 1 (x 1 )  t,

and the second subproblem becomes

minimize f 2 (x 2 ) subject to x 2 ∈ C 2 , h 2 (x 2 )  −t.

Let φ 1 (t) and φ 2 (t) denote the optimal values of the subproblems (8) and (8), respectively. Evidently the original problem (7) is equivalent to the master problem of minimizing φ(t) = φ 1 (t) + φ 2 (t) over the allocation vector t. These subproblems can be solved separately, when t is fixed. Not surprisingly, we can find a subgradient for the optimal value of each subproblem from an optimal dual variable associated with the coupling constraint. Let p(z) be the optimal value of the convex optimization problem

minimize f (x) subject to x ∈ X, h(x)  z,

and suppose z ∈ dom p. Let λ(z) be an optimal dual variable associated with the constraint h(x)  z. Then, −λ(z) is a subgradient of p at z. To see this, we consider the value of p at

A subgradient of −g 1 at λ is, naturally, h 1 (¯x 1 ), where ¯x 1 is any solution of subproblem (10). To find a subgradient of g, the master problem objective, we solve both subproblems, to get solutions ¯x 1 and ¯x 2 , respectively. A subgradient of −g is then h 1 (¯x 1 ) + h 2 (¯x 2 ). The master algorithm updates (the price vector) λ based on this subgradient. If we use a projected subgradient method to update λ we get a very simple algorithm.

repeat Solve the subproblems (possibly in parallel). Solve (10) to find an optimal ¯x 1. Solve (11) to find an optimal ¯x 2. Update dual variables (prices). λ := (λ + αk(h 1 (¯x 1 ) + h 2 (¯x 2 )))+.

At each step we have a lower bound on p⋆, given by

g(λ) = g 1 (λ) + g 2 (λ) = f 1 (x 1 ) + λT^ h 1 (x 1 ) + f 2 (x 2 ) + λT^ h 2 (x 2 ).

The iterates in the dual decomposition method need not be feasible, i.e., we can have h 1 (x 1 )+ h 2 (x 2 ) 6  0. At the cost of solving two additional subproblems, however, we can (often) construct a feasible set of variables, which will give us an upper bound on p⋆. When h 1 (x 1 ) + h 2 (x 2 ) 6  0, we define t = (h 1 (x 1 ) − h 2 (x 2 ))/ 2 , (12)

and solve the primal subproblems (8) and (9). This is nothing more than projecting the current (infeasible) resources used, h 1 (x 1 ) and h 2 (x 2 ), onto the set of feasible resource allo- cations, which must sum to no more than 0. As in primal decomposition, it can happen that t 6 ∈ dom φ. But when t ∈ dom φ, this method gives a feasible point, and an upper bound on p⋆.

3.3 Simple example

We look at a simple example to illustrate decomposition with constraints. The problem is a (strictly convex) QP with a pair of coupling resource constraints. It can be split into two subproblems, with x 1 ∈ R^20 , x 2 ∈ R^20. Each subproblem has 100 linear inequalities, and the two subproblems share 2 complicating linear inequalities. The optimal value of the problem is p⋆^ ≈ − 1 .33. Figure 5 shows the progress of primal decomposition for the problem, using a subgradient method with step size αk = 0.1. Figure 6 shows the resources consumed by the first of the two subproblems. We use the same example to illustrate dual decomposition, using a subgradient method, with step size αk = 0. 5 /k, to solve the master problem. Figure 7 shows the evolution of the resource prices. At each step we generate a feasible point for the original problem using the fixed resource allocation (12), and solving the primal subproblems (8) and (9). The associated upper bound on p⋆, which we denote fˆ , and the lower bound obtained from the

0 20 40 60 80 100 10 −

10 −

10 −

10 −

100

k

(f k) −

p

⋆

Figure 5: Suboptimality versus iteration number k for primal decomposition.

0 20 40 60 80 100 −0.

−0.

0

k

Figure 6: First subsystem resource allocation versus iteration number k for primal decomposition.

−1.8 0 5 10 15 20 25 30

−1.

−1.

−1.

−

−0.

−0.

−0.

k

g(λ) fˆ

Figure 8: Upper and lower bounds versus iteration number k, for dual decomposi- tion algorithm.

0 5 10 15 20 25 30

10 −

10 −

10 −

10 −

100

101

k

p⋆^ − g(λ) fˆ − g(λ)

Figure 9: Gap between upper bound and p⋆, and gap between upper bound and lower bound (i.e., g(λ)) versus iteration number k, for dual decomposition algorithm.

Figure 10: Simplest decomposition structure.

Figure 11: Chain structure, with three subsystems and two coupling constraints.

4 More general decomposition structures

So far we have studied the case where there are two subsystems that are coupled by shared variables, or coupling constraints. Clearly we can have more than one subproblem, with various subsets of them coupled in various ways. For example, the variables might be par- titioned into subvectors, some of which are local (i.e., appear in one subproblem only) and some of which are complicating (i.e., appear in more than one subproblem). This decom- position structure can be represented by a hypergraph. The nodes are associated with the subproblems, which involve local variables, objective terms, and local constraints. The hy- peredges or nets are associated with complicating variables or constraints. If a hyperedge is adjacent to only two nodes, we call it a link. A link corresponds to a shared variable or constraint between the two subproblems represented by the nodes. The simplest possible decomposition structure consists of two subsystems and some coupling between them, as shown in figure 10. In this figure the subsystems are shown as the boxes labeled 1 and 2; the coupling between them is shown as the link connecting the boxes. Figure 11 shows another simple decomposition structure with three subsystems, labeled 1, 2, and 3. This problem consists of three subproblems, with some coupling between sub- problems 1 and 2, and some coupling between subproblems 2 and 3. Adopting the canonical form for coupling, i.e., as consistency constraints, we can write the associated problem as

minimize f 1 (x 1 , y 1 ) + f 2 (x 2 , y 2 , y 3 ) + f 3 (x 3 , y 4 ) subject to (x 1 , y 1 ) ∈ C 1 , (x 2 , y 2 , y 3 ) ∈ C 2 , (x 3 , y 4 ) ∈ C 3 y 1 = y 2 , y 3 = y 4.

Subsystem 1 has private or local variable x 1 , and public or interface variable y 1. Subsystem 2 has local variable x 2 , and interface variables y 2 and y 3. Subsystem 3 has local variable x 3 , and interface variable y 4. This decomposition structure has two edges: the first edge corresponds to the consistency constraint y 1 = y 2 , and the second edge corresponds to the consistency constraint y 3 = y 4.

each node is coupled to the node before and after, by the state equations. Thus, the optimal control problem decomposition structure is represented by a simple linear chain. Decomposition structure arises in many applications in network optimization. For exam- ple, we can partition a network into subnetworks, that interact only via common flows, or their boundary connections. We can partition a multi-commodity flow problem into a set of single-commodity flow problems coupled by shared resources. the capacities of the links. In a flow control problem, we can view each flow in a network as a subsystem; these flows are coupled by sharing the capacities of the links. In some image processing problems, variables associated with pixels are only coupled to the variables associated with some of their neighbors. In this case, any strip with a width exceeding the interaction distance between pixels, and which disconnects the image plane can be taken as a set of complicating variables. You can solve an image restoration problem, then, by fixing a strip (say, down the middle), and then (in parallel) solving the left and right image problems. (This can clearly be done recursively as well.) Decomposition structure arises in hierarchical design. Suppose we are designing (via convex optimization) a large circuit (say) that consists of some subcircuits. Each subcircuit has many private variables, and a few variables that interact with other subcircuits. For example, the device dimensions inside each subcircuit might be local or private variables; the shared variables correspond to electrical connections between the subcircuits (e.g., the load presented to one subcircuit from another) or objectives or constraint that couple them (e.g., a total power or area limit). At each step of algorithm in primal decomposition, we fix the coupling variables, and then design the subcircuits (separately) to meet these fixed specifications on their boundaries. We then update the coupling variables in such a way that the total cost (say, power) eventually is minimized. In dual decomposition, we allow each subcircuit to choose its own values for its boundary variables, but add an extra cost, based on prices, to account for its effects on the overall circuit. These prices are updated to bring the design into consistency.

4.2 Framework for decomposition structures

In this section we describe decomposition with a general structure in more detail. We have K subsystems. Subsystem i has private variables xi ∈ Rni^ , public variables yi ∈ Rpi^ , objective function fi : Rni^ × Rpi^ , and local constraint set Ci ⊆ Rni^ × Rpi^. The overall objective is ∑K i=1 fi(xi, yi), and the local constraints are (xi, yi)^ ∈ Ci. These subsystems are coupled through constraints that require various subsets of the components of the public variables to be equal. (Each of these subsets corresponds to a hyperedge or net in the decomposition structure.) To describe this we collect all the public variables together into one vector variable y = (y 1 ,... , yK ) ∈ Rp, where p = p 1 + · · · + pK is the total number of (scalar) public variables. We use the notation (y)i to denote the ith (scalar) component of y, for i = 1,... , p (in order to distinguish it from yi, which refers to the portion of y associated with subsystem i). We suppose there are N nets, and we introduce a vector z ∈ RN^ that gives the common values of the public variables on the nets. We can express the coupling constraints as y = Ez,

where E ∈ Rp×N^ is the matrix with

Eij =

{ 1 (y)i is in net j 0 otherwise.

The matrix E specifies the netlist, or set of hyperedges, for the decomposition structure. We will let Ei ∈ Rpi×N^ denote the partitioning of the rows of E into blocks associated with the different subsystems, so that yi = Eiz. The matrix Ei is a 0-1 matrix that maps the vector of net variables into the public variables of subsystem i. Our problem then has the form

minimize

∑K i=1 fi(xi, yi) subject to (xi, yi) ∈ Ci, i = 1,... , K yi = Eiz, i = 1,... , K,

with variables xi, yi, and z. We refer to z as the vector of (primal) net variables.

4.3 Primal decomposition

In primal decomposition, at each iteration we fix the vector z of net variables, and we fix the public variables as yi = Eiz. The problem is now separable; each subsystem can (separately) find optimal values for its local variables xi. Let φi(yi) denote the optimal value of the subproblem minimize fi(xi, yi) subject to (xi, yi) ∈ Ci,

with variable xi, as a function of yi. The original problem (14) is equivalent to the primal master problem minimize φ(z) =

∑K i=1 φi(Eiz),

with variable z. To find a subgradient of φ, we find gi ∈ ∂φi(yi) (which can be done separately). We then have

g =

∑^ K i=

EiT gi ∈ ∂φ(z).

This formula has a simple interpretation: To find a subgradient for the net variable zi, we collect and sum the subgradients over all components of the public variables adjacent to net i. If the master problem is solved using a subgradient method, we have the following algo- rithm.

repeat Distribute net variables to subsystems. yi := Eiz, i = 1,... , K. Optimize subsystems (separately). Solve subproblems (15) to find optimal xi, and gi ∈ ∂φi(yi), i = 1,... , K.