utility_layer: Utility layer for initialisation.

Description Usage Arguments Value Examples

View source: R/initialise.R

Description

Function to initialise a layer of the UTILITY array of the G-MSE model.

Usage

1
utility_layer(agent_IDs, agent_number, res_types)

Arguments

agent_IDs

Vector of agent IDs to use (including -1 and -2, which indicate direct actions to the landscape and resources, respectively)

agent_number

The number of agents to use (length of agent_IDs)

res_types

The number of unique resource types (cols 2-4 of RESOURCES); for now, this should always be 1

Value

A layer of the COST or ACTION array, as called in building either make_costs or make_utilities, respectively. This layer corresponds to the costs or actions of a single agent, with the larger array in in which it is placed including all agents

Examples

1
2
3
4
## Not run: 
UTIL_LIST <- utility_layer(agent_IDs, agent_number, res_types);

## End(Not run)

GMSE documentation built on Aug. 2, 2021, 5:07 p.m.