Next Article in Journal
Cross-Domain Approach for Automated Thyroid Classification Using Diff-Quick Images
Next Article in Special Issue
Practical Fixed-Time Tracking Control for Strict-Feedback Nonlinear Systems with Flexible Prescribed Performance
Previous Article in Journal
MultS-ORB: Multistage Oriented FAST and Rotated BRIEF
Previous Article in Special Issue
Dynamical Analysis and Optimization of Combined Vibration Isolator with Time Delay
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Prescribed-Time Consensus Algorithm for Distributed Time-Varying Optimization Based on Multiagent Systems

1
School of Science, Zhejiang University of Science and Technology, Hangzhou 310023, China
2
College of Engineering, Zhejiang Normal University, Jinhua 321004, China
3
College of Mathematics and Computer Science, Zhejiang Normal University, Jinhua 321004, China
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(13), 2190; https://doi.org/10.3390/math13132190
Submission received: 3 June 2025 / Revised: 30 June 2025 / Accepted: 3 July 2025 / Published: 4 July 2025

Abstract

This paper presents a distributed optimization algorithm for time-varying objective functions utilizing a prescribed-time convergent multi-agent system within undirected communication networks. Departing from conventional time-invariant optimization paradigms with static optimal solutions, our approach specifically addresses the challenge of tracking dynamic optimal trajectories in evolving environments. A novel continuous-time distributed optimization algorithm is developed based on prescribed-time consensus, guaranteeing the consensus attainment among agents within a user-defined timeframe while asymptotically converging to the time-dependent optimal solution. The proposed methodology enables explicit predetermination of convergence duration, representing a significant advancement over existing asymptotic convergence methods. Moreover, two simulation examples on the rendezvous problem and multi-robots control are presented to validate the theoretical results, exhibiting precise time-controlled convergence characteristics and effective tracking performance for time-varying optimization targets.

1. Introduction

Distributed optimization is widely encountered in various areas, such as optimal control [1], Nash equilibrium [2] and smart grids [3]. To deal with these optimization problems, a variety of distributed optimization methods grounded on multi-agent systems have been designed. For example, the classical optimization methods include the alternating direction multiplier method [4], push-sum method [5], Lagrangian multiplier method [6], and so on. In addition, there are distributed optimization methods based on control theory [7,8,9]. Note that the aforementioned works are concentrated on distributed optimization problems with time-independent cost functions and searching for some constant optimal solutions, i.e., the cost functions and optimal solutions are independent of time.
Generally, time-varying optimization problems appear in a large amount of practical applications because the local performance functions or the constraints of engineering technology might evolve over time, such as in time-varying environment allocation [10], network traffic management [11], and optimal matching and formation of multi-robot systems [12]. In such cases, for time-varying distributed optimization, it is required to track an optimal trajectory instead of some fixed points, which is more challenge in comparison with time-invariant optimization problems. Recently, time-varying distributed optimization has attracted many researchers’ increasing attention. For example, ref. [13] proposes a prediction-correction method to deal with a matter of unconstrained optimization subject to time-varying objective functions. With the addition of a term of Newton correction, ref. [14] extends the prediction-correction method [13] into a continuous-time multi-agent system for addressing time-varying distributed optimization problems with inequality constraints. Furthermore, ref. [15] proposes an interior-point method on account of a log-barrier penalty function for general time-varying constraints with an exponential convergent rate to optimal solutions.
To cope with time-varying optimization problems with time-dependent quadratic cost functions, ref. [16] develops a distributed gradient searching approach to track optimal trajectories. To solve a bounded constraint, ref. [17] presents a distributed projected-gradient algorithm, which is convergent to a neighborhood of optimal solutions asymptotically. Furthermore, in order to track and follow the exact time-varying optimal solutions, ref. [18] proposes a distributed protocol based on sliding control. In practical applications, there are expectations that the convergence can be arrived within a finite time for some requirements. For example, a group of robots are required to achieve an expected formation, and preserve signal connectivity in finite time or fixed time in the meantime, minimizing the cost/energy functions [19,20,21,22,23]. However, the aforementioned distributed optimization methods are only capable of reaching agreement over infinite time. In particular, ref. [20] investigated a finite-time consensus tracking control problem in uncertain nonlinear multi-agent systems, showing that the all signals remain semi-global practical finite-time stable, and the tracking errors converge to a neighborhood of the origin in finite time. However, the time for reaching consensus is not given explicitly. Ref. [19] develops a distributed law to achieve a finite-time consensus, where the consensus time heavily counts on agents’ original states. To overcome these drawbacks, on the basis of fixed-time stability [24], fixed-time convergent algorithms are presented in [23,25] for time-dependent distributed optimization. In these algorithms, the time for achieving fixed-time consensus is independent of initial conditions.
However, the upper bound of settling time functions for both distributed fixed-time and finite-time algorithms is dominated by the controller parameters, communication networks, and number of agents. For these limitations, some topics on prescribed-time consensus for nonlinear systems have been developed recently. The notion of prescribed-time stability can be found in [26,27,28,29], where the dynamic system can reach at the state agreement in a preset time. For example, ref. [26] proposes a consensus-based algorithm to enable all agents to reach the Nash equilibrium within a prescribed time. Inspired by these observations, a prescribed-time convergent algorithm is designed for distributed optimization with time-varying cost functions in this paper.
The main contributions of this paper are summarized as follows. First, the time-varying distributed optimization approach proposed herein generalizes prior works [4,6,7,30,31,32] on time-invariant distributed optimization. Moreover, the time-varying objective functions in [10] can be regarded as a special case of this framework. Second, the proposed algorithm allows arbitrary initial conditions and relaxes bound constraints on the optimal state, in contrast to the distributed optimization algorithms in [17,22,33]. Specifically, ref. [33] requires initial states to be bounded, while [17,22] necessitate bounded derivatives of optimal solutions. Third, the presented algorithm achieves prescribed-time consensus with a preset settling time, in contrast to the infinite-time consensus approaches in [13,14,15,16,17,18,33]; the finite-time consensus methods in [19,22,34] with the settling time function depending on original conditions; and the fixed-time consensus methods in [23,35] with the settling time governed by control parameters, number of agents, and communication network.

