Skip to content

Commit 18c7ee0

Browse files
committed
add Adams-Moulate ODE solver doc
1 parent e55a78d commit 18c7ee0

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

src/functions-reference/higher-order_functions.Rmd

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,21 @@ control parameters for the solver.
210210
Deprecated. Solves the ODE system for the times provided with a
211211
non-stiff solver. This calls the Runge Kutta Dopri algorithm.
212212

213+
<!-- real[]; integrate_ode_adams; (function ode, real[] initial_state, real initial_time, real[] times, real[] theta, data real[] x_r, data int[] x_i); -->
214+
\index{{\tt \bfseries integrate\_ode\_adams }!{\tt (function ode, real[] initial\_state, real initial\_time, real[] times, real[] theta, data real[] x\_r, data int[] x\_i): real[]}|hyperpage}
215+
216+
`real[]` **`integrate_ode_adams`**`(function ode, real[] initial_state, real initial_time, real[] times, real[] theta, data real[] x_r, data int[] x_i)`<br>\newline
217+
Solves the ODE system for the times provided using the Adams-Moulton
218+
method with the implementation from CVODES.
219+
220+
<!-- real[]; integrate_ode_adams; (function ode, real[] initial_state, real initial_time, real[] times, real[] theta, data real[] x_r, data int[] x_i, data real rel_tol, data real abs_tol, dta int max_num_steps); -->
221+
\index{{\tt \bfseries integrate\_ode\_adams }!{\tt (function ode, real[] initial\_state, real initial\_time, real[] times, real[] theta, data real[] x\_r, data int[] x\_i, data real rel\_tol, data real abs\_tol, dta int max\_num\_steps): real[]}|hyperpage}
222+
223+
`real[]` **`integrate_ode_adams`**`(function ode, real[] initial_state, real initial_time, real[] times, real[] theta, data real[] x_r, data int[] x_i, data real rel_tol, data real abs_tol, dta int max_num_steps)`<br>\newline
224+
Solves the ODE system for the times provided using the Adams-Moulton
225+
method with the implementation from CVODES with additional control
226+
parameters for the CVODES solver.
227+
213228
### Stiff Solver
214229

215230
<!-- real[]; integrate_ode_bdf; (function ode, real[] initial_state, real initial_time, real[] times, real[] theta, data real[] x_r, data int[] x_i); -->

src/stan-users-guide/odes.Rmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# Ordinary Differential Equations {#ode-solver.chapter}
22

33
Stan provides a built-in mechanism for specifying and solving systems
4-
of ordinary differential equations (ODEs). Stan provides two
5-
different integrators, one tuned for solving non-stiff systems and one
4+
of ordinary differential equations (ODEs). Stan provides three
5+
different integrators, tuned for solving non-stiff systems and
66
for stiff systems.
77

88
* `rk45`: a fourth and fifth order Runge-Kutta method for
99
non-stiff systems [@DormandPrince:1980; @AhnertMulansky:2011], and
1010

11+
* `adams`: a variable-step, variable-order,
12+
Adams-Moulton formula implementation for non-stiff systems
13+
[@CohenHindmarsh:1996; @SerbanHindmarsh:2005]
14+
1115
* `bdf`: a variable-step, variable-order,
1216
backward-differentiation formula implementation for stiff systems
1317
[@CohenHindmarsh:1996; @SerbanHindmarsh:2005]

0 commit comments

Comments
 (0)