22 #include <boost/functional/value_factory.hpp>
23 #include <boost/numeric/odeint.hpp>
27 using boost::value_factory;
34 template<
typename System,
typename State,
typename Stepper>
38 Solver2(
double& eps_abs,
double& eps_rel)
39 : m_eps_abs(eps_abs), m_eps_rel(eps_rel)
42 void operator()(System system, State& start_state,
43 double start_time,
double end_time,
double dt)
45 integrate_adaptive(make_controlled<Stepper>(m_eps_abs, m_eps_rel),
46 system, start_state, start_time, end_time, dt);
58 OdeintFactories2Map::OdeintFactories2Map()
60 make_pair(
"runge_kutta_cash_karp54",
61 value_factory<Solver2<System, State, runge_kutta_cash_karp54<State>>>()),
62 make_pair(
"runge_kutta_dopri5",
63 value_factory<Solver2<System, State, runge_kutta_dopri5<State>>>()),
64 make_pair(
"runge_kutta_fehlberg78",
65 value_factory<Solver2<System, State, runge_kutta_fehlberg78<State>>>())
Namespace for the core simulator.
Interface for OdeintFactories2Map.