#### Abstract

Multiagent systems are used in artificial intelligence, control theory, and social sciences. In this article, we studied a Cucker–Smale model with a continuous non-Lipschitz protocol. The methodology presented in the current paper is based on the explicit construction of a Lyapunov functional. By using the fixed-time control technology, we show that the flocking can occur in fixed-time and collision avoiding when a singular communication function with a weighted sum of sign functions of the relative velocities among agents, and we can obtain the estimation of the converging time which is independent of the initial states of agents. Theoretical results are supported by numerical simulations.

#### 1. Introduction

In recent years, multiagent systems have various applications in widely fields such as biology, robotics, and control theory as well as sociology and economics [1–6]. Each agent typically has only a local, limited impact on other agents via the connections with its neighbor individuals in the given system, and the coherent behavior of the agents caused the emerging phenomenon in terms of flocking, in which the agents reach final agreement on controlled variables of interest. Multiagent dynamical systems are typically fragment for modelling of birds and fishes in nature world, and more and more scientists realized the importance of these models. Among others, the celebrated Cucker–Smale model [7, 8] provides a framework to explain the self-organizing behavior in various complex systems, and the Cucker–Smale model is given by the following ODE system:

Subjecting to the initial configuration,

Here, is the number of particles, denote the position and velocity of the th particle at the time , and quantify the way the birds influence each other:

called influence function quantifies the pairwise influence of the agent on the alignment of the agent , as a function of the distance: that is,

In [7], it is shown that the unconditional flocking occurs when , while the conditional flocking occurs under some restricted conditions on the initial positions and velocities when . In [9], the authors introduced the Cucker–Smale model with a singular communication weight influence function:

The authors extended the conclusions of unconditional flocking to by the energy method. In [10], the authors introduced a nonsymmetric influence function and took into account relative distance between agents instead of the distance between agents:

Based on the notion of active sets, a sufficient condition for flocking was derived. The Cucker–Smale model was extensively studied, see, for example, time delay [11–15], pattern formation [16, 17], and hierarchical structure [14, 18–21]. However, the flocking phenomenon described in the most previous works is an asymptotic behavior without considered to collision avoidance behavior. In fact, the issue of collision avoiding plays a significant role in our real life, there are terrible consequences if collision avoidance is not considered. Meanwhile, under some occasional perturbations, individuals in bird flocks or fish schools can return back to ordered group motion after adjusting their states in a short time. In [22, 23], the authors introduced a modified Cucker–Smale mode by adding a term which prevents collisions. In [24], the authors used singular value influence function (5), through the Lyapunov method, when the initial value lies in the set of the admissible initial configurations can avoid collision. In [25], the authors improve the result of [24], when , as long as the initial value satisfies with and , and there will be no collision in the process of flocking; when , the authors consider the singular communication weight of the form:

Expand the set of singular points of from 0 to , if the initial data satisfy with condition that the difference between any two agents is greater than the control parameter , there will also be no collision in the process of flocking, and the minimum distance between agents is greater than the control parameter . In [26], the authors introduced a Cucker–Smale model with a continuous non-Lipschitz protocol, and then the flocking can occur in finite time when the communication rate function is locally Lipschitz continuous and has a lower bound. In [27], the authors introduced a Cucker–Smale model with a continuous non-Lipschitz protocol, by constructing a Lyapunov functional to obtain the finite-time flocking, which is the convergence time depending on the initial values. Although finite-time flocking has favourable properties, the estimation of convergence time depends on initial states of networked agents, and this restricts the applications in practice if the knowledge of initial conditions is unavailable in advance. There are lots of works in the field of fix-time consensus [28–30], and we know little about considering the fixed-time flocking and collision avoidance of the Cucker–Smale model.

The main purpose of this article is to investigate the fixed-time flocking and collision avoidance of a Cucker–Smale model. The remaining of this paper is organized as follows. In Section 2, a Cucker–Smale model with continuous non-Lipschitz protocol is presented and some useful preliminaries are also given in this section. The existence of a global smooth solution is obtained in Section 3, Section 4 states the definition of fixed-time flocking and proved the fixed-time flocking and collision avoidance results, and some numerical results are given in Section 5. Section 6 concludes this paper.

#### 2. Problem Statement and Preliminaries

Consider a model consisting of autonomous agents. denote the position and velocity of the th particle at the time , respectively, and the modified Cucker–Smale model in this paper can be described by the following equations:

Subjecting to initial configuration,where are two control parameters, measure the interaction strength, and was defined in (7); that is,where is the distance of any two agents:where is the signum function:

are two control parameters to make particles mutually exclude and attract with each other.

We have the following lemmas, which play an important role in the proof of the main results.

Lemma 1 (see [31]). *Consider the following equation:where and is a nonlinear continuous function. Assume the origin is an equilibrium point of (13). If there exists a continuous radially unbounded function such that**(i) **(ii) for some positive numbers any solution satisfies the inequality:*

Then, the origin is globally fixed-time stable and if

Lemma 2 (see [32]). *Let and Then, the following norm equivalence property holds:*

#### 3. A Global Existence Theory

