cppSim: Fast and Memory Efficient Spatial Interaction Models

Building on top of the 'RcppArmadillo' linear algebra functionalities to do fast spatial interaction models in the context of urban analytics, geography, transport modelling. It uses the Newton root search algorithm to determine the optimal cost exponent and can run country level models with thousands of origins and destinations. It aims at implementing an easy approach based on matrices, that can originate from various routing and processing steps earlier in an workflow. Currently, the simplest form of production, destination and doubly constrained models are implemented. Schlosser et al. (2023) <doi:10.48550/arXiv.2309.02112>.

Version: 0.2
Depends: R (≥ 3.6)
Imports: Rcpp
LinkingTo: Rcpp, RcppArmadillo
Suggests: data.table, foreach, knitr, rlist, rmarkdown, cli, sf, testthat (≥ 3.0.0)
Published: 2025-09-03
DOI: 10.32614/CRAN.package.cppSim
Author: Ivann Schlosser ORCID iD [aut, cre]
Maintainer: Ivann Schlosser <ivann.schlosser.19 at ucl.ac.uk>
License: MIT + file LICENSE
URL: https://ischlo.github.io/cppSim/, https://github.com/ischlo/cppSim
NeedsCompilation: yes
SystemRequirements: Quarto command line tools (https://github.com/quarto-dev/quarto-cli).
Citation: cppSim citation info
Materials: README, NEWS
CRAN checks: cppSim results

Documentation:

Reference manual: cppSim.html , cppSim.pdf
Vignettes: Getting started (source, R code)
Gravity model (source, R code)

Downloads:

Package source: cppSim_0.2.tar.gz
Windows binaries: r-devel: cppSim_0.2.zip, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): cppSim_0.2.tgz, r-oldrel (arm64): not available, r-release (x86_64): cppSim_0.2.tgz, r-oldrel (x86_64): cppSim_0.2.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=cppSim to link to this page.