The present invention discloses a method for cooperative control of a heterogeneous multi-agent
system formation, which relates to the field of cooperative control technology, and includes the following steps: S1, constructing a second-order multi-dimensional heterogeneous multi-agent
system, and constructing a kinematic model and a dynamic model for the leader and the follower in the second-order multi-dimensional heterogeneous multi-agent
system; S2, determining a controller model; S3, determining the auxiliary control law of the follower; S4, completing the cooperative control of the heterogeneous multi-agent system formation according to the auxiliary control law of the follower. The present invention utilizes a contraction constraint formula to design an auxiliary control rate to optimize the heterogeneous multi-agent system online, and can control the formation to converge in a very short time, and the formation can quickly and effectively construct and transform the formation, and the formation remains stable, the error fluctuation is very small, and the accuracy is high.