aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_multistart.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-11-14 20:03:42 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2022-11-14 20:03:42 +0100
commit21ad91256dc29423bd905de5c298fd23862b1f3b (patch)
tree225e2f69ed75b96e5528bcf7b8f25eb3864b75da /tests/testthat/test_multistart.R
parent0db7df4bf632a013099b17d5e817a7dc7146c394 (diff)
Automatic starting parameters for saem.mmkin
For the case of mkin transformations. This gives faster convergence, and appears to avoid problems with numeric ODE solutions
Diffstat (limited to 'tests/testthat/test_multistart.R')
-rw-r--r--tests/testthat/test_multistart.R5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/testthat/test_multistart.R b/tests/testthat/test_multistart.R
index 56eb140c..c1a10d10 100644
--- a/tests/testthat/test_multistart.R
+++ b/tests/testthat/test_multistart.R
@@ -21,7 +21,10 @@ test_that("multistart works for saem.mmkin models", {
anova_biphasic <- anova(saem_biphasic_m,
best(saem_biphasic_m_multi))
- expect_true(anova_biphasic[2, "AIC"] < anova_biphasic[1, "AIC"])
+ # With the new starting parameters we do not improve
+ # with multistart any more
+ expect_equal(anova_biphasic[2, "AIC"], anova_biphasic[1, "AIC"],
+ tolerance = 1e-4)
skip_on_travis() # Plots are platform dependent
llhist_sfo <- function() llhist(saem_sfo_s_multi)

Contact - Imprint