R/testFunOptimization.R

testFunOptimization <- function(x) {
# The function to be optimized
	return( exp(-((x-2)^2)) + 0.9*exp(-((x+2)^2)) + 0.5*sin(x*8) + 0.25*cos(x*2) )
}

Try the RCEIM package in your browser

Any scripts or data that you put into this service are public.

RCEIM documentation built on May 1, 2019, 10:29 p.m.