Introduction - If you have any usage issues, please Google them yourself
Use particle swarm algorithm to calculate the maximum value of a function, just run the main.m file directly. Fun.m is used to calculate the applicability of the particles. The objective function can be modified according to its own needs.