code&data(CBA)_r2
收藏DataCite Commons2025-09-02 更新2025-01-06 收录
下载链接:
https://figshare.com/articles/dataset/code_data_CBA_r1/26969014
下载链接
链接失效反馈官方服务:
资源简介:
The compressed <b>code&data(CBA)</b><b>_r2</b><b>.</b><b>zip</b> file contains 7.py files, 1.ipynb file and 3 folders.The <b>Main.ipynb </b>serves as the main file for the calculations, which provides step-by-step explanations and results for distributed execution.The remaining 5.py files are stored in the <b>lib folder</b>. <b>CBA.py</b> includes three functions, named Calculate accessibility, Calculate congestion, and Pareto_optimality. In the <b>Main.ipynb</b><b>(or Main.py)</b>, we use real data to call the functions from <b>CBA.py</b> to reproduce the main experimental part of the paper (Section 5). Additionally, we have incorporated <b>CSA.py</b> and <b>twoSFCA.py</b>, which represent the CSA model and 2SFCA model for comparison, allowing for a method comparison and analysis.The remaining four .py files are auxiliary to CBA.py:· <b>access_demo.py</b> defines an Access class that is primarily used to organize and manage demand, supply, and cost data, while providing various methods for calculating accessibility.· <b>fca.py</b> provides the concrete mathematical calculations and accessibility models, implementing the actual accessibility calculations by focusing on handling demand-supply data and calculating weighted accessibility.· The functions in <b>helpers.py</b> serve as auxiliary tools for the Access class in access_demo.py, mainly for handling and standardizing input data, as well as performing some additional calculations.· <b>weights.py</b> is mainly used to generate different distance or time weighting functions, which are applied in calculating weights for spatial accessibility models.The <b>data</b><b> folder</b> contains the three original csv files required for the calculations in this paper, including the demand points (<b>chi_demand.csv</b>), the supply points (<b>chi_supply.csv</b>), and the cost data (<b>chi_dist.csv</b>). To ensure data privacy and prevent potential data leakage, we processed the original data by removing sensitive spatial location information.·<b> </b><b>chi_demand.csv</b> stores the ID and population of each demand grid.· <b>chi_supply.csv</b> stores the ID and power (supply volume) of each charging station.· <b>chi_dist.csv</b> stores the travel time cost from each charging station to the demand grids.The <b>r</b><b>esult</b><b> folder</b> contains the results obtained by using the provided functions, with specific correspondences annotated in Main.ipynb.
提供机构:
figshare
创建时间:
2024-09-13



