In locust algorithm, inertia weight w is very important for local and global development. The larger inertia weight w is conducive to jump out of the local optimum, but it is not easy to get the exact solution. The smaller inertia weight w is conducive to the local optimum, and speeds up the convergence speed of the algorithm, but it is not easy to jump out of the local extreme point.