Skip to content

Commit

Permalink
tighter tolerances
Browse files Browse the repository at this point in the history
  • Loading branch information
helske committed Jan 6, 2025
1 parent d5989db commit 69dcb83
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions R/fit_fanhmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ fit_fanhmm <- function(model, inits, init_sd, restarts, lambda, method,
list(
ftol_abs = 0,
xtol_abs = 0,
ftol_rel = 1e-8,
xtol_rel = 1e-6,
ftol_rel = 1e-12,
xtol_rel = 1e-8,
maxeval = 1e4,
print_level = 0,
algorithm = "NLOPT_LD_LBFGS",
Expand All @@ -35,8 +35,8 @@ fit_fanhmm <- function(model, inits, init_sd, restarts, lambda, method,
list(
ftol_abs = 0,
xtol_abs = 0,
ftol_rel = 1e-6,
xtol_rel = 1e-4,
ftol_rel = 1e-8,
xtol_rel = 1e-6,
maxeval = 1e4,
print_level = 0,
algorithm = "NLOPT_LD_LBFGS",
Expand All @@ -54,8 +54,8 @@ fit_fanhmm <- function(model, inits, init_sd, restarts, lambda, method,
list(
ftol_abs = 0,
xtol_abs = 0,
ftol_rel = 1e-6,
xtol_rel = 1e-4,
ftol_rel = 1e-8,
xtol_rel = 1e-6,
maxeval = 100,
print_level = 0
),
Expand Down
12 changes: 6 additions & 6 deletions R/fit_mnhmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ fit_mnhmm <- function(model, inits, init_sd, restarts, lambda, method,
list(
ftol_abs = 0,
xtol_abs = 0,
ftol_rel = 1e-8,
xtol_rel = 1e-6,
ftol_rel = 1e-12,
xtol_rel = 1e-8,
maxeval = 1e4,
print_level = 0,
algorithm = "NLOPT_LD_LBFGS",
Expand All @@ -35,8 +35,8 @@ fit_mnhmm <- function(model, inits, init_sd, restarts, lambda, method,
list(
ftol_abs = 0,
xtol_abs = 0,
ftol_rel = 1e-6,
xtol_rel = 1e-4,
ftol_rel = 1e-8,
xtol_rel = 1e-6,
maxeval = 1e4,
print_level = 0,
algorithm = "NLOPT_LD_LBFGS",
Expand All @@ -54,8 +54,8 @@ fit_mnhmm <- function(model, inits, init_sd, restarts, lambda, method,
list(
ftol_abs = 0,
xtol_abs = 0,
ftol_rel = 1e-6,
xtol_rel = 1e-4,
ftol_rel = 1e-8,
xtol_rel = 1e-6,
maxeval = 100,
print_level = 0
),
Expand Down
12 changes: 6 additions & 6 deletions R/fit_nhmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ fit_nhmm <- function(model, inits, init_sd, restarts, lambda, method,
list(
ftol_abs = 0,
xtol_abs = 0,
ftol_rel = 1e-8,
xtol_rel = 1e-6,
ftol_rel = 1e-12,
xtol_rel = 1e-8,
maxeval = 1e4,
print_level = 0,
algorithm = "NLOPT_LD_LBFGS",
Expand All @@ -35,8 +35,8 @@ fit_nhmm <- function(model, inits, init_sd, restarts, lambda, method,
list(
ftol_abs = 0,
xtol_abs = 0,
ftol_rel = 1e-6,
xtol_rel = 1e-4,
ftol_rel = 1e-8,
xtol_rel = 1e-6,
maxeval = 1e4,
print_level = 0,
algorithm = "NLOPT_LD_LBFGS",
Expand All @@ -54,8 +54,8 @@ fit_nhmm <- function(model, inits, init_sd, restarts, lambda, method,
list(
ftol_abs = 0,
xtol_abs = 0,
ftol_rel = 1e-6,
xtol_rel = 1e-4,
ftol_rel = 1e-8,
xtol_rel = 1e-6,
maxeval = 100,
print_level = 0
),
Expand Down

0 comments on commit 69dcb83

Please sign in to comment.