R/f_rosenbrock.R

f_rosenbrock <-
function(x){
n <- length(x)
sum (100*(x[1:(n-1)]^2 - x[2:n])^2 + (x[1:(n-1)] - 1)^2)
}

Try the b6e6rl package in your browser

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

b6e6rl documentation built on May 1, 2019, 11:24 p.m.