rgsl_odeiv2

An R package that solves a series of initial value problems in C via the GNU scientific library (ode solvers). The C code calls gsl_odeiv2 module functions to solve the problem or problems. The goal is to offload as much work as possible to the C code and keep the overhead minimal. That is why this package expects to solve a set of problems, rather than one, for the same model file (varying in e.g.: initial conditions, or parameters). The package contains 3 interface functions, they accept different ways of defining a set of problems,each with their own drawbacks and advantages. The interface functions are described in the following Sections. The ODE has to exist as a shared library (.so) file (currently in the current working directory: ?setwd and ?getwd ). There are some assumptions we make about the contents of the shared library file. Here we assume that the solutions serve some scientific purpose and the lab experiments come with observables, some measureable values that depend on the system's state (but are not the full state vector). We call the part of the model that calculates the observables ${ModelName}_func() (vfgen also calls them Functions of the model).

Create an account

EBRAINS is open and free. Sign up now for complete access to our tools and services.