r - Make a plot with the points that optim produce while using BFGS for maxit times -


i make plot points optim produce while using bfgs maxit times. there me? speciffically, function f1:

i <- 0   vals <- list() f1 <- function(x) {   <<- i+1   vals[[i]] <<- x   x1 <- x[1]   x2 <- x[2]   x1^2 + 3*x2^2   } 

i line plot points produced following optim (optim(...)$par) , intermediate (in optim) points using bfgs method (without points utilizing line search method in bfgs)

res <-    optim(c(1.0,1.0), f1, method="bfgs",  control=list(maxit=1, reltol=0.00001, trace=1, report=1)) 


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -