as.objlist: Generate objective list from numeric vector

Description Usage Arguments Value Examples

View source: R/objClass.R

Description

Generate objective list from numeric vector

Usage

1

Arguments

p

Named numeric vector

Value

list with entries value (0), gradient (rep(0, length(p))) and hessian (matrix(0, length(p), length(p))) of class obj.

Examples

1
2
p <- c(A = 1, B = 2)
as.objlist(p)

dMod documentation built on Jan. 27, 2021, 1:07 a.m.