spopt: Spatial Optimization

Regionalization, facility location, and transportation-oriented modeling

spopt is an open-source Python library for solving optimization problems with spatial data. Originating from the region module in PySAL (Python Spatial Analysis Library), it is under active development for the inclusion of newly proposed models and methods for regionalization, facility location, and transportation-oriented solutions.


spopt development is hosted on github.

Citing spopt

If you use PySAL-spopt in a scientific publication, we would appreciate citations to the following paper:

  author    = {Feng, Xin, and Gaboardi, James D. and Knaap, Elijah and Rey, Sergio J. and Wei, Ran},
  month     = {jan},
  year      = {2021},
  title     = {pysal/spopt},
  url       = {https://github.com/pysal/spopt},
  doi       = {10.5281/zenodo.4444156},
  keywords  = {python,regionalization,spatial-optimization,location-modeling}


This project is/was partially funded through:


National Science Foundation Award #1831615: RIDIR: Scalable Geospatial Analytics for Social Science Research

PySAL Logo