WorksMathematics
Distributed Time-Varying Resource Allocation in Open Networks
Abstract
We consider the problem of distributed resource allocation over a team of agents whose active membership changes over time. Each agent's allocation evolves according to its own temporal dynamics, while a shared equality constraint couples all active agents at every instant. For the case of quadratic local objectives, we show that the optimal solution is characterized by a linear system whose coefficient matrix couples a block-tridiagonal temporal structure with a block-diagonal Laplacian capturing the time-varying communication graph. Building on this structure, we develop a distributed forward-backward sweeping algorithm in which each agent resolves its own temporal coupling through a local forward-backward sweep, while the shared resource constraint is resolved through a distributed consensus iteration that is feasible at every iteration. Under a mild diagonal-dominance condition on the temporal coupling, we establish that the optimal allocation at any fixed time converges geometrically to a stationary solution as the horizon grows, and that our distributed algorithm tracks this limit at a matching geometric rate. These results justify a memory-efficient variant of the algorithm in which each agent retains only a bounded window of past history, with the resulting approximation error decaying exponentially in the window size. We validate these theoretical guarantees through numerical simulation, confirming the predicted convergence rates under dynamically changing team membership.
Introduction
We consider distributed resource allocation over an open multi-agent network, where the number and identity of agents may vary over time. Let denote a finite time horizon, and let denote the set of agents active at time , with cardinality . Each active agent maintains a decision variable and a local objective function . Let . We seek to solve the following time-varying optimization problem
where is a (possibly time-varying) shared resource and aggregates the local objectives of active agents at time ,
In our setting, agents may join or leave the network at any time step, so that and are time-varying, and the dimension of varies accordingly. At each time , agents can communicate with their neighbors characterized by a graph . Crucially, each depends on both the current decision and the previous one , coupling every agent’s successive time steps.
This work is supported in part by NSF under CAREER Award 2527059 and AFOSR Grant FA9550-25-1-0247. Thinh T. Doan is with the University of Texas at Austin, Austin, TX, 78712 USA (e-mail: [email protected])
Problem (1) is difficult for two compounding reasons. First, the temporal coupling in each prevents decomposing (1) into independent subproblems, since an agent’s optimal allocation at depends on its allocation at and on the shared constraint across all active agents. Second, the problem grows with the horizon: increasing appends a new cost term and variable block, which alter the optimal solution at every earlier time step. Resolving the entire solution is inefficient as it requires to store the local objectives of all the agents. This raises the central question addressed in this paper:
Under what conditions, problem (1) can be solved efficiently with limited memory?
Main Contributions. In this paper, we study problem (1) when each agent’s local objective is quadratic, and show that its optimal solution is characterized by a linear system whose coefficient matrix couples a block-tridiagonal temporal structure with a block-diagonal Laplacian capturing the time-varying communication graphs. Building on this structure, we develop a distributed forward-backward sweeping algorithm that computes each agent’s optimal allocation using only local computation and communication. Our algorithm resolves the temporal coupling through a local sweep, and the spatial, resource-sharing coupling through a distributed consensus iteration with every step feasibility guarantee. Under a mild diagonal-dominance assumption, we show that the optimal allocation at any fixed time converges geometrically to a stationary solution as the horizon grows, and that our distributed algorithm tracks this limit at a matching geometric rate. This guarantees a memory-efficient variant of the algorithm, in which each agent retains only a bounded window of past history, with the resulting error decaying exponentially in the window size. We validate these guarantees numerically, confirming the predicted convergence rates under dynamically changing team membership.
Motivating Applications
We are motivated by applications of problem (1) to continuous monitoring of unknown environments using multi-robot systems, such as wildfire monitoring or search and rescue of a lost person. In these applications, a team of robots must decide how to allocate its collective sensing or coverage effort across a large region. As a result, the robots divide the area into subareas, each surveyed during a given time slot, with the team’s attention shifting from one subarea to the next as the mission unfolds. This setting exhibits exactly the three structural features that motivate problem (1). First, team composition is not fixed: robots join and leave the active mission as they complete sub-tasks, recharge, or move in and out of communication range, so the number and identity of agents contributing to the allocation vary with time. Second, the shared resource constraint, the total sensing, communication, or coverage budget available to the team, must hold exactly at every instant. Third, each robot’s own allocation is temporally coupled. Because its current assignment affects its position, battery state, or task progress, its allocation at one time slot directly constrains what is achievable at the next. Thus, the current decision must be made with an eye toward its effect on future allocations.
Related Works
Problem (1) is related to the literature on streaming and time-varying optimization studied in [1], which considers an unconstrained, centralized variant of problem (1). This is distinct from the online convex optimization paradigm [2], where a single variable is updated at each step and no notion of smoothing the past arises, and from prediction-correction time-varying optimization [3], where the optimization variable does not grow with time. In this paper, we extend the streaming least-squares framework of [1] to a networked, multi-agent setting with (i) a team of robots whose active membership changes at every time step, and (ii) a shared equality constraint coupling all active robots at each instant.
A separate and complementary line of work studies distributed resource allocation: dividing a fixed quantity of resource among a network of agents, each with a private convex cost, using only local computation and neighbor communication. The foundational approach here is the center-free, weighted-gradient method of Xiao and Boyd [4], in which each node updates its allocation in proportion to the difference between its own marginal cost and those of its neighbors; starting from a feasible point, this update preserves the resource constraint exactly at every iteration, exactly as our inner consensus loop does in Section III. This line was later extended to dynamic (time-varying) communication graphs, most notably by Doan and Olshevsky [5], who give a deterministic distributed protocol whose convergence time scales only quadratically in the network size over an arbitrary sequence of time-varying graphs. These results, however, assume each node’s cost is a static function of its own allocation alone: the graph may vary with time, but the per-node decision variables and their costs do not evolve or couple across time steps.
Our work also relates to the growing literature on open multi-agent systems (OMAS), where agents may enter or leave the network over time. Existing results study OMAS stability through dimension-varying switched-system models and Lyapunov criteria [6], as well as contractive or paracontractive operator frameworks for consensus-type dynamics [7]–[9]. Several consensus protocols have also been developed to handle agent arrivals and departures, including max-median, gossip, ratio-consensus, and acknowledgement-based schemes [10]–[13]. None of these works, however, considers the temporal coupling across time steps that is central to our formulation, so their results do not carry over to the setting studied here.
Notation. We denote by a vector whose entries are . Given a function , we denote by and its partial gradient w.r.t the first and second arguments, respectively. Finally, we present the classic forward-backward sweeping method to solve the equation , where is a tridiagonal matrix
with are block submatrix with proper dimensions. The LU factorization of is , where given as upper and lower diagonal matrix, respectively,
The pivots and multipliers are defined recursively as
With the LU factorization, equation becomes . Let , splits into two triangular systems, followed by . First, we consider . Since is upper diagonal matrix, we can apply a forward iteration to find as follows [14]
Once we find , we apply a backward update, going from to , to compute as follows
Time-Varying Quadratic Optimization in Open Networks
We study problem (1) where each function is quadratic
where are constants and is a regularized parameter. Associating a scalar multiplier with the resource constraint at each time , the Lagrangian of (1) is
Using , the optimality condition of (1) is
For agent active at time , its local cost depends on in two ways across the sum in (1): as the second argument of , and as the first argument of . Note that if is not active at time then we simply have . For convenience, we define
Thus, using (4), we obtain
which by using the optimality condition above gives for all
This condition implies that at any time , agent achieves a consensus on their gradient w.r.t their variable . We next present a matrix form to represent this condition. We introduce the following notation
which gives a matrix form of the consensus condition above
Second, let denote the (weighted) graph Laplacian of . Since is connected (Assumption 1), we have , or . Using , we obtain
Finally, define , , and the block-tridiagonal matrix as in (3). The optimality condition of problem 1 becomes
Distributed Consensus Forward-Backward Sweeping Algorithms
In this section, we present a distributed algorithm, based on a forward-backward sweeping update, to solve (6). Since is block-tridiagonal, it admits an LU factorization , where and are, respectively, block lower- and upper-bidiagonal matrices. Substituting into (6) gives
Introducing the intermediate variable , we split the equation above into two triangular systems: a forward system , and a backward system . Our main idea is to solve the forward system with a distributed consensus iteration, and then recover through a purely local backward update.
Because each agent’s objective is temporally coupled only to itself, and are themselves block-diagonal across agents, and every agent can compute its own entries without any communication. At time , agent locally computes
The proposed distributed consensus forward-backward sweeping method is formally presented in Algorithm 1, whose two main components are distributed consensus forward updates and local backward sweeping. We discuss them in turn below.
Distributed consensus forward updates, implemented in Steps 3–9 of Algorithm 1, mirror the classic distributed consensus-gradient method for solving a static networked resource allocation problem [4]. Here, is agent ’s local gradient at inner iteration . Each agent exchanges its local gradient with its neighbors and forms a consensus update using the weights of the Laplacian matrix (Step 8). The goal of this step is to approximately solve using distributed consensus-gradient steps, so that converges to a value on which every agent’s local gradient value agrees.
Local backward sweeping. After consensus updates, each agent sweeps backward in time to revise its earlier local variables (Step 12). This step uses only agent ’s own locally stored quantities and , and requires no further communication between agents.
Algorithm 1 Distributed Consensus Forward-Backward Sweeping Algorithm
1: for t = 1, ..., T do
2: for all agents i do
3: \tilde{g}_{i,t} \leftarrow g_{i,t} - E_{i,t-1} \tilde{z}_{i,t-1}
4: z_i^{(0)} \leftarrow b_t / |\mathcal{V}_t| for all i \in \mathcal{V}_t
5: for k = 0, ..., K - 1 do
6: r_i^{(k)} \leftarrow V_{i,t}z_i^{(k)} - \tilde{g}_{i,t}
7: Broadcast r_i^{(k)} to neighbors in \mathcal{G}_t
8: z_i^{(k+1)} \leftarrow z_i^{(k)} - \alpha \sum_{j\in\mathcal{N}_{i,t}} L_{t,ij}(r_i^{(k)} - r_j^{(k)})
9: end for
10: z_{i,t} \leftarrow z_i^{(K)}
11: x_{i,t} \leftarrow z_i^{(K)}
12: for \ell = t - 1, ..., 1 do
13: x_{i,\ell} \leftarrow z_{i,\ell} - U_{i,\ell}x_{i,\ell+1}. (Backward sweeping)
14: end for
15: end for
16: end for
17: Output: $\{x_{i,t}\}$
Remark 1. Memory requirement. Because the backward sweep at time relies on and for every earlier , each agent must retain its own local history of these quantities for the full horizon observed so far, giving a per-agent memory footprint that grows as . In the next section, we show that under a mild diagonal-dominance assumption, each agent instead needs to store only a bounded window of its past history, at the cost of a small, explicitly quantified loss in accuracy that decays exponentially in the window size.
Theoretical Results
We now characterize the convergence behavior of Algorithm 1 under the following assumptions.
Assumption 1. For every , is connected and undirected.
Assumption 2. There exist , , such that, for all active ,
This assumption basically represents a weakly temporal coupling condition of the objective function at different time step. To see this, let us recall that , . The condition implies that the temporal coupling linking agent ’s allocation across consecutive time steps be small relative to its own diagonal curvature , specifically . This is structurally the same requirement that underlies the classical convergence theory of Jacobi and Gauss–Seidel iterations for solving a linear system [14]. In particular, these methods split into its diagonal and off-diagonal parts and iterate using only the diagonal’s inverse, and both are guaranteed to converge, from any starting point, whenever is strictly diagonally dominant, i.e. for every row . Diagonal dominance guarantees that the spectral radius of the resulting iteration matrix is strictly less than one, so that errors introduced anywhere in the system are damped, rather than amplified, as they propagate through successive iterations. The condition in (7) is basically equivalent to this diagonal dominance condition.
To study the convergence of Algorithm 1, we denote by the optimal solution of problem (1), where the time horizon is fixed. Our main result is presented as follows.
Proposition 1. Under Assumption 2, there exists a limit such that , for all and . Moreover, generated by Algorithm 1 satisfies
where constants , , , are defined in (11) and (15), respectively. These constants depend on , , , and the algebraic connectivity of the Laplacian .
First, Proposition 1 shows that, as the horizon grows, the time-varying optimization problem in (1) admits a stationary solution at each time , independent of . This is not obvious a priori: each new time step appends a new cost term and a new set of variables to the problem, and in general there is no reason that revising the solution to account for this new information should ever stabilize, rather than continuing to drift indefinitely.
Second, Proposition 1 further shows that the solution produced by the distributed consensus forward-backward sweeping algorithm converges to this same stationary solution at a geometric rate as the horizon grows. The corresponding rate constant depends only on the problem’s weak-coupling parameters, through , the network topology, and the number of inner steps .
One potential drawback of Algorithm 1 is that the backward sweep requires each agent to store its local quantities and for every time step up to , which becomes memory-inefficient when is large. Proposition 1, which shows that these updates converge geometrically, suggests that we can instead limit the number of backward steps without sacrificing too much of the accuracy. We formalize this by bounding the additional error incurred when the sweep is limited to a buffer of size , which keeps both the memory footprint and the computational cost bounded by rather than . The resulting truncated algorithm is a simple modification of Algorithm 1, in which the backward sweep in Steps 11–13 runs for only steps rather than back to .
for , do . (Backward sweeping)
end for
Let . The following corollary presents a bound on the difference between and .
Corollary 1. Under the same conditions as in Proposition 1
for all , where and is some constant.
Proof. The proof of this result follows the same argument as that of Proposition 1, with the corresponding bounds adapted in the obvious way; we therefore omit it for brevity.
Numerical Validation
In this section, we provide numerical simulations to validate the correctness of our algorithm and the theoretical results established in the previous sections. We organize the validation around three questions, addressed in turn: does actually converge to a stationary solution as the horizon grows (Proposition 1)? Does it do so at the predicted geometric rate? And does truncating the backward sweep to a small, fixed buffer (Corollary 1) incur only a small, controlled loss in accuracy?
For our simulation, we consider a total of 20 agents over a horizon of time slots, each with an active window within the horizon (Figure 1). We enforce at least three agents active at every slot to keep each non-trivial. Active agents communicate over a ring graph, with the Laplacian’s off-diagonal entries between neighboring active agents set to . Each agent’s local matrices are drawn as independent perturbations of 1 and 0.6, respectively, with regularization . The coefficient is a smooth, agent-specific sinusoid plus small noise, and the shared budget scales with the active team size plus a slowly varying perturbation. We use consensus iterations per time step with step size . For an ease of exposition, we highlight three agents (agents 7, 8, and 15), chosen randomly to show the results of our simulations.

