Skip to contents

Regionalization

Algorithms for spatially-constrained clustering

skater()
SKATER Spatial Clustering
azp()
Automatic Zoning Procedure (AZP)
max_p_regions()
Max-P Regions
spenc()
Spatially-Encouraged Spectral Clustering (SPENC)
ward_spatial()
Ward Spatial Clustering

Facility Location

Optimal facility siting algorithms

p_median()
P-Median Problem
p_center()
P-Center Problem
p_dispersion()
P-Dispersion Problem
lscp()
Location Set Covering Problem (LSCP)
mclp()
Maximum Coverage Location Problem (MCLP)
cflp()
Capacitated Facility Location Problem (CFLP)
frlm()
Flow Refueling Location Model (FRLM)

Route Optimization

Single- and multi-vehicle routing

route_tsp()
Traveling Salesman Problem (TSP)
route_vrp()
Vehicle Routing Problem (VRP)

Market Analysis

Market share and competition modeling

huff()
Huff Model for Market Share Analysis

Utilities

Helper functions for spatial optimization

sp_weights()
Create spatial weights from an sf object
distance_matrix()
Compute distance matrix between sf objects
second_areal_moment()
Second areal moment (i.e., second moment of inertia)
nmi()
Normalized moment of inertia (NMI)

Data

Example datasets

tarrant_travel_times
Tarrant County Travel Time Matrix Example Data
delivery_data
Delivery routing data for Fort Worth, TX