YuqinDay commited on
Commit
7de7337
·
verified ·
1 Parent(s): 61e4708

Use English throughout the dataset documentation

Browse files
Files changed (2) hide show
  1. README.md +19 -12
  2. facility-relocation-sample.zip +2 -2
README.md CHANGED
@@ -1,11 +1,10 @@
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
@@ -13,20 +12,28 @@ 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` 记录路网快照与路由版本。
 
1
+ # 15-Minute Facility Relocation Reproduction Sample
2
 
3
+ This sample contains optimization inputs and reference results for 20 cities. Each city includes population grids, candidate locations, existing sites in nine facility categories, walking-time matrices, and the original optimized locations and per-grid walking times. Cities were selected for compact, complete inputs and coverage across different countries.
4
 
5
+ ## Download and run
6
 
7
+ Download `facility-relocation-sample.zip` into the existing project’s `code/` directory. This directory contains `server_greedy.py`, `capacity.py`, `greedy.py`, `reachable.py`, and `requirements-cpu.txt`. On Linux, run the following from `code/`. Use the existing project Python environment if available.
 
8
 
9
  ```bash
10
  unzip facility-relocation-sample.zip
 
12
  python3.12 reproduce_sample.py --city author_8442
13
  ```
14
 
15
+ Omit `--city author_8442` to run all 20 cities. The script starts from the supplied walking-time matrices and runs the layout solver on the CPU. It writes fresh results to `code/outputs/facility_relocation_sample/`. Docker, OSRM, and a GPU are unnecessary for this step.
16
 
17
+ The extracted `facility-relocation-sample/` directory contains:
18
 
19
+ | Path | Contents |
20
+ | --- | --- |
21
+ | `cities.json` | City names, slugs, countries, and input and result sizes |
22
+ | `data/greedy_inputs/` | Population grids, candidate locations, facility tables, walking-time matrices, and routing provenance |
23
+ | `reference_results/` | Original locations, per-grid times, summaries, and verification records |
24
+
25
+ All 20 cities were recomputed in the project’s Linux and Python 3.12 environment. The selected locations matched the original run in all nine facility categories per city. Per-grid walking times matched within an absolute tolerance of 1e-9 minutes.
26
+
27
+ ### Verified source files
28
 
29
+ | File | SHA-256 |
30
  | --- | --- |
31
  | `server_greedy.py` | `6dc0aa539470530ab00e2d22a3a826eea75789207cf2f9665d203498c092ac85` |
32
  | `capacity.py` | `b68456c3d3bd8d4c68514b6f4f5ee49f6820f96152f34f85fc2b3256ffa3bc9d` |
33
  | `greedy.py` | `0b9270f1440b825347012ef2e758347ec159505ef661bcb9c4fa4390585769e9` |
34
  | `reachable.py` | `16874f9d6862c6182ea60b5e1b86ed9e158886069d766dc50fd873caae073256` |
35
 
36
+ ## Data sources
37
 
38
+ - Population grids and geometry come from [Sony CSL Rome’s 15 Minute City platform](https://whatif.sonycsl.it/15mincity/15mincity.php). Retain the source attribution and follow the applicable license.
39
+ - The walking network and existing facilities contain data from © [OpenStreetMap contributors](https://www.openstreetmap.org/copyright), available under the [Open Database License 1.0](https://opendatacommons.org/licenses/odbl/1-0/). Each city’s `routing_provenance.json` identifies its road snapshot and routing version.
facility-relocation-sample.zip CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1c7c76ffc17fde8c559e1a5cd060df7dc60e4dd048bf441f4ea33fe1c312bc5b
3
- size 1608420
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d64fa07c59bc1ae31db88baa2598b56858b8a902d3f7dbf7ab20f7f900d905d
3
+ size 1603457