# hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company architecture

> Architecture diagram of the GitHub repository hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company
- Repository: https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company

## Overview

This repository reproduces a fuel-distribution multi-compartment vehicle-routing study: the notebook transcribes the paper’s data, builds and solves the MIP for Cases I–II and instances 1–27, and records results. A Python script reads selected result CSVs to generate comparison figures. The notebook’s source was not sampled, so its internal steps and solver wiring are based on README statements; the plotting-script links are visible in its excerpt.

Main entry points: [`Simulación_paper.ipynb`](https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/Simulaci%C3%B3n_paper.ipynb) (Replication notebook), [`graficos.py`](https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/graficos.py) (Comparison plots), [`resultados/casos_resumen.csv`](https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/resultados/casos_resumen.csv) (Case results), [`resultados/casos_rutas.csv`](https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/resultados/casos_rutas.csv) (Case routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_modeling["Modeling and runs"]
  node_notebook["Replication notebook"]
  node_mip["Routing MIP"]
end

subgraph group_results["Results and comparison"]
  node_case_results["Case results<br/>[casos_resumen.csv]"]
  node_case_routes["Case routes<br/>[casos_rutas.csv]"]
  node_instance_results["Instance results"]
  node_instance_routes["Instance routes"]
end

subgraph group_visualization["Visualization"]
  node_plotter["Comparison plots<br/>[graficos.py]"]
  node_figures["Generated figures"]
end

node_researcher(("Researcher"))
node_paper["Reference paper"]
node_solver["HiGHS solver"]

node_researcher -->|"runs"| node_notebook
node_paper -->|"provides reference data"| node_notebook
node_notebook -->|"transcribes and builds"| node_mip
node_notebook -->|"solves with"| node_solver
node_notebook -->|"writes"| node_case_results
node_notebook -->|"writes"| node_case_routes
node_notebook -->|"writes"| node_instance_results
node_notebook -->|"writes"| node_instance_routes
node_plotter -->|"reads"| node_case_results
node_plotter -->|"reads"| node_case_routes
node_plotter -->|"reads"| node_instance_results
node_plotter -->|"saves figures"| node_figures

click node_paper "https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/An%20Exact%20Approach%20to%20the%20Multi-Compartment%20Vehicle%20Routing%20Problem_%20The%20Case%20of%20a%20Fuel%20Distribution%20Company.pdf"
click node_notebook "https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/Simulaci%C3%B3n_paper.ipynb"
click node_mip "https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/Simulaci%C3%B3n_paper.ipynb"
click node_case_results "https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/resultados/casos_resumen.csv"
click node_case_routes "https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/resultados/casos_rutas.csv"
click node_instance_results "https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/resultados/instancias_resumen.csv"
click node_instance_routes "https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/resultados/instancias_rutas.csv"
click node_plotter "https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/graficos.py"
click node_figures "https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/tree/main/figuras"

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_notebook,node_mip toneBlue
class node_case_results,node_case_routes,node_instance_results,node_instance_routes toneAmber
class node_plotter,node_figures toneMint
class node_researcher,node_solver toneIndigo
class node_paper toneTeal
```

## Components

### Modeling and runs

- [Replication notebook](https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/Simulaci%C3%B3n_paper.ipynb): `Simulación_paper.ipynb`
- [Routing MIP](https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/Simulaci%C3%B3n_paper.ipynb): `Simulación_paper.ipynb`

### Results and comparison

- [Case results](https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/resultados/casos_resumen.csv): `resultados/casos_resumen.csv`
- [Case routes](https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/resultados/casos_rutas.csv): `resultados/casos_rutas.csv`
- [Instance results](https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/resultados/instancias_resumen.csv): `resultados/instancias_resumen.csv`
- [Instance routes](https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/resultados/instancias_rutas.csv): `resultados/instancias_rutas.csv`

### Visualization

- [Comparison plots](https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/graficos.py): `graficos.py`
- [Generated figures](https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/tree/main/figuras): `figuras`

### Other components

- **Researcher**
- [Reference paper](https://github.com/hammonne/replica-de-exact-mcvrp-the-case-of-a-fuel-distribution-company/blob/main/An%20Exact%20Approach%20to%20the%20Multi-Compartment%20Vehicle%20Routing%20Problem_%20The%20Case%20of%20a%20Fuel%20Distribution%20Company.pdf): `An Exact Approach to the Multi-Compartment Vehicle Routing Problem_ The Case of a Fuel Distribution Company.pdf`
- **HiGHS solver**

## Connections

- Researcher → Replication notebook: runs (evidence: `README.md`)
- Reference paper → Replication notebook: provides reference data (evidence: `README.md`)
- Replication notebook → Routing MIP: transcribes and builds (evidence: `README.md`)
- Replication notebook → HiGHS solver: solves with (evidence: `README.md`)
- Replication notebook → Case results: writes (evidence: `README.md`)
- Replication notebook → Case routes: writes (evidence: `README.md`)
- Replication notebook → Instance results: writes (evidence: `README.md`)
- Replication notebook → Instance routes: writes (evidence: `README.md`)
- Comparison plots → Case results: reads (evidence: `graficos.py`)
- Comparison plots → Case routes: reads (evidence: `graficos.py`)
- Comparison plots → Instance results: reads (evidence: `graficos.py`)
- Comparison plots → Generated figures: saves figures (evidence: `graficos.py`)
