The invention provides a cooperative competition unmanned aerial vehicle cluster distributed swarming control method based on data driving, and the method comprises the following steps: S1, constructing a nonlinear unmanned aerial vehicle
system model, obtaining a nonlinear function and an unmanned aerial vehicle state error, and then determining an unmanned aerial vehicle swarming
behavior control target; s2, according to a dynamic
linearization method, approximating the nonlinear unmanned aerial vehicle
system model as a dynamic
linearization model to obtain a pseudo-partial derivative of the nonlinear unmanned aerial vehicle
system, and designing a control law of a pseudo-partial derivative estimated value by using the dynamic
linearization model; s3, designing a weighted
sign function for representing a cooperative competition relationship between the unmanned aerial vehicles, acquiring a swarming
control error by using the unmanned aerial vehicle state error and the weighted
sign function, and designing a swarming control protocol by using the swarming
control error and a control law of a pseudo-partial derivative estimated value; and S4, realizing unmanned aerial vehicle fleeing
behavior control according to the fleeing control protocol in the step S3. According to the method, the degree of cooperation or competition between the unmanned aerial vehicles is described by using the nonlinear function of the unmanned aerial vehicle state, and the controller is designed by using the real-time input and output data of the unmanned aerial vehicles, so that the influence of the model on the swarming behavior is reduced.