From 4f62f39b8979cb3a5c52d65d425e530dc0770665 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Sun, 16 Feb 2025 17:27:18 +0100 Subject: Fix solution type "deSolve" for a special case The special case occurs if not observed data for time zero are available. Fixes #16. Write NEWS and update docs. A lot of html was regenerated, because I had checked out the main branch in between, which made pkgdown believe that I have changed the help files. --- docs/dev/articles/web_only/compiled_models.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'docs/dev/articles/web_only/compiled_models.html') diff --git a/docs/dev/articles/web_only/compiled_models.html b/docs/dev/articles/web_only/compiled_models.html index 113f7b67..a88a19ee 100644 --- a/docs/dev/articles/web_only/compiled_models.html +++ b/docs/dev/articles/web_only/compiled_models.html @@ -84,7 +84,7 @@

Johannes Ranke

-

2025-02-14

+

2025-02-16

Source: vignettes/web_only/compiled_models.rmd
compiled_models.rmd
@@ -162,10 +162,10 @@ solution is also implemented, which is included in the tests below.

print("R package rbenchmark is not available") }
##                    test replications relative elapsed
-## 4            analytical            1    1.000   0.102
-## 3     deSolve, compiled            1    1.324   0.135
-## 2      Eigenvalue based            1    1.706   0.174
-## 1 deSolve, not compiled            1   22.627   2.308
+## 4 analytical 1 1.000 0.115 +## 3 deSolve, compiled 1 1.217 0.140 +## 2 Eigenvalue based 1 1.652 0.190 +## 1 deSolve, not compiled 1 20.522 2.360

We see that using the compiled model is by more than a factor of 10 faster than using deSolve without compiled code.

@@ -196,8 +196,8 @@ compiled code is available.

}
## Temporary DLL for differentials generated and loaded
##                    test replications relative elapsed
-## 2     deSolve, compiled            1    1.000   0.170
-## 1 deSolve, not compiled            1   23.865   4.057
+## 2 deSolve, compiled 1 1.000 0.180 +## 1 deSolve, not compiled 1 23.656 4.258

Here we get a performance benefit of a factor of 24 using the version of the differential equation model compiled from C code!

This vignette was built with mkin 1.2.10 on

-- cgit v1.2.1