资 源 简 介
double[] zone = new double[iAgentDim]; //计算区间
double[] dpos = new double[iAgentDim]; //粒子的位置
double[] dpbest = new double[iAgentDim]; //粒子本身的最优位置
double[] dpbad = new double[iAgentDim]; //粒子本身的最劣位置
double[] dv = new double[iAgentDim]; //粒子的速度
double Fitness;
double Bestfitness; //粒子本身的全局最优解
double badfitness; //粒子本身的全局最劣解
Random random = new Random();
double[] gbest = new double[iAgentDim];
double[] gbad = new double[iAgentDim];
public Agent() //对粒子的位置和速度进行初始化