simulation.h Source File
|
CPP API
|
memilio/compartments/simulation.h
Go to the documentation of this file.
34 using DefaultIntegratorCore = mio::ControlledStepperWrapper<FP, boost::numeric::odeint::runge_kutta_cash_karp54>;
Interface class defining the integration step used in a SystemIntegrator.
Definition: integrator.h:48
Eigen::Ref< Eigen::VectorX< FP > > advance(FP tmax)
Run the simulation up to a given time.
Definition: memilio/compartments/simulation.h:66
Simulation(Model const &model, FP t0=0., FP dt=0.1)
Setup the simulation with an ODE solver.
Definition: memilio/compartments/simulation.h:54
stores vectors of values at time points (or some other abstract variable) the value at each time poin...
Definition: time_series.h:58
Run the Simulation in discrete steps, evolve the Model and report results.
Definition: models/abm/simulation.h:37
void advance(TimePoint tmax, History &... history)
Run the Simulation from the current time to tmax.
Definition: models/abm/simulation.h:70
Eigen::Ref< Eigen::VectorX< FP > > advance(const Integrands &... fs, FP tmax, TimeSeries< FP > &results)
Run the simulation up to a given time.
Definition: simulation_base.h:165
const Model & get_model() const
Get a reference to the model owned and used by the simulation.
Definition: simulation_base.h:131
TimeSeries< FP > & get_result()
Returns the simulation result describing the model population in each time step.
Definition: simulation_base.h:116
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
requires(!std::is_trivial_v< T >) void BinarySerializerObject
Definition: binary_serializer.h:333
concept IsCompartmentalModelSimulation
Concept to check if a type is a simulation for a compartmental model.
Definition: memilio/compartments/simulation.h:82
TimeSeries< FP > simulate(FP t0, FP tmax, FP dt, Model const &model, std::unique_ptr< OdeIntegratorCore< FP >> &&integrator_core=nullptr)
Run a Simulation of a CompartmentalModel.
Definition: memilio/compartments/simulation.h:100
Definition: io.h:94
Generated by