2. Preliminaries

2.1. Notations

Let R and R + be the real number set and nonnegative real number set. Let 1 N , 0 N be the column vectors, where all elements in the vectors are 1 and 0, respectively. I N R N × N represents the identity matrix. The superscripts ( · ) and · 2 stand for the transpose and Euclidean norm, respectively. For ϵ R N , we denote | ϵ | = ( | ϵ 1 | , | ϵ 2 | , , | ϵ N | ) and sgn ( ϵ ) = ( sgn ( ϵ 1 ) , sgn ( ϵ 2 ) , , sgn ( ϵ N ) ) , in which the symbol of sgn ( · ) is the abbreviation for the signum function. The symbol of λ 2 ( L ) represents the second smallest eigenvalue of the matrix L. Let M N be the Kronecker product of matrices M and N .

2.2. Graph Theory

Consider a multi-agent system that contains N agents. The graph G = ( V , E , A ) is modeled to describe the interaction among agents, where V = { l 1 , l 2 , , l N } is the set of vertexes, E { ( l i , l j ) | l i , l j V , l i l j } with | E | = p is the set of edges, and A = [ a i j ] q × q is the adjacent matrix. In A , its entry a i j = 1 when ( l j , l i ) E , otherwise a i j = 0 . Let node l i s neighbors be N i = { l j ( l j , l i ) E } . The edge ( l j , l i ) ( ( l j , l i ) E ) indicates that the information can be transmitted between node l i and node l j . In addition, a path is defined when there is an edge sequence between node l k 1 and node l k j in the manner of ( l k 1 , l k 2 ) , ( l k 2 , l k 3 ) , , ( l k j 1 , l k j ) . An undirected graph is deemed connected if there exists a path between any pairs of vertexes. Let D = [ D i j ] p × q be the incidence matrix, and it is represented as h i k = 1 when the node i is the beginning of an edge ( i , k ) , and h i k = 1 when the node i is the ending of an edge ( i , k ) , otherwise h i k = 0 . L = [ L i j ] q × q is the Laplacian matrix associated with graph G , where its elements are represented as L i i = j = 1 , j i N a i j , and L i j = a i j with j i . It is noted that there are L = L , L = D T D , and L 1 N = 0 N for an undirected graph.

2.3. Problem Formulation

Consider a dynamic equation
ξ ˙ = g ( t , X ) , X ( t 0 ) = ξ 0 ,
where X ( X R n ) is the state of system (1), t 0 is the initial time, and g : R + × R n R n is a nonlinear function. If at some points g is discontinuous, then the solution ξ ( t ) to (1) is described as the Filippov solution [36].
Lemma 1
([27]). Define I R n as a domain that contains equilibrium points of system (1). Suppose Γ 1 ( X ) and Γ 2 ( X ) to be continuous and positive definite functions on I . For a real-valued continuously differentiable function V : τ × I R + , if there exist a constant σ 1 and a time interval τ = [ t 0 , t f ] such that
(i) 
Γ 1 ( X ) V ( t , X ) Γ 2 ( X ) , t τ , X I { 0 } ,
(ii) 
V ( t , 0 ) = 0 , t τ ,
(iii) 
V ˙ σ ( 1 e V ) t f t , V 0 , t τ ,
then an equilibrium point X = 0 is prescribed-time stable, where τ is a time interval, t f = t 0 + T , and T is set in advance.
Lemma 2
([27]). For θ 1 , θ 2 R , if θ 1 θ 2 > 0 , there is
θ 1 ( 1 e θ 1 ) θ 2 ( 1 e θ 2 ) .
For θ R n , there is
θ ( I n e diag ( θ ) ) 1 n θ 2 ( 1 e θ 2 ) .
Lemma 3
([37]). For y R n , if μ > ν > 0 , the following inequality holds:
y μ y ν n 1 ν 1 μ y μ .
Lemma 4
([38]). When h ( X ) : R n R is a convex and continuously differentiable function with respect to X , h ( X ) will be minimized at ξ * if and only if the gradient h ( ξ * ) = 0 .

3. Main Results

