init_fleet: Initialise fleet

View source: R/init_fleet.R

init_fleetR Documentation

Initialise fleet

Description

init_fleet sets up the parameters and results data frame to record the catches from the simulation.

Usage

init_fleet(
  sim_init = NULL,
  VPT = NULL,
  Qs = NULL,
  fuelC = 0,
  step_params = NULL,
  past_knowledge = FALSE,
  past_year_month = FALSE,
  past_trip = FALSE,
  threshold = NULL
)

Arguments

sim_init

is the output (a list) from the sim_init function with the indexing for the simulation.

VPT

is a named vector of numerics detailing the value-per-tonne for catches from each of the species (same for all fleets)

Qs

is a list (an element for each fleet) with each element containing a named vector with the catchability parameters for each species the vessels in the fleet

fuelC

is the fuel cost per unit of distance moved in euro

step_params

is a list (an element for each fleet) with each element containing a named vector with the step parameters used in step_length. This must include the named elements rate, B1, B2, B3.

past_knowledge

is a Boolean (TRUE / FALSE) whether past knowledge should determine fishing location (only after the first year)

past_year_month

is a Boolean (TRUE / FALSE) that indicates whether the same month in previous years should be included in the past knowledge decision

past_trip

is a Boolean (TRUE / FALSE) that indicates whether the past trip undertaken should be included in the past knowledge decision

knowledge_threshold

is a numeric (0 - 1) detailing the threshold at which a fishing tow should be considered "good" and included in the selection of possible choices of starting fishing locations in future tows.

Value

is a list with three elements containing i) the fleet parameters, a named list fleet_params, ii) the fleet catches, catches_list, which is a list of a list. For thecatches_list the first element denotes the fleet number, the second element is the vessel number with a dataframe for recording the vessels catches. Finally, iii) is the spatial catches for the fleets, which is a list (fleet) containing a list (vessels) containing a list (population) - which is to be passed to the delay difference model.

Examples

None yet, to add

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