powered by
Generate objective list from numeric vector
as.objlist(p)
Named numeric vector
list with entries value (0), gradient (rep(0, length(p))) and hessian (matrix(0, length(p), length(p))) of class obj.
0
rep(0, length(p))
matrix(0, length(p), length(p))
obj
# NOT RUN { p <- c(A = 1, B = 2) as.objlist(p) # }
Run the code above in your browser using DataLab