testFunOptimization: 1D test problem for RCEIM

Description Usage Arguments Value Author(s) See Also Examples

Description

An one-dimension problem for testing optimization methods.

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)

Usage

1

Arguments

x

The point where the function is computed.

Value

The value of the function at x.

Author(s)

Alberto Krone-Martins

See Also

testFunOptimization2d

Examples

1
2
3
4
5
# 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'))

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