init_sim: Initialise simulation

View source: R/init_sim.R

init_simR Documentation

Initialise simulation

Description

init_sim sets up the general simulation parameters such as number of tows in a day, number of days fished in a week, how often species movement occurs and number of years for the simulation. It also creates some vector and matrix structures which are used in the init_pop and init_fleet functions.

Usage

init_sim(
  n_years = 1,
  n_tows_day = 4,
  n_days_wk_fished = 5,
  n_fleets = 1,
  n_vessels = 1,
  n_species = 1,
  nrows = nrows,
  ncols = ncols,
  move_freq = 2
)

Arguments

n_years

is an integar defining the number of years for the simulation

n_days_wk_fished

is an integar defining the number of days in a calendar week that are fished (e.g. 5 (out of 7))

n_fleets

is an integar defining the number of fleets in the simulation

n_vessels

is an integar defining the number of vessels in each fleet

n_species

is an integar defining the number of species in the simulation

nrows

Numeric integer with the y dimension of the field in nrow * ncol

ncols

Numeric integer with the x dimension of the field in nrow * ncol

move_freq

is an integar defining the duration (in weeks) between spatial movements for the populations

n_tow_day

is an integar defining the number of tows in a days fishing

Value

is a list of lists, detailing the indexs and data formats necessary for the simulation.

Examples

init_sim(n_years = 1, n_tows_day = 4, n_days_wk_fished = 5,
n_fleets = 1, n_vessels = 1, n_species = 1, move_freq = 2)

pdolder/MixFishSim documentation built on Oct. 17, 2023, 4:25 p.m.