Run leapfrog model fit from initial state

run_model_from_state(
  parameters,
  configuration,
  initial_state,
  start_from_year,
  output_years = seq(1970, 2030)
)

Arguments

parameters

Projection parameters

configuration

The model configuration to run, see list_model_configurations() for available configurations

initial_state

The model will run from this initial state

start_from_year

Start the model simulation from a particular year

output_years

Which years of the model to return from the simulation, defaults to all years from 1970 to 2030. Also used to control what years the simulation is run for. If output only 2030, simulation will be run from projection_start_year passed in the parameters list.

Value

List of model outputs, where the last dimension of each element is time, e.g. p_total_pop state variable has dimensions 81 x 2. If output_years specified has length 61 then the p_total_pop output will have dimensions 81 x 2 x 61.