最適化パッケージの並列化 DEoptim

最適化パッケージの並列化 DEoptim を使う場合。

ans2<-DEoptim(like1_web_reg,lower,upper,DEoptim.control(NP = 10*(length(upper)),itermax = 100000, F = 1.2, CR = 0.7,parallelType=1,parVar=c("x","my_func","x2","x3")))