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 http://enricoschumann.net ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.