Use English throughout the dataset documentation
Browse files- README.md +19 -12
- facility-relocation-sample.zip +2 -2
README.md
CHANGED
|
@@ -1,11 +1,10 @@
|
|
| 1 |
-
# 15
|
| 2 |
|
| 3 |
-
20
|
| 4 |
|
| 5 |
-
##
|
| 6 |
|
| 7 |
-
|
| 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 |
-
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
|
| 23 |
| --- | --- |
|
| 24 |
| `server_greedy.py` | `6dc0aa539470530ab00e2d22a3a826eea75789207cf2f9665d203498c092ac85` |
|
| 25 |
| `capacity.py` | `b68456c3d3bd8d4c68514b6f4f5ee49f6820f96152f34f85fc2b3256ffa3bc9d` |
|
| 26 |
| `greedy.py` | `0b9270f1440b825347012ef2e758347ec159505ef661bcb9c4fa4390585769e9` |
|
| 27 |
| `reachable.py` | `16874f9d6862c6182ea60b5e1b86ed9e158886069d766dc50fd873caae073256` |
|
| 28 |
|
| 29 |
-
##
|
| 30 |
|
| 31 |
-
-
|
| 32 |
-
-
|
|
|
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d64fa07c59bc1ae31db88baa2598b56858b8a902d3f7dbf7ab20f7f900d905d
|
| 3 |
+
size 1603457
|