|
本帖最后由 dylan0802 于 2017-10-18 20:16 编辑
求各位大神帮忙看看是什么问题~~~
D <- 5
lower <- rep(0.5, D)
upper <- rep(1.5, D)
set.seed(10000)
names(lower) <- c("E1","E2","E3","E4","
kap <- kappa2(outValue)
return(kap)
}
hydroPSO(fn=objfun, lower=lower, upper=upper, control=list(MinMax="min", write2disk=FALSE) )
运行hydroPSO报错,Error in Xt.fitness[iter, ] : incorrect number of dimensions
求问这是什么问题??
跪谢!
|
|