as.objlist: Generate objective list from numeric vector

View source: R/objClass.R

as.objlistR Documentation

Generate objective list from numeric vector

Description

Generate objective list from numeric vector

Usage

as.objlist(p)

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

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

dkaschek/dMod documentation built on May 9, 2024, 2:07 a.m.