From 70591022c07f0e8fb4dd67789b7c8d78af8ebc18 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 2 May 2019 13:17:05 +0200 Subject: Better initials for error model parameters - Also make it possible to specify initial values for error model parameters. - Run tests - Rebuild docs --- docs/articles/web_only/compiled_models.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'docs/articles/web_only/compiled_models.html') diff --git a/docs/articles/web_only/compiled_models.html b/docs/articles/web_only/compiled_models.html index 597b7c55..ee279f51 100644 --- a/docs/articles/web_only/compiled_models.html +++ b/docs/articles/web_only/compiled_models.html @@ -88,7 +88,7 @@

Performance benefit by using compiled model definitions in mkin

Johannes Ranke

-

2019-04-10

+

2019-05-02

@@ -163,14 +163,14 @@ ## Warning in mkinfit(SFO_SFO, FOCUS_2006_D, solution_type = "deSolve", quiet ## = TRUE): Observations with value of zero were removed from the data
##                    test replications elapsed relative user.self sys.self
-## 3     deSolve, compiled            3   3.215    1.000     3.213        0
-## 1 deSolve, not compiled            3  42.468   13.209    42.445        0
-## 2      Eigenvalue based            3   4.666    1.451     4.663        0
+## 3     deSolve, compiled            3   3.178    1.000     3.176        0
+## 1 deSolve, not compiled            3  28.700    9.031    28.685        0
+## 2      Eigenvalue based            3   4.401    1.385     4.398        0
 ##   user.child sys.child
 ## 3          0         0
 ## 1          0         0
 ## 2          0         0
-

We see that using the compiled model is by a factor of around 13 faster than using the R version with the default ode solver, and it is even faster than the Eigenvalue based solution implemented in R which does not need iterative solution of the ODEs.

+

We see that using the compiled model is by a factor of around 9 faster than using the R version with the default ode solver, and it is even faster than the Eigenvalue based solution implemented in R which does not need iterative solution of the ODEs.

@@ -214,14 +214,14 @@ ## Warning in mkinfit(FOMC_SFO, FOCUS_2006_D, quiet = TRUE): Observations with ## value of zero were removed from the data
##                    test replications elapsed relative user.self sys.self
-## 2     deSolve, compiled            3   4.906    1.000     4.902        0
-## 1 deSolve, not compiled            3  70.459   14.362    70.421        0
+## 2     deSolve, compiled            3   4.549    1.000     4.547        0
+## 1 deSolve, not compiled            3  49.752   10.937    49.729        0
 ##   user.child sys.child
 ## 2          0         0
 ## 1          0         0
-

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

+

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

This vignette was built with mkin 0.9.49.4 on

-
## R version 3.5.3 (2019-03-11)
+
## R version 3.6.0 (2019-04-26)
 ## Platform: x86_64-pc-linux-gnu (64-bit)
 ## Running under: Debian GNU/Linux 9 (stretch)
## CPU model: AMD Ryzen 7 1700 Eight-Core Processor
-- cgit v1.2.1