我正在编写一个进化算法,但是这段代码和其他代码会产生如下错误:
生成无法解决或不是字段
我已经做了好几天的研究,但无法弄清楚。这是代码段之一:
static ArrayList newPool() {
ArrayList pool = new ArrayList(pool);
pool.species = {};
pool.generation = 0;
pool.innovation = Outputs;
pool.currentSpecies = 1;
pool.currentGenome = 1;
pool.currentFrame = 0;
pool.maxFitness = 0;
return pool;
}
有人能帮助我吗?