Publish reproducible inputs and reference results for 20 cities
Browse files- README.md +32 -0
- facility-relocation-sample.zip +3 -0
README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 15 分钟设施布局优化复现样本
|
| 2 |
+
|
| 3 |
+
20 座城市的贪心优化输入和原实验结果。每城包含人口网格、候选点、9 类现状设施、步行时间矩阵,以及原实验的选点和逐网格步行时间。样本按较小的完整输入优先选择,尽量覆盖不同国家,便于用 CPU 复算。
|
| 4 |
+
|
| 5 |
+
## 下载后运行
|
| 6 |
+
|
| 7 |
+
1. 把数据集中的 `facility-relocation-sample.zip` 下载到设施布局项目的 `code/`。这个目录内已有 `server_greedy.py`、`capacity.py`、`greedy.py`、`reachable.py` 和 `requirements-cpu.txt`。
|
| 8 |
+
2. 在 Linux 的 `code/` 下运行以下命令。已有项目 Python 环境时直接用该环境。
|
| 9 |
+
|
| 10 |
+
```bash
|
| 11 |
+
unzip facility-relocation-sample.zip
|
| 12 |
+
python3.12 -m pip install -r requirements-cpu.txt
|
| 13 |
+
python3.12 reproduce_sample.py --city author_8442
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
去掉 `--city author_8442` 可依次跑完 20 城。脚本读取冻结的步行时间矩阵,直接重跑布局求解,无需 Docker、OSRM 服务或 GPU。新结果写入 `code/outputs/facility_relocation_sample/`。`facility-relocation-sample/cities.json` 列出城市名称、编号和国家;`data/greedy_inputs/` 和 `reference_results/` 都位于解压后的 `facility-relocation-sample/` 内。
|
| 17 |
+
|
| 18 |
+
已用 Linux 和项目 Python 3.12 环境验证 20 城。每城 9 类设施选点与原实验一致,逐网格分钟值在绝对容差 1e-9 内一致。路由矩阵与历史检查点通过文件哈希和输入顺序校验。此复现从已生成的矩阵开始。
|
| 19 |
+
|
| 20 |
+
验证所用项目文件的 SHA-256:
|
| 21 |
+
|
| 22 |
+
| 文件 | SHA-256 |
|
| 23 |
+
| --- | --- |
|
| 24 |
+
| `server_greedy.py` | `6dc0aa539470530ab00e2d22a3a826eea75789207cf2f9665d203498c092ac85` |
|
| 25 |
+
| `capacity.py` | `b68456c3d3bd8d4c68514b6f4f5ee49f6820f96152f34f85fc2b3256ffa3bc9d` |
|
| 26 |
+
| `greedy.py` | `0b9270f1440b825347012ef2e758347ec159505ef661bcb9c4fa4390585769e9` |
|
| 27 |
+
| `reachable.py` | `16874f9d6862c6182ea60b5e1b86ed9e158886069d766dc50fd873caae073256` |
|
| 28 |
+
|
| 29 |
+
## 数据来源
|
| 30 |
+
|
| 31 |
+
- 人口网格与网格几何来自 [Sony CSL Rome 的 15 Minute City 平台](https://whatif.sonycsl.it/15mincity/15mincity.php)。请保留原始来源署名并遵守其适用许可。
|
| 32 |
+
- 路网及现状设施包含 © [OpenStreetMap contributors](https://www.openstreetmap.org/copyright) 的数据,适用 [Open Database License 1.0](https://opendatacommons.org/licenses/odbl/1-0/)。各城 `routing_provenance.json` 记录路网快照与路由版本。
|
facility-relocation-sample.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c7c76ffc17fde8c559e1a5cd060df7dc60e4dd048bf441f4ea33fe1c312bc5b
|
| 3 |
+
size 1608420
|