Figure 1. Agent active profiles over horizon .
Convergence of to is shown in Figure 2. We plot the value of the backward-swept estimate , for agents 7, 8, and 15, as the horizon is increased from up to $T_{\max}=40, at three representative time slots () drawn from the agents’ common active window. Dashed lines mark the corresponding values of , taken as . In every panel, each agent’s trajectory visibly settles onto its dashed reference value well before reaches the horizon’s end, with the largest fluctuations occurring immediately after and essentially disappearing within a number of additional time steps. These plots illustrate the first result of Proposition 1, namely that .

Figure 2. Convergence of to as grows.
Geometric convergence rate of . Figure 3 shows the error on a logarithmic scale, for the same agents and time slots as in Figure 2. The goal is to show the quantitative rate in Proposition 1. As the horizon increases, the error decays approximately linearly on this log scale, which agrees with the geometric decay with a constant rate in our theoretical results.

Figure 3. Geometric convergence rate of as grows.
Finite-buffer truncation . Finally, we investigate the approximation error introduced by finite-memory operation, as characterized in Corollary 1. Specifically, we restrict the backward sweep to steps rather than the full steps used in Algorithm 1. Figure 4 (top) shows the resulting error across different , where denotes the truncated estimate returned with buffer size . The error remains small and roughly uniform across , confirming that limiting the backward sweep to just 5 steps, rather than the full 40, incurs little loss in accuracy. To verify the convergence rate predicted by Corollary 1, Figure 4 (bottom) fixes the representative time and plots this error as a function of the buffer size . As expected, the error decays to zero as increases, and does so linearly on a logarithmic scale, confirming the geometric convergence rate established in our theoretical result. Together, the two panels confirm that a small, horizon-independent buffer suffices for near-optimal accuracy.

