26 #ifndef CASADI_INTEGRATION_TOOLS_HPP
27 #define CASADI_INTEGRATION_TOOLS_HPP
29 #include "casadi/core/function.hpp"
41 std::vector<double>
collocation_points(casadi_int order,
const std::string& scheme=
"radau");
45 const std::string& scheme=
"radau");
76 std::vector< std::vector<double> > &SWIG_OUTPUT(C),
77 std::vector< double > &SWIG_OUTPUT(D));
136 CASADI_EXPORT Function
simpleRK(Function f, casadi_int N=10, casadi_int order=4);
153 Function
simpleIRK(Function f, casadi_int N=10, casadi_int order=4,
154 const std::string& scheme=
"radau",
155 const std::string& solver=
"newton",
156 const Dict& solver_options =
Dict());
163 const Dict& integrator_options =
Dict());
247 Function& SWIG_OUTPUT(state_to_orig), Function& SWIG_OUTPUT(phi));
250 Function& SWIG_OUTPUT(state_to_orig), Function& SWIG_OUTPUT(phi));
282 const std::string& init_solver,
const DMDict& init_strength=
DMDict(),
283 const Dict& init_solver_options=
Dict());
286 const std::string& init_solver,
const DMDict& init_strength=
DMDict(),
287 const Dict& init_solver_options=
Dict());
Function integrator(const std::string &name, const std::string &solver, const SXDict &dae, const Dict &opts)
std::map< std::string, MX > MXDict
void collocation_coeff(const std::vector< double > &tau, DM &C, DM &D, DM &B)
Obtain collocation interpolating matrices.
Function dae_init_gen(const MXDict &dae, const MXDict &dae_red, const std::string &init_solver, const DMDict &init_strength, const Dict &init_solver_options)
Obtain a generator Function for producing consistent initial guesses of a reduced DAE.
Function simpleRK(Function f, casadi_int N, casadi_int order)
Construct an explicit Runge-Kutta integrator.
std::map< std::string, SX > SXDict
MXDict dae_map_semi_expl(const MXDict &dae, const MXDict &dae_red, Function &state_to_orig, Function &phi)
Turn a reduced DAE into a semi explicit form suitable for CasADi integrator.
void collocation_interpolators(const std::vector< double > &tau, std::vector< std::vector< double > > &C, std::vector< double > &D)
Obtain collocation interpolating matrices.
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.
MXDict dae_reduce_index(const MXDict &dae, Dict &stats, const Dict &opts)
Reduce index.
Function simpleIRK(Function f, casadi_int N, casadi_int order, const std::string &scheme, const std::string &solver, const Dict &solver_options)
Construct an implicit Runge-Kutta integrator using a collocation scheme.
std::vector< double > collocation_points(casadi_int order, const std::string &scheme)
Obtain collocation points of specific order and scheme.
Function simpleIntegrator(Function f, const std::string &plugin, const Dict &plugin_options)
Simplified wrapper for the Integrator class.
std::vector< long double > collocation_pointsL(casadi_int order, const std::string &scheme)
Obtain collocation points of specific order and scheme.
std::map< std::string, DM > DMDict