Here, a multi-agent system consisting of n agents is considered based on an undirected communication graph. Assume that the agents in the multi-agent system meet the dynamics defined below:
ξ ˙ i ( t ) = g i ( t ) ,
where ξ i ( ξ i ( t ) R d ) is the state of the ith agent, and g i ( g i ( t ) R d ) is the control input.
Assumption 1.
The graph G associated with the communication topology of the multi-agent system is connected and undirected.
Remark 1.
Unlike static optimization problems with some fixed points, time-varying ones result in time-dependent optimal solutions, increasing the challenge of algorithm design. To the best of our knowledge, there are limited works on time-varying distributed optimization problems with prescribed-time convergence. These novel results have been attained under strict assumptions. Interesting future research directions include relevant extensions by the relaxation of Assumption 1 on undirected graphs to directed topologies.
Definition 1.
The multi-agent system (3) is said to achieve prescribed-time consensus if and only if
lim t T | | ξ i ( t ) ξ j ( t ) | | = 0 ,
and ξ i ( t ) = ξ j ( t ) for t T with any initial conditions, where the value of T is set offline in advance.
For a multi-agent system, every agent i is assigned a local state ξ i ( ξ i R d ) , i = 1 , 2 , , n , and privately owns a local objective function F i , with F i ( ξ i , t ) : R d × R + R . Note that the local state and cost function are only known to agent i itself. A distributed protocol g i ( t ) is designed to guarantee that all agents collaboratively trace the optimal trajectory ξ * ( t ) for the following time-varying convex optimization:
min ξ ( t ) R d i = 1 n F i ( ξ ( t ) , t ) .
Assumption 2.
The time-varying cost function F i ( ξ , t ) is at least twice continuously differentiable with respect to x and t. In addition, for any x and t, the Hessian matrix H i ( ξ ( t ) , t ) is invertible.
It is worth noting that the time-varying optimization problem (4) can be regarded as an equivalence of the consensus problem in multi-agent systems, where all agents arrive at a consensus and at the same time minimize the whole total objective function, i.e.,
min ξ ( t ) R n d i = 1 n F i ( ξ i ( t ) , t ) , s . t . ξ i ( t ) = ξ j ( t ) , i , j = 1 , 2 , , n ,
where ξ ( t ) = ( ξ 1 ( t ) , ξ 2 ( t ) , , ξ n ( t ) ) , and ξ i ( t ) R d . For simplicity, we remove the time dependence associated with the variables when appropriate.
To deal with problem (5), the distributed protocol is proposed for the ith agent as below:
g i = S i 1 + S i 2 + K i , if t 0 t < t f , S i 2 + K i , if t t f ,
where ξ i = ( ξ i 1 , ξ i 2 , , ξ i d ) R d , t f = t 0 + T ,
K i = H i 1 ( ξ i , t ) ( t F i ( ξ i , t ) + F i ( ξ i , t ) ) , S i 1 = σ T t diag j N i sgn ( ξ i ξ j ) θ i , S i 2 = γ i j N i sgn ( ξ i ξ j ) ,
θ i : = [ I d e diag ( | j N i ( ξ i ξ j ) | ) ] 1 d , σ 1 λ 2 ( L ) , and γ i > ( n 1 ) K ¯ 2 . The terms F i ( ξ i , t ) and H i ( ξ i , t ) are the first derivative and the Hessian matrix of the cost function F i ( ξ i , t ) with respect to ξ i , respectively. Moreover, t F i ( ξ i , t ) is the partial derivative of the gradient F i ( ξ i , t ) with respect to t . In the distributed protocol (6), the purpose of S i 1 is to reach a prescribed-time consensus, while the terms of S i 2 and K i aim at tracing the evolution in line with the local cost function F i ( ξ i , t ) and urging the state ξ ( t ) toward the time-dependent optimal solutions.
Assumption 3.
There exists a constant l ¯ ( l ¯ > 0 ) such that | | K i K j | | 2 l ¯ for i , j = 1 , 2 , , n , where K i is defined in (6).
Furthermore, system (3) combined with the distributed protocol (6) is capable of being compactly notated as in the form below:
ξ ˙ ( t ) = S 1 + S 2 + K , if t 0 t < t f , S 2 + K , if t t f , S 1 = σ T t D diag ( sgn ( D ξ ( t ) ) ) Π , S 2 = D sgn ( D ξ ) , K = H 1 ( ξ , t ) ( F ( ξ , t ) + t F ( ξ , t ) ) ) , H 1 ( ξ , t ) = diag { H 1 1 ( ξ 1 , t ) , , H n 1 ( ξ n , t ) } , F ( ξ , t ) = ( F 1 ( ξ 1 , t ) , , F n ( ξ n , t ) ) , Π = [ I n d e diag ( | D ξ ( t ) | ) ] 1 n d ,
where ξ ( t ) = ( ξ 1 ( t ) , , ξ n ( t ) ) , D = D I d , and D = [ h i j ] m × N with h i j = γ i a i j if the node i is an endpoint that an edge leaves, and h i j = γ i a i j if the node i is an endpoint that an edge enters, otherwise h i j = 0 .
Theorem 1.
Suppose that Assumptions 1–3 hold. The multi-agent system (3) combined with the distributed law (6) reaches prescribed-time consensus T, i.e., ξ i ( t ) = ξ j ( t ) as t t 0 + T for i , j = 1 , 2 , . . . , n , where the time interval T can be set in advance.
Proof. 
Define E i ( t ) = ξ i ( t ) 1 n ι = 1 n ξ ι ( t ) , i = 1 , 2 , , n , and
E ( t ) = ( E 1 ( t ) , E 2 ( t ) , , E n ( t ) ) .
Then, there is
E = ( ( I n 1 n 11 ) I d ) ξ .
It is easy to see that ξ i ( t ) = ξ j ( t ) if E i ( t ) = 0 .
Furthermore, substituting (8) into (7), we can obtain
E ˙ ( t ) = S ^ 1 + S ^ 2 + K ^ , if t 0 t < t f , S ^ 2 + K ^ , if t t f ,
where
S ^ 1 = σ T t D diag ( sgn ( D E ( t ) ) ) Π ^ , Π ^ = [ I n d e diag ( | D E ( t ) | ) ] 1 n d , S ^ 2 = D sgn ( D E ) , K ^ = ( Ξ I d ) K , Ξ = I n 1 n 1 1 .
The fact that Ξ D = D is used follows. Choose a candidate Lyapunov function V ( t ) , where V ( t ) = 1 2 E ( t ) E ( t ) . The time derivative of V ( t ) along (9) is described as
V ˙ ( t ) = E ( t ) E ˙ ( t ) .
According to Formulas (9) and (10), for t 0 t < t f , one can obtain
E ( t ) S ^ 1 = E ( t ) ( σ t f t D diag ( sgn ( D E ( t ) ) ) [ I n d e diag ( | D E ( t ) | ) ] 1 n d ) = σ t f t ( D E ( t ) ) diag ( sgn ( D E ( t ) ) ) [ I n d e diag ( | D e ( t ) | ) ] 1 n d = σ t f t | D E ( t ) | 1 [ I n d e diag ( | D E ( t ) | ) ] 1 n d σ t f t D E ( t ) 2 1 e D E ( t ) 2 σ t f t λ 2 ( L ) E ( t ) 2 1 e λ 2 ( L ) E ( t ) 2 .
Lemmas 2 and 3 are utilized to obtain the first and the second inequalities, respectively, and the last inequality holds due to D E 2 = E D D E = E ( L I d ) E λ 2 ( L ) E 2 .
Furthermore, on one hand, we have
E S ^ 2 = E D sgn ( D E ) = ( D E ) sgn ( D E ) = i = 1 n j N i γ i 2 E i E j 1 .
On the other hand, one can obtain
E K ^ = E ( Ξ I d ) K = 1 2 n i = 1 n j = 1 n ( E i E j ) ( K i K j ) 1 2 n i = 1 n j = 1 n E i E j 1 K i K j 2 K ¯ 2 n i = 1 n j = 1 n E i E j 1 K ¯ 2 max i { j = 1 , j i n E i E j 1 } ( n 1 ) K ¯ 4 i = 1 n j N i E i E j 1 .
Combining this with the Formulas (11)–(13), for t 0 t < t f , Formula (10) is able to be rewritten as the following representation:
V ˙ σ t f t λ 2 ( L ) E ( t ) 2 1 e λ 2 ( L ) E ( t ) 2 i = 1 n j N i γ i 2 E i E j 1 + ( n 1 ) K ¯ 4 i = 1 n j N i E i E j 1 σ t f t λ 2 ( L ) E ( t ) 2 1 e λ 2 ( L ) E ( t ) 2 i = 1 n j N i γ * 2 E i E j 1 + ( n 1 ) K ¯ 4 i = 1 n j N i E i E j 1 = σ λ 2 ( L ) t f t E ( t ) 2 1 e λ 2 ( L ) E ( t ) 2 + ( n 1 ) K ¯ 4 γ * 2 i = 1 n j N i E i ( t ) E j ( t ) 1 σ λ 2 ( L ) t f t E ( t ) 2 1 e λ 2 ( L ) E ( t ) 2 ,
in which γ * = inf i { γ i } , and γ * = ( n 1 ) K ¯ 2 .
According to the definition of V , Formula (14) can be rewritten as
V ˙ σ λ 2 ( L ) 2 V T t 1 e λ 2 ( L ) 2 V .
Let ϱ = 2 λ 2 ( L ) V ; one obtains
ϱ ˙ = λ 2 ( L ) 2 V V ˙ σ λ 2 ( L ) T t 1 e ϱ .
If σ ^ = σ λ 2 ( L ) 1 , then (15) can be transformed as ϱ ˙ ( σ ^ / t f t ) ( 1 e ϱ ) . It can be obtained that ϱ ln ( ρ ( t f t ) σ ^ + 1 ) , where ρ = ( e ϱ ( t 0 ) 1 ) / ( t f t ) σ ^ and ϱ ( 0 ) = ϱ ( t 0 ) . Then, the time derivative of ϱ is able to be translated into ϱ ˙ σ ^ ρ ( t f t ) σ ^ 1 / ( ρ ( t f t ) σ ^ + 1 ) . Therefore, it can be observed that there is ϱ = 0 and ϱ ˙ = 0 when t = t f . As a result of ϱ = 2 λ 2 ( L ) V , it can be noted that V ( t , E ) = 0 for t = t f and V ( t , 0 ) = 0 for t 0 t t f . Based on Lemma 1, system (3) is prescribed-time stable, and ξ i = ξ j for t = t f .
Moreover, for t t f , based on (9) and (10), combining with (12) and (13), the following is obtained:
V ˙ ( n 1 ) K ¯ 4 γ * 2 i = 1 n j N i E i ( t ) E j ( t ) 1 < 0 .
Note that V ( t ) = 0 is sustained for t t f . On the basis of Definition 1, it could be concluded that the prescribed-time consensus is able to be reached if σ 1 / λ 2 ( L ) and γ i > ( n 1 ) K ¯ 2 . Hence, the distributed protocol (6) drives the agents of system (3) to reach a consensus within prescribed time and keep moving in consensus for t t f . □
Theorem 2.
Suppose that Assumptions 1–3 hold. If σ 1 / λ 2 ( L ) and γ i > ( n 1 ) K ¯ 2 , the multi-agent system (3) with the distributed protocol (6) minimizes the time-varying problem (4) as t + .
Proof. 
Based on Theorem 1, the multi-agent system (3) with the distributed law (6) achieves a consensus in prescribed time, i.e., ξ i ( t ) = 1 / n j = 1 n ξ j ( t ) = ξ j ( t ) for t t 0 + T .
Define ξ * ( t ) j = 1 n ξ j ( t ) . According to the above analysis, one can obtain ξ ˙ * ( t ) = 1 n j = 1 n ξ ˙ j ( t ) = H j 1 ( F j ( ξ j , t ) + t F j ( ξ j , t ) ) for t t 0 + T . Construct a Lyapunov function
W ( t ) = 1 2 j = 1 n F j ( ξ * ( t ) , t ) j = 1 n F j ( ξ * ( t ) , t ) ,
where W ( t ) is positive definite with respect to j = 1 n F j ( ξ * , t ) . Then, according to Assumptions 1 and 3, for t t 0 + T , the time derivative of W ( t ) can be described as follows:
W ˙ ( t ) = j = 1 n F j ( ξ * , t ) j = 1 n H j ( ξ * , t ) ξ ˙ * ( t ) + j = 1 n t F j ( ξ * , t ) = j = 1 n F j ( ξ * , t ) j = 1 n F j ( ξ * , t ) .
Therefore, there is W ˙ ( t ) < 0 for j = 1 n F j ( ξ * , t ) 0 . This indicates that j = 1 n F j ( ξ * , t ) will be asymptotic convergent to zero, i.e., lim t + j = 1 n F j ( ξ * , t ) = 0 . Based on Lemma 4, the time-varying cost function i = 1 n F i ( ξ i , t ) will be minimized as t + . □

