From 21ad91256dc29423bd905de5c298fd23862b1f3b Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Mon, 14 Nov 2022 20:03:42 +0100 Subject: 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 --- tests/testthat/test_multistart.R | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/testthat/test_multistart.R') 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) -- cgit v1.2.1