You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fn is fn1
gr NULL, npar > 50, kkt set FALSE
Looking for method = L-BFGS-B
Methods to be used:[1] "L-BFGS-B"
Function has 70 arguments
par[ 1 ]: 0.1 <? 17 <? 200 In Bounds
par[ 2 ]: 0.5 <? 17 <? 10 Out of Bounds HIGH
par[ 3 ]: 0.01 <? 17 <? 3 Out of Bounds HIGH
par[ 4 ]: 0.01 <? 17 <? 10 Out of Bounds HIGH
Error in if ((lower[i] <= par[i]) && (par[i] <= upper[i])) { :
However, if I manually set up the bounds to match the formula parameters:
It runs just fine (although it takes a little while).
But it gets weirder.
If I try to run a model with Hmax ~ 1 (no species variation), I get an even weirder mismatch between start parameters and bounds, even if the bounds are "theoretically" aligned with the formula and the start list.
When you pass lower and upper bounds to mle2 for use with L-BFGS-B, the bounds do not automatically line up with the formula and start values.
Here is some code to illustrate the problem.
Now, if I try to use mle2 to fit more complex model:
If throws an error:
However, if I manually set up the bounds to match the formula parameters:
It runs just fine (although it takes a little while).
But it gets weirder.
If I try to run a model with Hmax ~ 1 (no species variation), I get an even weirder mismatch between start parameters and bounds, even if the bounds are "theoretically" aligned with the formula and the start list.
This code gives an extensive error.
Finally, I found that if you try to manually align the parameters, that doesn't always work, either. For example:
The text was updated successfully, but these errors were encountered: