code&data(CBA)_r1
收藏DataCite Commons2025-09-02 更新2024-11-06 收录
下载链接:
https://figshare.com/articles/dataset/code_data_CBA_r1/26969014/1
下载链接
链接失效反馈官方服务:
资源简介:
The compressed <b>code&data(CBA)</b><b>_r1</b><b>.</b><b>zip</b> file contains 6.py files, 1.ipynb file, two folders and 9.csv files.<b>CBA.py</b> and <b>Main.ipynb</b><b>(or Main.py)</b> are the main files <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). 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.<br>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



