simulation.h Source File
|
CPP API
|
models/abm/simulation.h
Go to the documentation of this file.
void log(const T &t)
Logs new records according to the Writer and Loggers.
Definition: history.h:96
Run the Simulation in discrete steps, evolve the Model and report results.
Definition: models/abm/simulation.h:37
Model & get_model()
Get the Model that this Simulation evolves.
Definition: models/abm/simulation.h:91
const Model & get_model() const
Definition: models/abm/simulation.h:95
TimePoint m_t
The current TimePoint of the Simulation.
Definition: models/abm/simulation.h:110
TimeSpan m_dt
The length of the time steps.
Definition: models/abm/simulation.h:111
void store_result_at(TimePoint t)
void evolve_model(TimePoint tmax)
Definition: models/abm/simulation.h:102
Simulation(TimePoint t0, Model &&model)
Create a simulation.
Definition: models/abm/simulation.h:46
Simulation(TimePoint t0, size_t num_agegroups)
Create a Simulation with an empty Model.
Definition: models/abm/simulation.h:59
TimePoint get_time() const
Get the current time of the Simulation.
Definition: models/abm/simulation.h:83
void advance(TimePoint tmax, History &... history)
Run the Simulation from the current time to tmax.
Definition: models/abm/simulation.h:70
Model m_model
The Model to simulate.
Definition: models/abm/simulation.h:109
static min_max_return_type< ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 >, ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > >::type min(const ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > &a, const ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > &b)
Definition: ad.hpp:2599
TimeSpan hours(int hours)
Create a TimeSpan of a specified number of hours.
Definition: time.h:339
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
Definition: io.h:94
Generated by