check_parameters: Check input parameters on quasi-Newton

Description Usage Arguments Value

View source: R/check_parameters.R

Description

The quasiNewton algorithm can be run by providing different types of input, but they all need to be accomodated to a common format. This is performed in this function

Usage

1
check_parameters(obj.list, x.list, ...)

Arguments

obj.list

Either a function or a list with the following names
f: the objective function
df: its gradient (optional; where the numerical version is used by default)

x.list

Either a vector with initial solution or a list with the following names
x: a vector with its value in the search space
fx: a scalar with its objective value
dfx: a vector with its gradient value

...

Optional parameters passed to the gradient function

Value

Returns two lists:
obj.list: a list with names f and df with the objective function and its gradient, respectively
x.list: a list with the names x, fx and dfx with the initial point properly evaluated.


brunasqz/NonlinearOpMethods documentation built on Oct. 27, 2019, 5:46 a.m.