# cuileoxuan/huawei-2026 architecture

> Architecture diagram of the GitHub repository cuileoxuan/huawei-2026, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cuileoxuan/huawei-2026
- Repository: https://github.com/cuileoxuan/huawei-2026

## Overview

This repository is a four-stage modeling solution for coordinating emergency drone deliveries and communications during mountain flooding. The workflow starts with official operational and terrain data, models single-site delivery capacity, schedules multi-stop transport, jointly plans relay coverage, and evaluates rescue-task partitions and resource needs. Shared physical/data calculations live in `common.py`; results are written under `code-wb/code/results` for submission and visualization. The README documents the stage handoffs; sampled source confirms the Q2→Q3→Q4 inheritance, while some unsampled implementation details are represented only where documented.

Main entry points: [`code-wb/code/results`](https://github.com/cuileoxuan/huawei-2026/tree/main/code-wb/code/results) (Computed results), [`code-wb/code/common.py`](https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/common.py) (Shared data and physics), [`code-wb/code/problem3.py`](https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/problem3.py) (Relay co-scheduling), [`code-wb/code/problem4.py`](https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/problem4.py) (Partition and resources)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Scenario inputs"]
  node_opsdata[("Operations data")]
  node_geodata[("Terrain and geography")]
end

subgraph group_models["Shared models"]
  node_common["Shared data and physics<br/>[common.py]"]
end

subgraph group_delivery["Delivery planning"]
  node_q1["Capacity and batching<br/>[problem1.py]"]
  node_q2["Transport scheduling<br/>[problem2.py]"]
end

subgraph group_coordination["Communications and allocation"]
  node_q3["Relay co-scheduling<br/>[problem3.py]"]
  node_q4["Partition and resources<br/>[problem4.py]"]
end

subgraph group_outputs["Results and reporting"]
  node_results[("Computed results")]
  node_export["Template workbook export<br/>[export_results.py]"]
  node_template["Submission template<br/>[结果提交模板.xlsx]"]
  node_visualize["Result visualization<br/>[visualize.py]"]
end

node_planner(("Modeling user"))

node_planner -->|"runs analysis"| node_q1
node_planner -->|"runs scheduling"| node_q2
node_planner -->|"runs coordination"| node_q3
node_planner -->|"runs allocation"| node_q4
node_opsdata -->|"loads parameters"| node_common
node_geodata -->|"loads terrain"| node_common
node_common -->|"provides models"| node_q1
node_common -->|"provides models"| node_q2
node_common -->|"provides models"| node_q3
node_common -->|"provides models"| node_q4
node_q1 -->|"writes Q1 outputs"| node_results
node_q2 -->|"writes Q2 solution"| node_results
node_results -->|"supplies Q2 solution"| node_q3
node_q3 -->|"writes Q3 solution"| node_results
node_results -->|"supplies Q3 solution"| node_q4
node_q4 -->|"writes Q4 report"| node_results
node_results -->|"reads result tables"| node_export
node_template -->|"provides workbook schema"| node_export
node_export -->|"writes submission workbook"| node_results
node_results -->|"provides chart inputs"| node_visualize

click node_opsdata "https://github.com/cuileoxuan/huawei-2026/tree/main/D%E9%A2%98/%E6%95%B0%E6%8D%AE/%E6%97%A0%E4%BA%BA%E6%9C%BA%E5%BA%94%E6%80%A5%E7%89%A9%E8%B5%84%E8%BF%90%E8%BE%93%E5%9F%BA%E7%A1%80%E6%95%B0%E6%8D%AE"
click node_geodata "https://github.com/cuileoxuan/huawei-2026/tree/main/D%E9%A2%98/%E6%95%B0%E6%8D%AE/%E9%95%87%E9%BE%99%E4%B9%A1%E5%9C%B0%E7%90%86%E7%A9%BA%E9%97%B4%E6%95%B0%E6%8D%AE/%E9%95%87%E9%BE%99%E4%B9%A1%E5%8F%8A%E5%91%A8%E8%BE%B9%E5%9C%B0%E7%90%86%E6%95%B0%E6%8D%AE"
click node_common "https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/common.py"
click node_q1 "https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/problem1.py"
click node_q2 "https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/problem2.py"
click node_q3 "https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/problem3.py"
click node_q4 "https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/problem4.py"
click node_results "https://github.com/cuileoxuan/huawei-2026/tree/main/code-wb/code/results"
click node_export "https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/export_results.py"
click node_template "https://github.com/cuileoxuan/huawei-2026/blob/main/D%E9%A2%98/%E7%BB%93%E6%9E%9C%E6%8F%90%E4%BA%A4%E6%A8%A1%E6%9D%BF.xlsx"
click node_visualize "https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/visualize.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_opsdata,node_geodata,node_planner toneBlue
class node_common toneAmber
class node_q1,node_q2 toneMint
class node_q3,node_q4 toneRose
class node_results,node_export,node_template,node_visualize toneIndigo
```

## Components

### Scenario inputs

- [Operations data](https://github.com/cuileoxuan/huawei-2026/tree/main/D%E9%A2%98/%E6%95%B0%E6%8D%AE/%E6%97%A0%E4%BA%BA%E6%9C%BA%E5%BA%94%E6%80%A5%E7%89%A9%E8%B5%84%E8%BF%90%E8%BE%93%E5%9F%BA%E7%A1%80%E6%95%B0%E6%8D%AE): `D题/数据/无人机应急物资运输基础数据`
- [Terrain and geography](https://github.com/cuileoxuan/huawei-2026/tree/main/D%E9%A2%98/%E6%95%B0%E6%8D%AE/%E9%95%87%E9%BE%99%E4%B9%A1%E5%9C%B0%E7%90%86%E7%A9%BA%E9%97%B4%E6%95%B0%E6%8D%AE/%E9%95%87%E9%BE%99%E4%B9%A1%E5%8F%8A%E5%91%A8%E8%BE%B9%E5%9C%B0%E7%90%86%E6%95%B0%E6%8D%AE): `D题/数据/镇龙乡地理空间数据/镇龙乡及周边地理数据`

### Shared models

- [Shared data and physics](https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/common.py): `code-wb/code/common.py`

### Delivery planning

- [Capacity and batching](https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/problem1.py): `code-wb/code/problem1.py`
- [Transport scheduling](https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/problem2.py): `code-wb/code/problem2.py`

### Communications and allocation

- [Relay co-scheduling](https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/problem3.py): `code-wb/code/problem3.py`
- [Partition and resources](https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/problem4.py): `code-wb/code/problem4.py`

### Results and reporting

- [Computed results](https://github.com/cuileoxuan/huawei-2026/tree/main/code-wb/code/results): `code-wb/code/results`
- [Template workbook export](https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/export_results.py): `code-wb/code/export_results.py`
- [Submission template](https://github.com/cuileoxuan/huawei-2026/blob/main/D%E9%A2%98/%E7%BB%93%E6%9E%9C%E6%8F%90%E4%BA%A4%E6%A8%A1%E6%9D%BF.xlsx): `D题/结果提交模板.xlsx`
- [Result visualization](https://github.com/cuileoxuan/huawei-2026/blob/main/code-wb/code/visualize.py): `code-wb/code/visualize.py`

### Other components

- **Modeling user**

## Connections

- Modeling user → Capacity and batching: runs analysis
- Modeling user → Transport scheduling: runs scheduling
- Modeling user → Relay co-scheduling: runs coordination
- Modeling user → Partition and resources: runs allocation
- Operations data → Shared data and physics: loads parameters
- Terrain and geography → Shared data and physics: loads terrain
- Shared data and physics → Capacity and batching: provides models
- Shared data and physics → Transport scheduling: provides models
- Shared data and physics → Relay co-scheduling: provides models
- Shared data and physics → Partition and resources: provides models
- Capacity and batching → Computed results: writes Q1 outputs
- Transport scheduling → Computed results: writes Q2 solution
- Computed results → Relay co-scheduling: supplies Q2 solution
- Relay co-scheduling → Computed results: writes Q3 solution
- Computed results → Partition and resources: supplies Q3 solution
- Partition and resources → Computed results: writes Q4 report
- Computed results → Template workbook export: reads result tables
- Submission template → Template workbook export: provides workbook schema
- Template workbook export → Computed results: writes submission workbook
- Computed results → Result visualization: provides chart inputs