4. Examples and Simulations

4.1. Prescribed-Time Rendezvous

The rendezvous problem can be modeled as a consensus problem [39], and it is depicted as the following strongly convex optimization:
min ξ i ( t ) f ( ξ i , t ) = 1 2 i = 1 n ξ i ( t ) p i ( t ) 2 2 ,
For the shortest distance rendezvous problem in two-dimensional space, we set n = 10 . A communication network with 10 agents and circular connectivity is used for (16). Let p i ( t ) = 0.01 i * ( sin ( t ) + 2 e t , cos ( t ) ) . The parameter σ is set as σ = 20 , and the control gain γ i = 120 .
The simulation results are displayed in Figure 1 with the prescribed time t f = 0.06 s and Figure 2 with the prescribed time t f = 0.1 s. In Figure 1a and Figure 2a, it is shown that the states based on algorithm (6) can reach consensus within the respective prescribed times, where the convergent time can be preset by the designer and is independent of any initial conditions. The errors between the state and optimal solution are displayed in Figure 1b and Figure 2b, which show that the errors eventually converge to zero. It should be noted that the times at which the errors converge are almost close to the prescribed times.

4.2. Multi-Robots Control

In this subsection, the target for a multi-agent system with n agents is to cope with the multi-robot control problem. In the system, an amount of smart agents are required to trace a moving point and sustain a certain formation. The example is inspired by a formation control problem in [33,40], where a distributed controller based on multi-agent systems is desired to address the following modeled optimization problem:
min ξ ( t ) R 2 n i = 1 n θ | | ξ i ( t ) ξ i ref | | 2 2 + j N i | | ξ i ( t ) ξ i ref ( ξ j ( t ) ξ j ref ) | | 2 2 ,
where θ > 0 is a scaling factor, and ξ i ( t ) R 2 and ξ i ref R 2 are the location position and reference point of agent i, respectively.
We set n = 4 and θ = 0.5 . The expected formation of the multi-robots team is reformulated as ξ i ref = ( 2 t + cos ( 2 ( i 1 ) π / 4 ) , 2 t + sin ( 2 ( i 1 ) π / 4 ) ) ( i = 1 , 2 , 3 , 4 ) , which moves a rotating rectangle. The parameters in (6) are selected as σ = 3 and γ i = 100 for i = 1 , 2 , 3 , 4 .
The communication topological graph associated with the introduced multi-agent system is illustrated in Figure 3. The relative errors ξ i ξ i * 2 / ξ i * 2 with the prescribed time t f = 1 s are described in Figure 4. It can be seen that the errors between the optimums and states converge to zero as the time approaches 1.5 s, which is almost equal to the preset time. To make a rectangle formation, let x 1 ref = ( 0.3 , 0.4 ) , x 2 ref = ( 0.3 , 0.4 ) , x 3 ref = ( 0.3 , 0.4 ) , x 4 ref = ( 0.3 , 0.4 ) . Figure 5 illustrates the transient positions of four robots at several sampling times: each corresponding to a specific time t = 0 , t = 0.3 s, t = 0.6 s, t = 0.8 s, t = 1 s, and t = 2 s. The agents are represented by different colored circles: Agent 1 in red, Agent 2 in green, Agent 3 in blue, and Agent 4 in magenta. Additionally, there are two special points marked: the target point in black and the optimal point in cyan. It can be seen that the robots are moving towards an optimal point over time and can constitute the rectangle formation moving around the target point.

