Skip to contents

Returns the number of iterations used to produce this spatial interaction model

Usage

sim_iterations(sim, ...)

Arguments

sim

a spatial interaction model object

...

additional parameters

Value

a number of iterations that may be one if the spatial interaction model has been obtained using a static model (see static_blvim()).

See also

Examples

positions <- matrix(rnorm(10 * 2), ncol = 2)
distances <- as.matrix(dist(positions))
production <- rep(1, 10)
attractiveness <- c(2, rep(1, 9))
model <- static_blvim(distances, production, 1.5, 1, attractiveness)
sim_iterations(model) ## must be one
#> [1] 1