Compile ODE model to c++ function
compile_sim_cpp(
code,
dose_code,
pk_code,
size,
p,
cpp_show_code,
code_init = NULL,
state_init = NULL,
declare_variables = NULL,
variables = NULL,
covariates = NULL,
obs = NULL,
dose = NULL,
iov = NULL,
compile = TRUE,
verbose = FALSE,
as_is = FALSE
)
List containing ODE definition in C++ code and simulation function
C++ code ODE system
C++ code per dose event
C++ code per any event (similar to $PK)
size of ODE system
parameters (list)
show output c++ function?
code for initialization of state
state init vector
variable declaration for all required variables (including user-specified)
only the user-specified variables
covariates specification
observation specification
dose specification
iov specification
compile or not?
show more output
use C-code as-is, don't substitute line-endings or shift indices