objlist: Generate objective list

View source: R/classes.R

objlistR Documentation

Generate objective list

Description

An objective list contains an objective value, a gradient, and a Hessian matrix.

Objective lists can contain additional numeric attributes that are preserved or combined with the corresponding attributes of another objective list when both are added by the "+" operator, see sumobjlist.

Objective lists are returned by objective functions as being generated by normL2, constraintL2, priorL2 and datapointL2.

Usage

objlist(value, gradient, hessian)

Arguments

value

numeric of length 1

gradient

named numeric

hessian

matrix with rownames and colnames according to gradient names

Value

Object of class objlist

Examples

# objlist(1, c(a = 1, b = 2), matrix(2, nrow = 2, ncol = 2, dimnames = list(c("a", "b"),c("a", "b"))))

dkaschek/dMod documentation built on July 27, 2023, 11:45 p.m.