26 #ifndef CASADI_INTEGRATION_TOOLS_HPP
27 #define CASADI_INTEGRATION_TOOLS_HPP
29 #include "casadi/core/function.hpp"
44 std::vector<long double> collocation_pointsL(casadi_int order,
45 const std::string& scheme=
"radau");
76 std::vector< std::vector<double> > &SWIG_OUTPUT(C),
77 std::vector< double > &SWIG_OUTPUT(D));
154 const std::string& scheme=
"radau",
155 const std::string& solver=
"newton",
156 const Dict& solver_options =
Dict());
163 const Dict& integrator_options =
Dict());
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());
Sparse matrix class. SX and DM are specializations.
CASADI_EXPORT Function integrator(const std::string &name, const std::string &solver, const SXDict &dae, const Dict &opts=Dict())
std::map< std::string, MX > MXDict
CASADI_EXPORT void collocation_coeff(const std::vector< double > &tau, DM &C, DM &D, DM &B)
Obtain collocation interpolating matrices.
CASADI_EXPORT Function dae_init_gen(const MXDict &dae, const MXDict &dae_red, const std::string &init_solver, const DMDict &init_strength=DMDict(), const Dict &init_solver_options=Dict())
Obtain a generator Function for producing consistent initial guesses of a reduced DAE.
CASADI_EXPORT Function simpleRK(Function f, casadi_int N=10, casadi_int order=4)
Construct an explicit Runge-Kutta integrator.
CASADI_EXPORT std::vector< double > collocation_points(casadi_int order, const std::string &scheme="radau")
Obtain collocation points of specific order and scheme.
std::map< std::string, SX > SXDict
CASADI_EXPORT 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.
CASADI_EXPORT 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.
CASADI_EXPORT MXDict dae_reduce_index(const MXDict &dae, Dict &stats, const Dict &opts={})
Reduce index.
CASADI_EXPORT Function simpleIRK(Function f, casadi_int N=10, casadi_int order=4, const std::string &scheme="radau", const std::string &solver="newton", const Dict &solver_options=Dict())
Construct an implicit Runge-Kutta integrator using a collocation scheme.
CASADI_EXPORT Function simpleIntegrator(Function f, const std::string &integrator="cvodes", const Dict &integrator_options=Dict())
Simplified wrapper for the Integrator class.
std::map< std::string, DM > DMDict