yanyueliu / Cell_Transmission_Model_Python

A cell transmission model based on python
MIT License
41 stars 13 forks source link

Pre-load the cell with base flow #3

Open Jamespenglin opened 2 years ago

Jamespenglin commented 2 years ago

Hi, I'm wondering is there is way to pre-load the cells/links with base traffic flow to shorten the computation time. thanks,

yanyueliu commented 2 years ago

Hi, You can change the value of density column in supply.csv to set initial density of a link.

Jamespenglin commented 2 years ago

Awesome! That works out well! Thanks for the quick response!

Your CTP model assumed the ramp merge operation would use ratio or percentage of the ramp volume to enter the freeway mainline. Can you update the CTM for ramp metering control. That means the ramp enter rate is controlled by traffic signal. The most popular ramp metering control is using an algorithm called ALINEA. Here is the function to calculate the ramp entering rate:

R(t) =R(t-1) + k (Oc -O(t-1)

R(t)—— ramp enter rate (controlled by ramp signal) at time step t

R(t-1)---ramp enter rate (controlled by ramp signal) at time step t -1 (previous ramp enter rate)

K---Regulatory parameter defined by user

Oc——Critical Occupancy defined by user, it can be the freeway density when Q=Qmax

O(t-1) ——the Occupancy at time t-1, or freeway density at time t-1.

It will great if you can provide a CTM example for ramp merger with metering control.

Thank you!

Peng

On Apr 10, 2022, at 9:12 PM, yanyueliu @.**@.>> wrote:

Hi, You can change the value of density column in supply.csv to set initial density of a link.

— Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fyanyueliu%2FCell_Transmission_Model_Python%2Fissues%2F3%23issuecomment-1094442201&data=04%7C01%7Cpil103%40psu.edu%7C46e429ad5ae4441a23b908da1b58623e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637852363670398747%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=o2QyGufipT544uNpETYw5QU8KLvLvkThi8%2Fo9%2Fbpk1k%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAYU2WKOL5BOGCKQPDH63MFDVEN4AZANCNFSM5TBTS7ZQ&data=04%7C01%7Cpil103%40psu.edu%7C46e429ad5ae4441a23b908da1b58623e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637852363670398747%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=zMnciE3uPc%2FsRE4njCdJ8mSVM1jkqeQHA2TfzoGf52s%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>