Skip to content

nlminb doesn't converge and produce a warning

4 messages · kamel gaanoun, Karl Ove Hufthammer, Douglas Bates +1 more

#
kamel gaanoun wrote:

            
Just increase the maximum number of iterations. Which you tried to do, but 
didn?t succeed in, as the above warnings shows. The argument is called 
?iter.max?, not ?max.iter?.
#
On Fri, Jan 21, 2011 at 3:51 AM, kamel gaanoun <kamel.gaanoun at gmail.com> wrote:
Hmm, the length of the parameter vector shown below is 189, which is
neither 31*6 nor 2 + 29*6.

I suppose it is possible to do nonlinear optimization with box
constraints on such a large number of parameters but you should expect
it to take a long time and perhaps a lot of memory.  Even if the
optimizer converges, it would be optimistic to expect that the
parameter value returned is necessarily the global optimum.  I would
recommend trying to simplify the optimization problem.  A method like
this is just using the computer as a blunt instrument with which to
bludgeon the problem to death (sometimes called the "SAS approach").
#
Hi,

It is indeed annoying that each optimization code has different names for the parameters that control the behavior of the algorithms.  This is one of the reasons that we have developed "optimx" - to unify the calling convention for the various algorithms.  You can call the optimization algorithm of your choice without having to worry about the names of the control parameters. 

Ravi.

-------------------------------------------------------
Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins University

Ph. (410) 502-2619
email: rvaradhan at jhmi.edu

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Karl Ove Hufthammer
Sent: Friday, January 21, 2011 6:48 AM
To: r-help at stat.math.ethz.ch
Subject: Re: [R] nlminb doesn't converge and produce a warning
kamel gaanoun wrote:

            
Just increase the maximum number of iterations. Which you tried to do, but 
didn?t succeed in, as the above warnings shows. The argument is called 
?iter.max?, not ?max.iter?.