
Last chance! 50% off unlimited learning
Sale ends in
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
.
# NOT RUN {
p <- c(A = 1, B = 2)
as.objlist(p)
# }
Run the code above in your browser using DataLab