The invention relates to an improved
particle swarm algorithm and the application of the improved
particle swarm algorithm. The improved
particle swarm algorithm includes the following steps that firstly, the
algorithm is initialized; secondly, the positions x and speeds v of particles are randomly initialized; thirdly, the number of iterations is initialized, wherein the number t of iterations is equal to 1; fourthly, the
adaptive value of each particle in a current
population is calculated, if is smaller than or equal to , then is equal to and is equal to , and if is smaller than or equal to , then is equal to and is equal to ; fifthly, if the
adaptive value is smaller than the set minimum error epsilon or reaches the maximum number Maxiter of iterations, the
algorithm is ended, and otherwise, the sixth step is executed; sixthly, the speeds and positions of the particles are calculated and updated; seventhly, the number t of iterations is made to be t+1, and the fourth step is executed. By means of the improved particle swarm
algorithm, at the initial iteration stage, the
population has strong self-learning ability and weak social learning ability, and therefore
population diversity is kept; at the later iteration stage, the population has weak self-learning ability and strong social learning ability, and therefore the convergence speed of the population is improved.