Skip to content

Commit b4e1ce8

Browse files
authoredNov 26, 2024··
PNBD Dyncov: Improved optimx defaults (higher itnmax) (#279)
Significantly increase the default number of optimizer iterations for dyncov models (`itnmax`) from 3000 to 50000. The previous iteration limit is rather low for NelderMead and in practice was often reached. This likely mislead users to believe that the optimization converged when in reality it only stopped because the max num iterations had been reached.
1 parent f45f703 commit b4e1ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎R/class_clv_model_pnbd_dynamiccov.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ clv.model.pnbd.dynamic.cov <- function(){
1818
name.model = "Pareto/NBD with Dynamic Covariates",
1919
# Overwrite optimx default args
2020
optimx.defaults = list(method = "Nelder-Mead",
21-
itnmax = 3000,
21+
itnmax = 50000,
2222
control = list(
2323
kkt = TRUE,
2424
save.failures = TRUE,

0 commit comments

Comments
 (0)
Please sign in to comment.