�??Python script tool�?� for �??gravity model�?� for the distribution of trips generated by zones and attracted by bus stations,
I�??m looking for a Python script tool that can generate a table (matrix) that represents the number of trips generated by zones and attracted by bus stations
[ATTACH=CONFIG]24483[/ATTACH]
For example, I wanted to acquire the distribution of trips generated by zones and attracted by bus stations based on the equation below:
[ATTACH=CONFIG]24482[/ATTACH]
Where:
Tij: the number of trips generated by zone i and attracted by station j Ai: balancing factor Oi: number of trips generated by Zone i Dj: the attractiveness value of station j to attracts trips B: factor Cij: the distance between zone i (its centroid) and station j
The aimed result is to have a table that looks like the table below (which represents the number of trips generated by zones and attracted by bus stations and their sum)