5. Conclusions

This paper investigates a type of time-varying optimization problem on the basis of multi-agent systems with continuous single-integrator dynamics in a distributed manner. Based on the predefined-time consensus controller, a new distributed law is presented to guarantee that all agents reach a consensus in a preset time while minimizing the sum of time-dependent local cost functions. Unlike the existent distributed consensus algorithms for time-varying optimization on account of multi-agent systems, the time for reaching consensus herein can be prescribed in advance. On the basis of Lyapunov stability theory and convex optimization theory, the prescribed-time convergence and asymptotic optimality of the presented approach are proven. Lastly, the effectiveness of the designed algorithm is examined through two simulations.

Author Contributions

Conceptualization, Y.Z.; methodology, Y.Z.; validation, Y.Z., S.L., and J.Z.; investigation, Y.Z. and S.L.; writing—original draft, Y.Z.; writing—review and editing, Y.Z., S.L., and J.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This work was partially supported by the Specialized Foundation of Zhejiang University of Science and Technology, under Grant 2025QN067, and the Young Scientists Fund of the Natural Science Foundation of Zhejiang Province, under Grant LQN25F030017.

Data Availability Statement

The original contributions presented in the study are included in the article; further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

References

  1. Ren, W.; Sorensen, N. Distributed coordination architecture for multi-robot formation control. Robot. Auton. Syst. 2008, 56, 324–333. [Google Scholar] [CrossRef]
  2. Chen, J.; Li, Y.; Xue, Y.; Qin, S. Event-Triggered Adaptive Nash Equilibrium Seeking Algorithm Over Unbalanced Digraph. IEEE Trans. Autom. Control 2025, 1–8. [Google Scholar] [CrossRef]
  3. Liu, N.; Zhao, S.; Qin, S. A power reformulation continuous-time algorithm for nonconvex distributed constrained optimization over multi-agent systems. Neurocomputing 2021, 449, 258–269. [Google Scholar] [CrossRef]
  4. Boyd, S.; Parikh, N.; Chu, E.; Peleato, B.; Eckstein, J. Distributed Optimization and Statistical Learning via the Alternating Direction Method of Multipliers. Found. Trends Mach. Learn. 2010, 3, 1–122. [Google Scholar] [CrossRef]
  5. Zhao, Z.; Yang, J.; Gao, W.; Wang, Y.; Wei, M. Differentially private distributed online optimization via push-sum one-point bandit dual averaging. Neurocomputing 2024, 572, 127184. [Google Scholar] [CrossRef]
  6. Zheng, Y.; Liu, Q.; Wang, M. Distributed optimization with hybrid linear constraints for multi-agent networks. Int. J. Robust Nonlinear Control 2022, 32, 2069–2083. [Google Scholar] [CrossRef]
  7. Zheng, Y.; Liu, Q. A review of distributed optimization: Problems, models and algorithms. Neurocomputing 2022, 483, 446–459. [Google Scholar] [CrossRef]
  8. An, L.; Yang, G.H. Distributed Optimal Coordination for Heterogeneous Linear Multiagent Systems. IEEE Trans. Autom. Control 2022, 67, 6850–6857. [Google Scholar] [CrossRef]
  9. Li, W.; Wang, X.; Huang, N. Finite-time/fixed-time distributed optimization for nonlinear multi-agent systems with time-varying cost function. Neurocomputing 2024, 583, 127589. [Google Scholar] [CrossRef]
  10. Wang, B.; Fei, Q.; Wu, Q. Distributed Time-Varying Resource Allocation Optimization Based on Finite-Time Consensus Approach. IEEE Control Syst. Lett. 2021, 5, 599–604. [Google Scholar] [CrossRef]
  11. Su, W. Traffic Engineering and Time-Varying Convex Optimization. Ph.D. Thesis, The Pennsylvania State University, University Park, PA, USA, 2009. [Google Scholar]
  12. Liu, Q.; Wang, M. A projection-based algorithm for optimal formation and optimal matching of multi-robot system. Nonlinear Dyn. 2021, 5, 599–604. [Google Scholar] [CrossRef]
  13. Simonetto, A.; Koppel, A.; Mokhtari, A.; Leus, G.; Ribeiro, A. Prediction-correction methods for time-varying convex optimization. In Proceedings of the 2015 49th Asilomar Conference on Signals, Systems and Computers, Pacific Grove, CA, USA, 8–11 November 2015; pp. 666–670. [Google Scholar]
  14. Rahili, S.; Ren, W. Distributed Continuous-Time Convex Optimization With Time-Varying Cost Functions. IEEE Trans. Autom. Control 2017, 62, 1590–1605. [Google Scholar] [CrossRef]
  15. Fazlyab, M.; Paternain, S.; Preciado, V.M.; Ribeiro, A. Prediction-Correction Interior-Point Method for Time-Varying Convex Optimization. IEEE Trans. Autom. Control 2018, 63, 1973–1986. [Google Scholar] [CrossRef]
  16. Ye, M.; Hu, G. Distributed optimization for systems with time-varying quadratic objective functions. In Proceedings of the 2015 54th IEEE Conference on Decision and Control (CDC), Osaka, Japan, 15–18 December 2015; pp. 3285–3290. [Google Scholar]
  17. Huang, B.; Zou, Y.; Meng, Z. Distributed continuous-time constrained convex optimization with general time-varying cost functions. Int. J. Robust Nonlinear Control 2021, 31, 2222–2236. [Google Scholar] [CrossRef]
  18. Sun, S.; Ren, W. Distributed Continuous-Time Optimization with Time-Varying Objective Functions and Inequality Constraints. In Proceedings of the 2020 59th IEEE Conference on Decision and Control (CDC), Jeju Island, Republic of Korea, 4–18 December 2020; pp. 5622–5627. [Google Scholar]
  19. Ning, B.; Han, Q.L.; Zuo, Z. Distributed Optimization of Multiagent Systems with Preserved Network Connectivity. IEEE Trans. Cybern. 2019, 49, 3980–3990. [Google Scholar] [CrossRef] [PubMed]
  20. Deng, X.; Huang, Y.; Wei, L. Adaptive Fuzzy Command Filtered Finite-Time Tracking Control for Uncertain Nonlinear Multi-Agent Systems with Unknown Input Saturation and Unknown Control Directions. Mathematics 2022, 10, 4656. [Google Scholar] [CrossRef]
  21. Wang, D.; Gao, Z.; Wang, D. Distributed finite-time optimization algorithms with a modified Newton–Raphson method. Neurocomputing 2023, 536, 73–79. [Google Scholar] [CrossRef]
  22. Sun, C.; Feng, Z.; Hu, G. Time-Varying Optimization-Based Approach for Distributed Formation of Uncertain Euler–Lagrange Systems. IEEE Trans. Cybern. 2022, 52, 5984–5998. [Google Scholar] [CrossRef]
  23. Ning, B.; Han, Q.L.; Zuo, Z. Distributed Optimization for Multiagent Systems: An Edge-Based Fixed-Time Consensus Approach. IEEE Trans. Cybern. 2019, 49, 122–132. [Google Scholar] [CrossRef]
  24. Polyakov, A. Nonlinear Feedback Design for Fixed-Time Stabilization of Linear Control Systems. IEEE Trans. Autom. Control 2012, 57, 2106–2110. [Google Scholar] [CrossRef]
  25. Fang, X.; Wen, G. Distributed optimal coordination of multi-agent systems with coupled objective functions: A fixed-time estimation-based approach. Automatica 2025, 175, 112213. [Google Scholar] [CrossRef]
  26. Xu, B.; Li, Y.X. Prescribed-time fully distributed Nash equilibrium seeking of nonlinear multi-agent systems over unbalanced digraphs. Automatica 2024, 169, 111847. [Google Scholar] [CrossRef]
  27. Pal, A.K.; Kamal, S.; Yu, X.; Nagar, S.K.; Xiong, X. Free-Will Arbitrary Time Consensus for Multiagent Systems. IEEE Trans. Cybern. 2022, 52, 4636–4646. [Google Scholar] [CrossRef] [PubMed]
  28. Zheng, Y.; Liu, Q.; Wang, J. A Specified-Time Convergent Multiagent System for Distributed Optimization With a Time-Varying Objective Function. IEEE Trans. Autom. Control 2024, 69, 1257–1264. [Google Scholar] [CrossRef]
  29. Chang, S.; Wang, Y.; Zuo, Z.; Yang, H.; Luo, X. Robust prescribed-time containment control for high-order uncertain multi-agent systems with extended state observer. Neurocomputing 2023, 559, 126782. [Google Scholar] [CrossRef]
  30. Nedic, A.; Ozdaglar, A.; Parrilo, P.A. Constrained consensus and optimization in multi-agent networks. IEEE Trans. Autom. Control 2010, 55, 922–938. [Google Scholar] [CrossRef]
  31. Yang, S.; Wang, J.; Liu, Q. Consensus of Heterogeneous Nonlinear Multiagent Systems with Duplex Control Laws. IEEE Trans. Autom. Control 2019, 64, 5140–5147. [Google Scholar] [CrossRef]
  32. Lin, P.; Ren, W.; Wang, H.; Al-Saggaf, U.M. Multiagent Rendezvous With Shortest Distance to Convex Regions with Empty Intersection: Algorithms and Experiments. IEEE Trans. Cybern. 2019, 49, 1026–1034. [Google Scholar] [CrossRef]
  33. Simonetto, A.; Leus, G. Distributed asynchronous time-varying constrained optimization. In Proceedings of the 2014 48th Asilomar Conference on Signals, Systems and Computers, Pacific Grove, CA, USA, 2–5 November 2014; pp. 2142–2146. [Google Scholar]
  34. Sun, C.; Feng, Z.; Hu, G. Distributed Time-Varying Formation and Optimization with Inequality Constraints of a Multi-Robot System. In Proceedings of the 2019 IEEE/ASME International Conference on Advanced Intelligent Mechatronics (AIM), Hong Kong, China, 8–12 July 2019; pp. 629–634. [Google Scholar]
  35. Feng, Z.; Hu, G. A Distributed Constrained Optimization Approach for Spatiotemporal Connectivity-Preserving Rendezvous of Multi-Robot Systems. In Proceedings of the 2018 IEEE Conference on Decision and Control (CDC), Miami Beach, FL, USA, 17–19 December 2018; pp. 987–992. [Google Scholar]
  36. Filippov, A. Differential Equations with Discontinuous Righthand Sides; Kluwer Academic: Dordrecht, The Netherlands, 1988. [Google Scholar]
  37. Hardy, G.; Littlewood, J.; Polya, G. Inequalities; Cambridge University Press: Cambridge, UK, 1988. [Google Scholar]
  38. Bazaraa, M.; Sherali, H.; Shetty, C. Nonlinear Programming; Wiley: New York, NY, USA, 2005. [Google Scholar]
  39. Pilloni, A.; Pisano, A.; Franceschelli, M.; Usai, E. A discontinuous algorithm for distributed convex optimization. In Proceedings of the 2016 14th International Workshop on Variable Structure Systems (VSS), Nanjing, China, 1–4 June 2016; pp. 22–27. [Google Scholar]
  40. Borrelli, F.; Keviczky, T. Distributed LQR Design for Identical Dynamically Decoupled Systems. IEEE Trans. Autom. Control 2008, 53, 1901–1912. [Google Scholar] [CrossRef]
