Description Usage Arguments Value
Integrate an ODE with lsoda.
1 2 3 4 5 6 7 | rlsoda(y, times, func, parms, ..., n_out = 0L, output = NULL,
rtol = 1e-06, atol = 1e-06, step_size_min = 0, step_size_max = 0,
step_size_initial = 0, step_max_n = 100000L, tcrit = NULL,
dllname = "", parms_are_real = TRUE, ynames = TRUE, outnames = NULL,
by_column = FALSE, return_initial = FALSE, return_statistics = FALSE,
return_time = FALSE, return_output_with_y = FALSE,
deSolve_compatible = FALSE)
|
y |
Initial conditions for the integration |
times |
Times where output is needed. Unlike |
func |
Function to integrate. Can be an R function of
arguments |
parms |
Parameters to pass through to the derivatives. |
... |
Dummy arguments - nothing is allowed here, but this means that all further arguments must be specified by name (not order) so I can easily reorder them later on. |
n_out |
Number of "output" variables (not differential
equation variables) to compute via the routine |
output |
The output routine; either an R function taking
arguments |
rtol |
The per-step relative tolerance. The total accuracy will be less than this. |
atol |
The per-step absolute tolerance. |
step_size_min |
The minimum step size. The actual minimum
used will be the largest of the absolute value of this
|
step_size_max |
The largest step size. By default there is
no maximum step size (Inf) so the solver can take as large a
step as it wants to. If you have short events you want the
solver to notice, then specify a smaller maximim step size here
(or use |
step_size_initial |
The initial step size. By default the integrator will guess the step size automatically, but one can be given here instead. |
step_max_n |
The maximum number of steps allowed. If the
solver takes more steps than this it will throw an error. Note
the number of evaluations of |
tcrit |
An optional vector of critical times that the solver
must stop at (rather than interpolating over). This can include
an end time that we can't go past, or points within the
integration that must be stopped at exactly (for example cases
where the derivatives change abruptly). Note that this differs
from the interpretation of this parameter in deSolve; there
|
dllname |
Name of the shared library (without extension) to
find the function |
parms_are_real |
Logical, indicating if |
ynames |
Logical, indicating if the output should be named
following the names of the input vector |
outnames |
An optional character vector, used when
|
by_column |
Logical, indicating if the output should be
returned organised by column (rather than row). This incurs a
slight cost for transposing the matrices. If you can work with
matrices that are transposed relative to |
return_initial |
Logical, indicating if the output should include the initial conditions (like deSolve). |
return_statistics |
Logical, indicating if statistics about
the run should be included. If |
return_time |
Logical, indicating if a row (or column if
|
return_output_with_y |
Logical, indicating if the output
should be bound together with the returned matrix |
deSolve_compatible |
Logical, indicating if we should run in
"deSolve compatible" output mode. This enables the options
|
At present the return value is transposed relative to deSolve. This might change in future.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.