This application discloses a path
planning method, apparatus, device, and medium based on a swarm collaborative optimization
algorithm, comprising: generating a
population; determining environmental complexity based on obstacle density factor,
straight path blocking factor, and obstacle distribution factor; determining the current theoretical path points based on environmental complexity; and determining the actual path points based on the current theoretical path points and the
previous generation's optimal path points; in each
iteration loop, performing a global search on each
individual based on a first random number and
swarm behavior parameters; performing local development on each
individual based on a second random number,
swarm behavior parameters, and the global search result; updating the individual's historical optimal solution and the current
global optimal solution based on the local development results; updating the optimal path points based on the basic path points and the actual path points; and outputting the
global optimal solution when the number of iterations is a preset number of rounds, thereby enhancing the global exploration and local development capabilities and improving adaptability and search efficiency in dynamic environments.