Throughout the paper, we use where denote the position of the particles while is the velocity. For vectors , their Euclidean norms and the inner products are defined as follows:where are the th components of and . Respectively, we consider macroscopic variables:

By the symmetry of the indices, we have

Hence, we have explicit dynamics for the macroscopic variables:which yields that

We consider the fluctuations :

Then, systems (8)-(9) can be written as

With the initial value,

Through simple calculation, we can get

For convenience, we take the hat out of the variables and use instead of . It is easy to see that

The main goal of this section is to consider the existence of a global smooth solution of systems (8)-(9). For this purpose, we introduce the maximal life span for the initial data as follows:

Let

Now, we are in the position to present the main result of this section.

Theorem 1. *Assume that and the initial datum satisfies*

Then, there exists a global smooth solution to systems (8)-(9). Moreover, for , when , we havewhen , we havewhere is a constant depending only on .

*Proof. *Throughout the proof, we will denote for simplicity . Clearly, if the distances between agents are bigger than for any finite time, then the solution can be prolonged indefinitely and . Moreover, if (31) or (32) holds, then and . Therefore, in order to finish the proof it suffices to show (19) or (20), first we provide the energy dissipation of system (8), by (8)_{2} and a symmetry argument, and we havewhereBy the result of Theorem 1 in [27], we haveThus, substituting (35)–(37) into (33), integrating the differential inequality (33) from 0 to yields thatAnd this yieldsBy the same processes of the proof of Theorem 1 in [27], we have that (31) and (32) are established and there is no collision between agents for all time and .

#### 4. Fixed-Time Flocking

In this section, we shall show that systems (8)-(9) with continuous non-Lipschitz protocol have a fixed-time flocking. First, we first introduce the definition of the fixed-time flocking.

*Definition 1. *Systems (8)-(9) are said to reach a fixed-time flocking if and only if the system satisfies the following two conditions:(i)Velocity alignment: the velocity fluctuations go to zero in the fixed-time , and the time function is called the convergence time independent of the initial values:(ii)Forming a group: the position fluctuations are uniformly bounded in time t:

Theorem 2. *Assume that , and the initial datum satisfies (30). Then, systems (8)-(9) can reach a fixed-time flocking. Moreover, the convergence time is independent of the initial states of agents which is estimated bywhere .*

*Proof. *Let and . Take the candidate Lyapunov function:letBy using (27), we haveIt is easy to see that the difference of all individuals’ velocities will tend to zero in fixed-time if the function tends to 0 in fixed-time, and the diameter of a group is bounded if the function is bound:Note that ; then, employing Lemma 2, one can easily get thatWhich meansTherefore, combining (47)–(50) gives thatIt follows from (31) and (32) that there exists a positive constant , such that . Noting that , then we have from (51) thatChoosing and applying (16) to the processing inequality show thatChoosing and applying (17), we get thatIt follows from (45) thatIt is easy to see that is a continuous and positive definite function. So, by Lemma 1, when we haveand the convergence time independent of the initial values is estimated bywhere which implies that condition (i) of the definition of fixed-time flocking holds.

Now, we prove condition (ii) of the definition of fixed-time flocking that the function is bounded.

It follows from (55) that is a nonincreasing function with respect to *t*. That is, when . By the triangle inequality and Cauchy–Schwarz inequality, we haveIntegrating differential inequality (58) from 0 to yields thatIf , then it deduces from (59) thatIf , then it deduces from (55) and (59) thatThus, combining the processing inequality with (46) implies thatThis completes the proof.

*Remark 1. *Compared to [27], the convergence time is estimated bywhich is formulated by the initial states of the all agents. We added the termto the control protocol, the advantage of Theorem 2 is that the convergence time is independent of the initial states of agents which is estimated by

#### 5. Simulations

*Example 1. *Choose using the Euler algorithm, step length , for the random initial position generated on and random velocity on , and the initial minimum distance between agents is satisfying (30); then, the following simulation results (Figures 1–3) are obtained. In Figure 1, the direction velocity of the all agents is presented, and the velocity of all agents converges to the same value after about . In order to shorten the convergence time of the system, according to formula (42), under the condition that the parameter was determined and increasing the parameter value of was used to shorten the convergence time of the system. In Figure 2, take , other parameters are the same as those in Figure 1 and the velocity of all agents converges to the same value about , which is half shorter than that of Figure 1. Moreover, Figure 3, shows that the minimum distance between all agents is stable after and the maximum distance between all agents is stable after . Meanwhile, Figure 3 explains that the minimum distance among all agents is about .

**(a)**

**(b)**

**(a)**

**(b)**

**(a)**

**(b)**

#### 6. Conclusion

In this paper, we have investigated the flocking problem of a modified Cucker–Smale model with a continuous non-Lipschitz protocol. By using a Lyapunov functional, we show that the flocking can occur and collision avoidance when a singular communication function with a weighted sum of sign functions of the relative velocities among agents. The main results demonstrate that the flocking converging time is independent of the initial states of agents.

#### Data Availability

The data used to support the findings of this study are included within the article.

#### Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

#### Acknowledgments

This work was supported by the National Natural Science Foundation of China (grant no. 11771450).