Supplementary Simulation Code and Anonymized Topology Data for Port Resilience Analysis
Description
Dataset Description: This repository contains the source code and necessary datasets to reproduce the simulation results presented in the manuscript regarding port system recovery dynamics. Contents: Code (/src): Python implementations of the differential equations for resource mobilization and the heuristic allocation algorithm. Data (/data): topology_matrix.csv: Anonymized adjacency matrix representing the port operational network. parameters.json: Configuration files for simulation scenarios (including weight settings derived from expert elicitation). Scripts: main.py is provided to execute the comparative analysis between Closed-loop and Open-loop control strategies. Environment: Code is compatible with Python 3.8+. See requirements.txt for dependencies.
Files
Steps to reproduce
1. SYSTEM REQUIREMENTS - Platform: Windows, macOS, or Linux - Python Version: 3.8 or higher - Dependencies: See 'requirements.txt' included in the root directory. 2. INSTALLATION (1) Unzip the downloaded archive "Supplementary_Code_and_Data.zip". (2) Open a terminal/command prompt and navigate to the project root directory. (3) Install necessary libraries by running: pip install -r requirements.txt 3. EXECUTION To reproduce all simulation results presented in the manuscript, execute the main orchestration script: python main.py The simulation typically completes within 60 seconds on a standard desktop computer. 4. VERIFICATION OF RESULTS Upon completion, the script will generate a 'results/' folder containing all the outputs corresponding to the manuscript figures. 5. DATA STRUCTURE - /data: Contains the anonymized network topology (Adjacency Matrix) and expert-elicited parameter weights. - /src: Contains the source code for the CPSS-based control model.
Institutions
- Shanghai Jiao Tong UniversityShanghai