Introduction - If you have any usage issues, please Google them yourself
Group of particle algorithm: this algorithm with a group of particles for a maximum of the objective function
//the algorithm using steps
//derived their own group of particles (1) class, the class must be defined in a double GetFit (PARTICLE &) method, is used to calculate the fitness of each PARTICLE
//(2) generates derived class instance, and indicate the particles in the constructor coordinate dimension and the number of groups
//(2) set the particle coordinate arrays and lower bound, the upper bound and SetXup and SetXdown set the upper and lower bounds particle coordinates
//(3) set maximum speed particles in SetVmax way
//(4) set the optional parameters: C1 and C2, W and communications functions
//(5) Run method is adopted to optimize arithmetic, the optimized GetBest method to obtain the optimal individual fitness and coordinates