powered by
"plot" (x, xlab = "Generation", ylab = "Fitness", main = "GA optimization", bestcol = "steelblue", meancol = "tomato", lwd = 2, legend.pos = c("bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright", "right", "center"), ...)
GAReal
ga = GAReal(function(x) sum(x), rep(0, 5), rep(10, 5)) ga$evolve(200) plot(ga)
Run the code above in your browser using DataLab