Message-ID: <CAJ55+d+xScLT6orbk7w4-DheBYbS9uAsgjNmBPxLuTbUUCVjNg@mail.gmail.com>
Date: 2012-05-01T20:12:34Z
From: Thomas Lumley
Subject: Define lower-upper bound for parameters in Optim using Nelder-Mead method
In-Reply-To: <CANkFkEeEvp9H4HWP0zv1hHHKxv0=uMNTK-94KpOKruHm_dtDDw@mail.gmail.com>
On Wed, May 2, 2012 at 7:58 AM, Arnaud Mosnier <a.mosnier at gmail.com> wrote:
> Dear UseRs,
>
> Is there a way to define the lower-upper bounds for parameters fitted by
> optim using the Nelder-Mead method ?
>
It depends a bit on whether it's plausible that the solution is on the
boundary. If not, simply returning Inf for values outside the range
will work.
-thomas
--
Thomas Lumley
Professor of Biostatistics
University of Auckland