Figure 4. Performance of Algorithm 1 under limited buffer .
Conclusion
We formulated streaming resource allocation over a multi-robot team with time-varying membership as a sequence of locally-coupled quadratic programs linked by a per-instant shared resource constraint, showed that the resulting bordered block-tridiagonal KKT system reduces to a scalar marginal-cost consensus condition when robots have no pairwise coupling, and derived a fully distributed algorithm combining consensus-gradient spatial updates with a temporal forward–backward smoothing sweep. We established geometric convergence and a finite-memory error bound, and validated the approach in simulation with dynamically changing team membership. Future work includes extending the framework to nonlinear robot dynamics via a distributed Newton-type update, relaxing the reliance on a connected communication graph at every instant, and validating the approach on a physical multi-robot testbed under realistic communication constraints.
Appendix
In this section, we present the proofs of our main results in Proposition 1 and Corollary 1. We will assume that Assumptions 1 and 2 always hold. Let be the second smallest eigenvalue of the Laplacian .
Recall that the main idea of Algorithm 1 is to solve two systems of equations: a forward system , and a backward system . Indeed, the inner loop of Algorithm 1 is to find , while the backward sweeping update is to compute .
We first state the convergence of the inner loop for the consensus algorithm, which is studied in [5]. Let be the solution of the forward equation and be the output of the consensus step after iterations. Then we have
where is a constant depending on and the coefficients of the local objective functions. Let and .
Proof of Proposition 1
We will leverage the techniques in [5] and [1] to derive the results in Proposition 1. Recall that
where and are the LU factorization of the tridiagonal matrix . Let for all . We observe that for any fixed , the quantities do not depend on the horizon , provided .
To show the results in Proposition 1, we will first established a sequence of intermediate results as follows. First, we show that is bounded for all .
Lemma 1. Under Assumption 2, for all and , where
Proof. Let . We prove, by induction that
where and for .
Base case (): Since , by Assumption 2 and we have
which gives .
Inductive step: Suppose . This implies
Dividing the recursion by ,
By Assumption 2, we have and . Thus, using gives
It remains to show . Our approach is to show for all . By Assumption 2, , which gives
Note that satisfies
We next show that by induction. Base case (): We have . Inductive step: suppose . Consider
Since , the right-hand side is nonnegative. Thus, , which completes our proof.
Lemma 2
Lemma 2. We have for all .
Proof. By Assumption 2 and Lemma 1, we have
By the definition of we have
which gives . Thus, by (11) we have
which concludes our proof.
Lemma 3
Lemma 3. We have and for all , where
Proof. Recall from the forward update that
which by using Lemma 1 gives
Using a standard induction argument, we obtain
To show the bound of we will apply an inductive proof. For the base case, holds. Inductively, for , using Lemma 2,
which concludes our proof.
Proof of Proposition 1. Let be the solution returned by Algorithm 1 under horizon , and recall and for , where is computed once, when time is first processed, and does not depend on . Using this recursion, we consider for all
which by using (Lemma 2), we obtain
At , the preceding relation does not apply directly since . By the triangle inequality and Lemma 3,
which gives
To show the convergence of , we will show it is a Cauchy sequence. For , we consider
which gives
uniformly in . Hence is Cauchy in , therefore it is a convergent sequence. Let the limit point of be . Then we have
We next relate to the true limit of Proposition 1. Let denote the exact solution of the forward equation at time , and let denote the idealized backward sweep obtained by using in place of at every step, i.e. and for . Since likewise does not depend on , the same argument as above applies verbatim to , which is therefore also Cauchy in and converges to , with
Using together with , and define , which satisfies and, for ,
Using (Lemma 2), we obtain
and telescoping from up to exactly as in Lemma 3 gives, uniformly in ,
Letting , and using together with , we obtain
which when combining with (13) gives
This concludes our proof where
References
- [1]T. H. Hamam and J. Romberg, “Streaming solutions for time-varying optimization problems,” IEEE Transactions on Signal Processing, vol. 70, pp. 3582–3597, 2022.arxiv.org/abs/2111.02101
- [2]M. Zinkevich, “Online convex programming and generalized infinitesimal gradient ascent,” in Proceedings of the 20th International Conference on Machine Learning (ICML), 2003, pp. 928–936.
- [3]A. Simonetto, E. Dall’Anese, S. Paternain, G. Leus, and G. B. Giannakis, “Time-varying convex optimization: Time-structured algorithms and applications,” Proceedings of the IEEE, vol. 108, no. 11, pp. 2032–2048, 2020.arxiv.org/abs/2006.08500
- [4]L. Xiao and S. Boyd, “Optimal scaling of a gradient method for distributed resource allocation,” Journal of optimization theory and applications, vol. 129, pp. 469–488, 2006.DOI
- [5]T. T. Doan and A. Olshevsky, “Distributed resource allocation on dynamic networks in quadratic time,” Systems & Control Letters, vol. 99, pp. 57–63, 2017.arxiv.org/abs/1507.07850
- [6]M. Xue, Y. Tang, W. Ren, and F. Qian, “Stability of multi-dimensional switched systems with an application to open multi-agent systems,” Automatica, vol. 146, p. 110644, 2022.DOI
- [7]M. Franceschelli and P. Frasca, “Stability of open multi-agent systems and applications to dynamic consensus,” IEEE Transactions on Automatic Control, vol. 66, no. 5, pp. 2326–2331, 2021.arxiv.org/abs/1906.00890
- [9]D. Deplano, N. Bastianello, M. Franceschelli, and K. H. Johansson, “Stability of paracontractive open multi-agent systems,” in Proc. IEEE Conf. on Decision and Control (CDC), 2024.DOI
- [10]M. Abdelrahim, J. M. Hendrickx, and W. P. M. H. Heemels, “Max-consensus in open multi-agent systems with gossip interactions,” in Proc. IEEE Conf. on Decision and Control (CDC), 2017, pp. 4753–4758.arxiv.org/abs/1709.05793
- [13]E. Makridis, A. Grammenos, G. Oliva, E. Kalyvaniaki, C. N. Hadjicostis, and T. Charalambous, “Average consensus over directed networks in open multi-agent systems with acknowledgement feedback,” in Proc. IEEE Conf. on Decision and Control (CDC), 2024, pp. 3051–3056.arxiv.org/abs/2409.08634
- [14]G. H. Golub and C. F. Van Loan, Matrix Computations, 4th ed. Baltimore, MD, USA: Johns Hopkins University Press, 2013.