Save intermediate sums of states and parameters so that they can be used as factors in rate expressions and retured as part of the simulation history.
add_state_param_sum(model, sum_name, summands)
flexmodel
object
name of sum of state variables and parameters
character vector of regular expressions for identifying
state variables and parameters to sum together. See avail_for_sum
for a function that will return all names that these regular expressions
will search through.
updated flexmodel
Other flexmodel_definition_functions:
add_factr()
,
add_linearized_outflow()
,
add_parallel_accumulators()
,
add_rate()
,
add_state_mappings()
,
initial_population()
,
mat_rate()
,
rep_rate()
,
update_disease_free_state()
,
update_linearized_params()
,
update_tmb_indices()
,
vec_rate()