Skip to content

Commit

Permalink
strickter default xtol
Browse files Browse the repository at this point in the history
  • Loading branch information
helske committed Nov 24, 2024
1 parent 12efc72 commit 761221a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/estimate_nhmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#'
#' By default, the convergence is claimed when either the absolute or relative
#' change of the objective function is less than `1e-8`, or the absolute or
#' relative change of the parameters is less than `1e-4`. These can be changed
#' relative change of the parameters is less than `1e-6`. These can be changed
#' by passing arguments `ftol_abs`, `ftol_rel`, `xtol_abs`, and `xtol_rel` via
#' `...`. These, as well as argument `maxeval` (maximum number of iterations,
#' 1e4 by default), and `print_level` (default is `0`, no console output of
Expand Down
4 changes: 2 additions & 2 deletions R/fit_mnhmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ fit_mnhmm <- function(model, inits, init_sd, restarts, lambda, method,
list(
ftol_abs = 1e-8,
ftol_rel = 1e-8,
xtol_abs = 1e-4,
xtol_rel = 1e-4,
xtol_abs = 1e-6,
xtol_rel = 1e-6,
maxeval = 1e4,
print_level = 0,
algorithm = "NLOPT_LD_LBFGS",
Expand Down
4 changes: 2 additions & 2 deletions R/fit_nhmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ fit_nhmm <- function(model, inits, init_sd, restarts, lambda, method, pseudocoun
list(
ftol_abs = 1e-8,
ftol_rel = 1e-8,
xtol_abs = 1e-4,
xtol_rel = 1e-4,
xtol_abs = 1e-6,
xtol_rel = 1e-6,
maxeval = 1e4,
print_level = 0,
algorithm = "NLOPT_LD_LBFGS",
Expand Down

0 comments on commit 761221a

Please sign in to comment.