Skip to content

BOBYQA warning message

2 messages · Devin Kearns, Ben Bolker

#
On 14-05-03 04:18 PM, Devin Kearns wrote:
You have 32 parameters (20 fixed and 12 random-effects
variance-covariance parameters), unless I miscounted.  That means that
BOBYQA recommends that the maximum number of function evaluations should
be at least 10*32^2 = 10240.  It's a bit hard to dig out the default
value of maxfun, but it's 10000 (so you only missed by a little bit).
Arguably lme4 should make this adjustment automatically; someone could
add an issue at https://github.com/lme4/lme4/issues if they wanted.
Bottom line:

  * you can use control=glmerControl(optCtrl=list(maxfun=1e5)) to adjust
the maximum number of function evaluations.
  * if @optinfo$feval will tell you how many function evaluations were
actually used.