SSRootfind(alg) finds the steady state of a SteadyStateProblem() by
solving f(u, p, Inf) = 0 with a nonlinear algorithm. DynamicSS(alg)
integrates the differential equations with an ODE algorithm until every
derivative satisfies |du| <= abstol + reltol * |u|, or tspan is
reached.
Examples
prob <- SteadyStateProblem(function(u, p, t) p[1] - p[2] * u, u0 = 0, p = c(3, 2))
solve(prob, SSRootfind())$u
#> [1] 1.5
solve(prob, DynamicSS())$u
#> [1] 1.5