14 #ifndef RK45Integrator_H_
15 #define RK45Integrator_H_
18 #include <rrRoadRunnerOptions.h>
119 virtual Variant getValue(std::string key);
152 unsigned stateVectorSize;
157 double *k1, *k2, *k3, *k4, *y, *ytmp;
160 double hCurrent, hmin, hmax;
162 double *k5, *k6, *err;
164 void testRootsAtInitialTime();
165 void applyEvents(
double timeEnd, std::vector<unsigned char> &previousEventStatus);
RoadRunner's Gillespie SSA integrator.
Base class for all code generation systems; allows compiling and evaluating the model.
Definition: rrExecutableModel.h:118
Definition: Integrator.h:62
Handles constructing an integrator and contains meta information about it.
Definition: Integrator.h:161
A Runge-Kutta Fehlberg method for roadrunner.
Definition: RK45Integrator.h:31
virtual double integrate(double t, double h)
Integrates the model from t to t + h.
virtual void syncWithModel(ExecutableModel *m)
Called whenever a new model is loaded to allow integrator to reset internal state.
std::string getDescription() const
Get the description for this integrator.
RK45Integrator(ExecutableModel *m)
Constructor: takes an executable model, does not own the pointer.
virtual ~RK45Integrator()
Destructor.
virtual void setListener(IntegratorListenerPtr)
void resetSettings()
Reset all integrator settings to their respective default values.
static std::string getRK45Name()
Get the name for this integrator.
static std::string getRK45Hint()
Get the hint for this integrator.
static std::string getRK45Description()
Get the description for this integrator.
IntegrationMethod getIntegrationMethod() const
Always deterministic for RK45.
virtual void restart(double t0)
Restarts the integrator.
std::string getHint() const
Get the hint for this integrator.
std::string getName() const
Get the name for this integrator.
virtual IntegratorListenerPtr getListener()
Definition: RK45Integrator.h:173
virtual std::string getDescription() const
Gets the description associated with this integrator type.
Definition: RK45Integrator.h:187
virtual std::string getName() const
Gets the name associated with this integrator type.
Definition: RK45Integrator.h:179
virtual std::string getHint() const
Gets the hint associated with this integrator type.
Definition: RK45Integrator.h:195
virtual Integrator * construct(ExecutableModel *model) const
Constructs a new integrator of a given type.
Definition: RK45Integrator.h:203