Most existing results on flocking/fencing control achieve the velocity‑matching property, which is typically guaranteed via a Lyapunov function. However, the first algorithm presented in (Kou et al. 2021 TAC algorithm 1)1 only guarantees that the average velocity of all agents converges to the target value. The final formation yielded by this algorithm exhibits several intriguing phenomena, which I suspect may correspond to bifurcations.
Controller#
The controller only consists of there terms: target attraction, neighbor repulsion and integral of target attraction.
Here, the central repulsion function is selected as for . The paper proved that the target with constant speed can be fenced with this controller. Different from other fencing results, the final formation will rotate about the target as demonstrated in its paper.
Three regimes#
| 1D | 2D rigid rotation | 2D breathing | |
|---|---|---|---|
| 5 | 6 | 5 | |
| Behavior | Static equilibrium in target frame | , |
1D#
Vehicles converge to a static formation that fences the target. Velocity error . The space between two nearby vehicles converges to the minimum safety distance .

2D rigid rotation#
Formation rotates at which can be verified with analysis.

Steady-state snapshots at s:

2D breathing limit cycle#
Non-symmetric initial conditions. Pairwise distances oscillate periodically — the formation breathes instead of rotating rigidly.

Steady-state snapshots at s:

3D non-planar rotation#
With random 3D initial conditions, vehicles form a genuinely non-planar rotating formation (). Planar initial conditions stay planar — confirming the code is correct and the 3D behavior is real.

Key insight#
The controller constrains only the average position error and average velocity, leaving circulation degrees of freedom unconstrained. Different initial conditions excite different attractors: rigid rotation, breathing limit cycle, or 3D non-planar orbits.
Is it possible for this system to be a chaos system?
L. Kou, Z. Chen and J. Xiang, “Cooperative Fencing Control of Multiple Vehicles for a Moving Target With an Unknown Velocity,” in IEEE Transactions on Automatic Control, vol. 67, no. 2, pp. 1008-1015, Feb. 2022, doi: 10.1109/TAC.2021.3075320. ↩︎