make_costs | R Documentation |
Initialise the cost array of the G-MSE model.
make_costs(AGENTS, RESOURCES, res_opts, lnd_opts, min_cost)
AGENTS |
The array of agents produced in the main gmse() function |
RESOURCES |
The resources array produced by the resource function within GMSE |
res_opts |
A binary vector produced by the GMSE function defining what types of stakeholder interactions with resources (scaring, culling, castration, feeding, help_offspring) are permitted |
lnd_opts |
A binary vector produced by the GMSE function defining what types of stakeholder interactions with the landscape (tend_crops, kill_crops) are permitted |
min_cost |
The minimum cost that any agent (stakeholder or manager) incurrs for performing one action. This value is also set as an option in the main gmse() function (minimum_cost). This cost is recommended to be set to a value of 10, which gives managers increased precision when adjusting costs. For example, if the mimimum cost for a stakeholder performing an action is low, then a small change in the mimimum cost could halve or double the number of actions performed from the manager's perspective, with no options in between; hence the benefit of having a high mimimum cost combined with a higher agent budget (see the main gmse() function) |
A three dimensional array of initialised cost values for agent (manager and stakeholder) actions of the same dimensions as the ACTION array in GMSE
## Not run: COST <- make_costs( AGENTS = AGENTS, RESOURCES = starting_resources, res_opts = user_res_opts, lnd_opts = user_lnd_opts, min_cost = minimum_cost); ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.