26 #ifndef CASADI_RUNGE_KUTTA_HPP
27 #define CASADI_RUNGE_KUTTA_HPP
29 #include "casadi/core/integrator_impl.hpp"
30 #include <casadi/solvers/casadi_integrator_rk_export.h>
55 class RungeKutta :
public FixedStepIntegrator {
59 RungeKutta(
const std::string& name,
const Function& dae,
double t0,
60 const std::vector<double>& tout);
63 static Integrator* creator(
const std::string& name,
const Function& dae,
64 double t0,
const std::vector<double>& tout) {
65 return new RungeKutta(name, dae, t0, tout);
69 ~RungeKutta()
override;
72 const char* plugin_name()
const override {
return "rk";}
75 std::string class_name()
const override {
return "RungeKutta";}
78 void init(
const Dict& opts)
override;
81 void setup_step()
override;
84 static const std::string meta_doc;
87 void serialize_body(SerializingStream &s)
const override;
90 static ProtoFunction* deserialize(DeserializingStream& s) {
return new RungeKutta(s); }
95 explicit RungeKutta(DeserializingStream& s);
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.