Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

“Python script tool” for “gravity model” for the distribution of trips generated by..

$
0
0
“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
Attached Thumbnails
Click image for larger version

Name:	Clip_1279.jpg‎
Views:	N/A
Size:	9.4 KB
ID:	24482   Click image for larger version

Name:	Clip_1281.jpg‎
Views:	N/A
Size:	193.1 KB
ID:	24483   Click image for larger version

Name:	Clip_1280.jpg‎
Views:	N/A
Size:	51.8 KB
ID:	24484  
Attached Files

Viewing all articles
Browse latest Browse all 2485

Trending Articles