pysal / spopt

Spatial Optimization
https://pysal.org/spopt/
BSD 3-Clause "New" or "Revised" License
306 stars 46 forks source link

KN-PMP: solve standard PMP once any `k>=p` #428

Open jGaboardi opened 11 months ago

jGaboardi commented 11 months ago

Currently within the $k$-nearest $p$-median problem, we raise errors here[^1] and here[^2] when any values of k is greater than p. Perhaps we should keep this behavior in from_geodataframe(), but in _create_sparse_matrix() we should probably consider throwing a warning then defaulting to solve a standard $p$-median problem.

This should be considered after v0.6.0 – #414

[^1]: in _create_sparse_matrix() [^2]: in from_geodataframe()

xref #425