Skip to contents

The collection of sim objects represented by a sim_list object is assumed to be homogeneous, that is to correspond to a fix set of origin and destination locations, associated to a fixed cost matrix.

Usage

sim_list(sims, validate = TRUE)

Arguments

sims

a list of homogeneous spatial interaction objects

validate

should the function validate the homogeneity of the list of spatial interaction objects (defaults to TRUE)

Value

a sim_list object

Examples

positions <- matrix(rnorm(10 * 2), ncol = 2)
distances <- as.matrix(dist(positions))
production <- rep(1, 10)
attractiveness <- c(2, rep(1, 9))
flows_1 <- blvim(distances, production, 1.5, 1, attractiveness)
flows_2 <- blvim(distances, production, 1.25, 2, attractiveness)
all_flows <- sim_list(list(flows_1, flows_2))