Create a sim_list object from a list of spatial interaction objects
Source:R/sim_list.R
sim_list.RdThe 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.
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))