powered by
This function was created for demonstrating the RCEIM package. It has the form:
f(x) = exp(-((x - 2)^2)) + 0.9 * exp(-((x + 2)^2)) + 0.5 * sin(8*x) + 0.25 * cos(2*x)
testFunOptimization(x)
testFunOptimization2d
# Create a graphical representation of the problem with a line plot dev.new() xx <- seq(-10,10,by=0.01) plot(xx, testFunOptimization(xx), type="l", xlab="x", ylab="Value") rm(list=c('xx'))
Run the code above in your browser using DataLab