Figure 1. Prescribed-time rendezvous with t f = 0.06 s: (a) the trajectory of state ξ i ( i = 1 , . . . , 10 ) ; (b) the evolution of relative errors ξ i ξ i * 2 / ξ i * 2 ( i = 1 , . . . , 10 ) .
Figure 1. Prescribed-time rendezvous with t f = 0.06 s: (a) the trajectory of state ξ i ( i = 1 , . . . , 10 ) ; (b) the evolution of relative errors ξ i ξ i * 2 / ξ i * 2 ( i = 1 , . . . , 10 ) .
Mathematics 13 02190 g001
Figure 2. Prescribed-time rendezvous with t f = 0.1 s: (a) the trajectory of state ξ i ; (b) the evolution of relative errors ξ i ξ i * 2 / ξ i * 2 ( i = 1 , . . . , 10 ) .
Figure 2. Prescribed-time rendezvous with t f = 0.1 s: (a) the trajectory of state ξ i ; (b) the evolution of relative errors ξ i ξ i * 2 / ξ i * 2 ( i = 1 , . . . , 10 ) .
Mathematics 13 02190 g002
Figure 3. Communication topology with four agents.
Figure 3. Communication topology with four agents.
Mathematics 13 02190 g003
Figure 4. The evolution of relative errors.
Figure 4. The evolution of relative errors.
Mathematics 13 02190 g004
Figure 5. The trajectories of four agents’ positions at: (a) t = 0 ; (b) t = 0.3 s; (c) t = 0.6 s; (d) t = 0.8 s; (e) t = 1 s; (f) t = 2 s.
Figure 5. The trajectories of four agents’ positions at: (a) t = 0 ; (b) t = 0.3 s; (c) t = 0.6 s; (d) t = 0.8 s; (e) t = 1 s; (f) t = 2 s.
Mathematics 13 02190 g005
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zheng, Y.; Liu, S.; Zhong, J. A Prescribed-Time Consensus Algorithm for Distributed Time-Varying Optimization Based on Multiagent Systems. Mathematics 2025, 13, 2190. https://doi.org/10.3390/math13132190

AMA Style

Zheng Y, Liu S, Zhong J. A Prescribed-Time Consensus Algorithm for Distributed Time-Varying Optimization Based on Multiagent Systems. Mathematics. 2025; 13(13):2190. https://doi.org/10.3390/math13132190

Chicago/Turabian Style

Zheng, Yanling, Siyu Liu, and Jie Zhong. 2025. "A Prescribed-Time Consensus Algorithm for Distributed Time-Varying Optimization Based on Multiagent Systems" Mathematics 13, no. 13: 2190. https://doi.org/10.3390/math13132190

APA Style

Zheng, Y., Liu, S., & Zhong, J. (2025). A Prescribed-Time Consensus Algorithm for Distributed Time-Varying Optimization Based on Multiagent Systems. Mathematics, 13(13), 2190. https://doi.org/10.3390/math13132190

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop