[R] bracketing for optimize

Enrico Schumann e@ @end|ng |rom enr|co@chum@nn@net
Thu May 31 19:49:19 CEST 2018

On Thu, 31 May 2018, ivo welch writes:

> dear R wizards:  `optimize()` requires the user to provide the
> brackets.  I can write a bracketing routine, given a function and a
> starting point, but I was wondering whether there was already a
> "standard" user-exposed implementation.  (Presumably, this is used in
> nlm, too; alas, nlm is in C, not native R.)  regards, /iaw

There is a 'bracketing' function in package NMOF,
though it is for root-finding (i.e. for optimising you
would need the derivative).

Enrico Schumann (the maintainer of NMOF)
Lucerne, Switzerland

More information about the R-help mailing list