“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
Attachment 24483
For example, I wanted to acquire the distribution of trips generated by zones and attracted by bus stations based on the equation below:
Attachment 24482
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)
Attachment 24484
Sample data for zones and stations are attached
Thank you
Best
Jamal
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
Attachment 24483
For example, I wanted to acquire the distribution of trips generated by zones and attracted by bus stations based on the equation below:
Attachment 24482
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)
Attachment 24484
Sample data for zones and stations are attached
Thank you
Best
Jamal