🚚 Chile Spatial Logistics Optimizer

Geospatial intelligence system for Dark Store siting and last-mile delivery route optimization in Santiago, Chile's Metropolitan Region.

This page shows the project's results. The methodology, the design decisions and the limitations are documented in the repository's README.

6.1 Demand forecasting (Phase 3) -- model comparison

Model comparison
The animated version below traces the loss curves epoch by epoch, with a floating label tracking each activation's current loss.
Activation convergence animated
Honest note on forecasting accuracy: R² near zero across all five models is the correct, un-massaged result here — total_demand in the synthetic generator is drawn independently of location (rng.randint(min_demand, max_demand) per order, uncorrelated with comuna or coordinates by construction), so there is little real spatial signal to learn from location alone.
Activation convergence
Honest note on forecasting accuracy: R² near zero across all five models is the correct, un-massaged result here — total_demand in the synthetic generator is drawn independently of location (rng.randint(min_demand, max_demand) per order, uncorrelated with comuna or coordinates by construction), so there is little real spatial signal to learn from location alone.
Actual vs predicted
Honest note on forecasting accuracy: R² near zero across all five models is the correct, un-massaged result here — total_demand in the synthetic generator is drawn independently of location (rng.randint(min_demand, max_demand) per order, uncorrelated with comuna or coordinates by construction), so there is little real spatial signal to learn from location alone.

6.2 Phase 4: real demand and real roads

The pipeline on resident population per H3 cell (Kontur Population 2023, rescaled to the Censo 2017 comuna totals it misses by −62% in Santiago Centro and +83% in Maipú) and on OSRM driving distances over OpenStreetMap.

Demand under each model and the depots it picks
The same 1,025 units of demand placed three ways: the top-demand depots sit in Providencia and Santiago Centro on synthetic demand, all in Maipú on Kontur as published, all in Santiago Centro once rescaled to the census.
Real circuity against the simulated ranges
Real detours have a median of 1.38 but a heavy tail: 19% of pairs exceed the simulated maximum of 1.55, and the detour is larger inside a comuna than across comunas, the opposite of the simulator.
Route length under each combination
A plan built on the simulated distances is 46% longer once driven on real roads (835 against 572 km); planning on the real distances brings it to 728.5 km.
R2 under random and spatial cross-validation
Location predicts real population under random folds (Random Forest R² 0.72) only by copying neighbours: with whole neighbourhoods held out it falls to −0.18.