minmax: min-max approximation

Description Usage Arguments Value Author(s) References See Also

View source: R/minmax.R

Description

Computes \tilde f(x) = min (max ( f(x), a-x ), b-x) and its derivative

Usage

1
minmax(x, a, b, fx, J)

Arguments

x

n-array of evaluation points

a

n-array of lower bounds

b

n-array of upper bounds

fx

n-array of function f evaluated at f

J

n.n matrix of Jacobian of f (optional)

Value

If input J is provided, it returns a list with fields

Otherwise, it returns only the matrix f.

Author(s)

Randall Romero-Aguilar

References

Miranda, Fackler 2002 Applied Computational Economics and Finance, section 3.8

See Also

Other nonlinear equations: fischer; ssmooth


randall-romero/CompEconR documentation built on May 26, 2019, 10:56 p.m.