# ziyun990/wt0929 architecture

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

- Interactive diagram: https://gitdiagram.com/ziyun990/wt0929
- Repository: https://github.com/ziyun990/wt0929

## Overview

This repository is a research model for closed-loop opportunity maintenance at an 8×8 offshore wind farm. The primary workflow generates scenario and component-state inputs, identifies maintenance candidates, schedules hourly work under access and resource constraints, simulates execution and feeds state into later rolling periods; results support strategy comparison and paper figures. README and the source index establish the main subsystems and several dependencies, but excerpts do not show every call site, so uncertain internal links are omitted or marked unverified.

Main entry points: [`model/case_8x8_multicomponent_hourly_milp.py`](https://github.com/ziyun990/wt0929/blob/main/model/case_8x8_multicomponent_hourly_milp.py) (Rolling case), [`model/run_five_strategy_routing_objective.py`](https://github.com/ziyun990/wt0929/blob/main/model/run_five_strategy_routing_objective.py) (Five-strategy runner), [`model/multi_component_params.py`](https://github.com/ziyun990/wt0929/blob/main/model/multi_component_params.py) (Component parameters), [`cl_stochos_mu.py`](https://github.com/ziyun990/wt0929/blob/main/cl_stochos_mu.py) (Candidates and wake loss)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Inputs and parameters"]
  node_weather_data["Weather and prices"]
  node_scenarios["Input scenarios<br/>[input_scenarios.py]"]
  node_component_params["Component parameters"]
  node_rul_profiles["RUL profiles<br/>[rul_profiles.py]"]
end

subgraph group_decision["Maintenance decisions"]
  node_candidate_wake["Candidates and wake loss<br/>[cl_stochos_mu.py]"]
  node_task_model["Hourly tasks"]
  node_routing["Vessel routing costs<br/>[routing_costs.py]"]
end

subgraph group_execution["Scheduling and execution"]
  node_rolling_case["Rolling case"]
  node_copt_scheduler["COPT scheduler"]
  node_pulp_scheduler["PuLP scheduler"]
end

subgraph group_experiments["Experiments and analysis"]
  node_run_experiments["Five-strategy runner"]
  node_fuel_comparison["Routing fuel comparison"]
  node_summary["Strategy summaries"]
  node_results["Run results"]
  node_figure_data["Section five analysis"]
  node_figures["Figure generation"]
  node_method_figures["Method figures"]
end

node_researcher(("Researcher"))

node_researcher -->|"runs case"| node_rolling_case
node_researcher -->|"runs strategies"| node_run_experiments
node_weather_data -.->|"supplies inputs"| node_scenarios
node_scenarios -.->|"provides scenarios"| node_rolling_case
node_component_params -->|"configures model"| node_rolling_case
node_rul_profiles -->|"provides RUL"| node_rolling_case
node_candidate_wake -->|"supports candidates"| node_rolling_case
node_rolling_case -.->|"creates tasks"| node_task_model
node_rolling_case -.->|"evaluates routes"| node_routing
node_rolling_case -.->|"dispatches schedule"| node_copt_scheduler
node_rolling_case -.->|"dispatches schedule"| node_pulp_scheduler
node_run_experiments -->|"launches runs"| node_rolling_case
node_fuel_comparison -->|"launches runs"| node_rolling_case
node_rolling_case -->|"writes results"| node_results
node_run_experiments -.->|"summarizes runs"| node_summary
node_results -->|"feeds analysis"| node_figure_data
node_figure_data -->|"builds figures"| node_figures
node_component_params -->|"supplies parameters"| node_method_figures
node_candidate_wake -->|"supplies method"| node_method_figures

click node_weather_data "https://github.com/ziyun990/wt0929/tree/main/data"
click node_scenarios "https://github.com/ziyun990/wt0929/blob/main/model/input_scenarios.py"
click node_component_params "https://github.com/ziyun990/wt0929/blob/main/model/multi_component_params.py"
click node_rul_profiles "https://github.com/ziyun990/wt0929/blob/main/model/rul_profiles.py"
click node_candidate_wake "https://github.com/ziyun990/wt0929/blob/main/cl_stochos_mu.py"
click node_task_model "https://github.com/ziyun990/wt0929/blob/main/model/hourly_component_task.py"
click node_routing "https://github.com/ziyun990/wt0929/blob/main/model/routing_costs.py"
click node_rolling_case "https://github.com/ziyun990/wt0929/blob/main/model/case_8x8_multicomponent_hourly_milp.py"
click node_copt_scheduler "https://github.com/ziyun990/wt0929/blob/main/model/hourly_component_scheduler_copt.py"
click node_pulp_scheduler "https://github.com/ziyun990/wt0929/blob/main/model/hourly_component_scheduler_pulp.py"
click node_run_experiments "https://github.com/ziyun990/wt0929/blob/main/model/run_five_strategy_routing_objective.py"
click node_fuel_comparison "https://github.com/ziyun990/wt0929/blob/main/model/run_routing_fuel_comparison.py"
click node_summary "https://github.com/ziyun990/wt0929/blob/main/model/summarize_five_strategy_routing_objective.py"
click node_results "https://github.com/ziyun990/wt0929/tree/main/results"
click node_figure_data "https://github.com/ziyun990/wt0929/tree/main/analysis"
click node_figures "https://github.com/ziyun990/wt0929/blob/main/analysis/build_section5_figures.py"
click node_method_figures "https://github.com/ziyun990/wt0929/blob/main/model/make_section3_method_figures.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_weather_data,node_scenarios,node_component_params,node_rul_profiles toneBlue
class node_candidate_wake,node_task_model,node_routing toneAmber
class node_rolling_case,node_copt_scheduler,node_pulp_scheduler toneMint
class node_run_experiments,node_fuel_comparison,node_summary,node_results,node_figure_data,node_figures,node_method_figures toneRose
class node_researcher toneIndigo
```

## Components

### Inputs and parameters

- [Weather and prices](https://github.com/ziyun990/wt0929/tree/main/data): `data`
- [Input scenarios](https://github.com/ziyun990/wt0929/blob/main/model/input_scenarios.py): `model/input_scenarios.py`
- [Component parameters](https://github.com/ziyun990/wt0929/blob/main/model/multi_component_params.py): `model/multi_component_params.py`
- [RUL profiles](https://github.com/ziyun990/wt0929/blob/main/model/rul_profiles.py): `model/rul_profiles.py`

### Maintenance decisions

- [Candidates and wake loss](https://github.com/ziyun990/wt0929/blob/main/cl_stochos_mu.py): `cl_stochos_mu.py`
- [Hourly tasks](https://github.com/ziyun990/wt0929/blob/main/model/hourly_component_task.py): `model/hourly_component_task.py`
- [Vessel routing costs](https://github.com/ziyun990/wt0929/blob/main/model/routing_costs.py): `model/routing_costs.py`

### Scheduling and execution

- [Rolling case](https://github.com/ziyun990/wt0929/blob/main/model/case_8x8_multicomponent_hourly_milp.py): `model/case_8x8_multicomponent_hourly_milp.py`
- [COPT scheduler](https://github.com/ziyun990/wt0929/blob/main/model/hourly_component_scheduler_copt.py): `model/hourly_component_scheduler_copt.py`
- [PuLP scheduler](https://github.com/ziyun990/wt0929/blob/main/model/hourly_component_scheduler_pulp.py): `model/hourly_component_scheduler_pulp.py`

### Experiments and analysis

- [Five-strategy runner](https://github.com/ziyun990/wt0929/blob/main/model/run_five_strategy_routing_objective.py): `model/run_five_strategy_routing_objective.py`
- [Routing fuel comparison](https://github.com/ziyun990/wt0929/blob/main/model/run_routing_fuel_comparison.py): `model/run_routing_fuel_comparison.py`
- [Strategy summaries](https://github.com/ziyun990/wt0929/blob/main/model/summarize_five_strategy_routing_objective.py): `model/summarize_five_strategy_routing_objective.py`
- [Run results](https://github.com/ziyun990/wt0929/tree/main/results): `results`
- [Section five analysis](https://github.com/ziyun990/wt0929/tree/main/analysis): `analysis`
- [Figure generation](https://github.com/ziyun990/wt0929/blob/main/analysis/build_section5_figures.py): `analysis/build_section5_figures.py`
- [Method figures](https://github.com/ziyun990/wt0929/blob/main/model/make_section3_method_figures.py): `model/make_section3_method_figures.py`

### Other components

- **Researcher**

## Connections

- Researcher → Rolling case: runs case (evidence: `README.md`)
- Researcher → Five-strategy runner: runs strategies (evidence: `README.md`)
- Weather and prices → Input scenarios: supplies inputs
- Input scenarios → Rolling case: provides scenarios (evidence: `model/case_8x8_multicomponent_hourly_milp.py`)
- Component parameters → Rolling case: configures model (evidence: `model/case_8x8_multicomponent_hourly_milp.py`)
- RUL profiles → Rolling case: provides RUL (evidence: `model/case_8x8_multicomponent_hourly_milp.py`)
- Candidates and wake loss → Rolling case: supports candidates (evidence: `model/case_8x8_multicomponent_hourly_milp.py`)
- Rolling case → Hourly tasks: creates tasks (evidence: `model/case_8x8_multicomponent_hourly_milp.py`)
- Rolling case → Vessel routing costs: evaluates routes (evidence: `model/case_8x8_multicomponent_hourly_milp.py`)
- Rolling case → COPT scheduler: dispatches schedule (evidence: `model/case_8x8_multicomponent_hourly_milp.py`)
- Rolling case → PuLP scheduler: dispatches schedule (evidence: `model/case_8x8_multicomponent_hourly_milp.py`)
- Five-strategy runner → Rolling case: launches runs (evidence: `model/run_five_strategy_routing_objective.py`)
- Routing fuel comparison → Rolling case: launches runs (evidence: `model/run_routing_fuel_comparison.py`)
- Rolling case → Run results: writes results (evidence: `README.md`)
- Five-strategy runner → Strategy summaries: summarizes runs
- Run results → Section five analysis: feeds analysis (evidence: `README.md`)
- Section five analysis → Figure generation: builds figures (evidence: `README.md`)
- Component parameters → Method figures: supplies parameters (evidence: `model/make_section3_method_figures.py`)
- Candidates and wake loss → Method figures: supplies method (evidence: `model/make_section3_method_figures.py`)
