Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

spopt

pysal.org

  • Free plan
  • Windows
  • macOS
  • Linux
7.5 Club score Visit pysal.org

What spopt is

spopt is a free, open-source Python library for solving optimization problems involving spatial data. Its main areas are regionalization, facility location, and transportation-oriented solutions. Regionalization methods combine smaller geographic units into larger regions using approaches such as AZP, MaxP, Skater, and spatially constrained clustering. Facility-location models include set covering, maximal coverage, p-median, p-center, p-dispersion, and flow refueling location. Examples cover regional income, Airbnb, and grid clustering, along with selecting sites for first-aid stations or stores. Released packages can be installed with pip or conda-forge, while a development version is available from GitHub. The installation guide requires Python 3.11 or later. Listed dependencies include SciPy, NumPy, pandas, NetworkX, libpysal, scikit-learn, GeoPandas, PuLP, Shapely, and spaghetti. spopt runs on Linux, macOS, and Windows, is under active development, welcomes contributors, and uses the BSD 3-Clause license.

Who it suits

spopt suits Python users working on geographic clustering, regionalization, facility siting, or related spatial optimization. It is intended for projects that can use its listed scientific and geospatial dependencies.

Good to know, and what to watch

  • Free BSD 3-Clause open-source library
  • Covers regionalization and facility-location models
  • Includes transportation-oriented optimization methods
  • Installable through pip or conda-forge
  • Runs on Linux, macOS, and Windows
  • Requires Python 3.11 or later
  • Needs several scientific and geospatial dependencies
  • Development version requires GitHub installation

spopt

Free

Free plan

The verdict

spopt provides a broad set of spatial optimization methods in a free Python package. Its Python version requirement and dependency stack should be checked before installation.

What the maker publishes

Dependencies
The repository lists SciPy, NumPy, pandas, NetworkX, libpysal, scikit-learn, GeoPandas, PuLP, Shapely, and spaghetti as requirements. source
Development
The project says it is under active development and welcomes contributors. source
Examples
Documented examples include regional income clustering, Airbnb clustering, grid clustering, and locating first-aid stations or store sites. source
Facility location
Its facility-location methods include set covering, maximal coverage, p-median, p-center, p-dispersion, and flow refueling location models. source
Focus areas
The project develops methods for regionalization, facility location, and transportation-oriented solutions. source
Install options
The released package can be installed with pip or conda-forge, and a development version can be installed from GitHub. source
Intended audience
The project describes itself as a spatial optimization package and provides examples involving geographic clustering and facility siting. source
License
The repository states that spopt is licensed under the BSD 3-Clause license. source
Purpose
spopt is an open-source Python library for solving optimization problems with spatial data. source
Python requirement
The installation guide says spopt supports Python 3.11 or later. source
Regionalization
Its regionalization methods aggregate smaller geographic units into larger regions using methods such as AZP, MaxP, Skater, and spatially constrained clustering. source
Security
The repository identifies itself as a public project and links to its security and quality page, but the opened pages make no security or compliance claims. source
Solver example
The repository’s facility-location example uses PuLP with the CBC solver. source
Support
Users can ask questions through GitHub issues, GitHub discussions, or PySAL’s Discord channel. source

Checked against the maker's pages on 5 Oct 2026.