Skip to contents

Models

Generate and compile the solver of an ODE model, natively or against SUNDIALS CVODES.

cppODE()
Generate and Compile a C++ ODE Solver
cvode()
Generate and Compile an ODE Solver Linked Against SUNDIALS CVODE(S)
expressions
Expressions in Model Equations
compile()
Compile Generated C++ Model Code

Solving

Solve a compiled model with sensitivities, read forcings and solver statistics.

solveODE()
Run a Compiled ODE Model
forcingValues()
Values of Forcings
diagnostics()
Print Solver Diagnostics

Reverse mode

Control the backward sweep and free the checkpoints of a kept forward pass.

adjointControl()
Controls of a Reverse Solve
releaseStore()
Release the Checkpoints of a Reverse Solve

Batches of conditions

Many conditions of one model in one call, in parallel.

solveODEBatch()
Solve Many Conditions in One Call
prepareBatch()
Prepare a Batch for Repeated Solving
solveBatch()
Solve a Prepared Batch

Algebraic functions and steady states

Compiled algebraic functions with their derivatives, and steady states by pseudo-transient continuation.

cppFUN()
Compile Algebraic Functions with Optional Derivatives
evaluateMany()
Evaluate Several Compiled Functions at Once
ptc()
Steady State by Pseudo-Transient Continuation

Setup

Check the toolchain and the optional libraries, build them, and manage threads and native symbols.

codegenAvailable()
Can Code Be Generated and Compiled Here?
batchAvailable()
Will a Batch Run in Parallel?
forkGuard()
Report the BLAS Fork Guard
installLibs()
Build the Optional Solver Libraries from Source
clearNativeSymbols()
Forget Which Shared Object Exports Which Entry Point