spopt: Spatial Optimization for Regionalization, Facility Location, and Market Analysis

Implements spatial optimization algorithms across several problem families including contiguity-constrained regionalization, discrete facility location, market share analysis, and least-cost corridor and route optimization over raster cost surfaces. Facility location problems also accept user-supplied network travel-time matrices. Uses a 'Rust' backend via 'extendr' for graph and routing algorithms, and the 'HiGHS' solver via the 'highs' package for facility location mixed-integer programs. Method-level references are provided in the documentation of the individual functions.

Package details

AuthorKyle Walker [aut, cre], PySAL Developers [cph] (Original Python spopt library)
MaintainerKyle Walker <kyle@walker-data.com>
LicenseMIT + file LICENSE
Version0.1.2
URL https://walker-data.com/spopt-r/ https://github.com/walkerke/spopt-r
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("spopt")

Try the spopt package in your browser

Any scripts or data that you put into this service are public.

spopt documentation built on April 22, 2026, 9:07 a.m.