代码显示错误,不知道怎么改,恳请各位大神指教
错误提示:[local]1[/local]if (Iteration == 1)
{
double[,] best_flames = new double[population, dim];
double[,] best_flame_fitness = new double[1, population];
DiYiCi(Moth_pos,ub, lb, dim, population, out best_flames, out best_flame_fitness);
}
else
{
}
Best_flame_score = best_flame_fotness[0, 1];
for (int i = 0; i < dim; i++)
{
Best_flame_pos = best_flames[0, i];
}