Uses a static Rpath model and creates a scenario consisting of 5 list objects:
params generated by rsim.params(), start_state generated by rsim.state(),
forcing generated by rsim.forcing(), fishing generated by rsim.fishing(),
and 'stanzas generated by rsim.stanzas().
Arguments
- Rpath
R object containing a static
Rpathmodel.- Rpath.params
R object containing the parameters needed to create a
Rpathmodel. This is generated either by thecreate.rpath.params()orread.rpath.params()functions.- years
A vector of each year of the simulation.
Value
Returns an Rsim.scenario object that can be supplied to the
rsim.run() function. Rsim.scenario is a list of 5 objects:
params, list of 39 dynamic parameters and vectors derived from anRpathmodel, see output ofrsim.params()start_state, list of 9 initial value vectors for biomass and size structured stanza groups, see output ofrsim.state()andrsim.stanzas()forcing, list of 7 matrices for time series forcing of biological attributes, see output ofrsim.forcing()fishing, list of 3 matrices for time series forcing of fishing attributes, see output ofrsim.fishing()stanzas, list of 21 parameters and vectors for age structured groups, see output ofrsim.stanzas()
See also
Other Rsim functions:
extract.node(),
rsim.params(),
rsim.plot(),
rsim.run(),
rsim.step(),
write.Rsim()
Examples
# Read in Rpath parameter file and generate model object
Rpath <- rpath(AB.params)
# Create a 50 yr Rsim scenario
Rsim.scenario <- rsim.scenario(Rpath, AB.params, years = 1:50)
