Learn R Programming

SPOT (version 2.11.10)

funMeyer: funMeyer (No. 16, More No. 10)

Description

Meyer 3-dim Test Function

Usage

funMeyer(x)

Arguments

x

matrix (dim 1x3) of points to evaluate with the function. Rows for points and columns for dimension.

Value

1-column matrix with resulting function values

References

More, J. J., Garbow, B. S., and Hillstrom, K. E. (1981). Testing unconstrained optimization software. ACM Transactions on Mathematical Software (TOMS), 7(1), 17-41. 10.1145/355934.355936

Examples

Run this code
# NOT RUN {
x1 <- matrix(c(1,1,1),1,)
funMeyer(x1)

set.seed(13)
resMeyer <- spot(matrix(c(0.02,4000,250),1,3),
  funMeyer,c(0,1000,200),c(3,8000,500),
  control= list(funEvals=15))
resMeyer$xbest
resMeyer$ybest
print("Model with parameters")
plotModel(resMeyer$model)
plotModel(resMeyer$model,which=2:3)

# }

Run the code above in your browser using DataLab