Vehicles Waiting for the Road to Clear

Vehicles Waiting for the Road to Clear

kadircan_t
Not applicable
4 Views
4 Replies
Message 1 of 5

Vehicles Waiting for the Road to Clear

kadircan_t
Not applicable

[ FlexSim 22.2.2 ]

Hello,

In my model, I want to use the road wide enough for a single vehicle to pass. So, for example, 3 vehicles in the same direction should be able to go back to back, but the vehicle that wants to come from the opposite direction should wait for the road to be clear.

In the model I shared as an example, the vehicle coming from the road number 2 should turn to that road after waiting for the vehicles coming from the road number 1 to pass completely, and after entering that road, no reverse vehicles should come in the same way.

I could not solve this problem using traffic control, can you help me?cdc9e640-2b3f-4816-8901-cf633cbeab95-1-201-a.jpegtraffic_Test.fsm


0 Likes
Accepted solutions (1)
5 Views
4 Replies
Replies (4)
Message 2 of 5

moehlmann_fe
Observer
Observer
Accepted solution

You can use the untimed traffic modes of the traffic control for this. I assume it didn't work for you because the task executers coming from path 1 are created at NN1 and thus already inside the traffic control area, so that no entry request is made.

If you create them at a separate node that is not part of the traffic control, it works correctly. (I changed the inter-arrival-time to a random distribution to allow for some variance in the model)

traffic-test_fm.fsm

0 Likes
Message 3 of 5

kadircan_t
Not applicable

Thank you so much, it solved my problem

0 Likes
Message 4 of 5

kadircan_t
Not applicable

Hi again @Felix Möhlmann , I was able to solve the problem in a small model, but I built a larger model with many nodes and I couldn't get this method to work here. Can I try a different method in the model I shared in the attachment?traffic_layout_model_finished (4).fsm

0 Likes
Message 5 of 5

moehlmann_fe
Observer
Observer
​Outside of building a custom traffic logic in a Process Flow I can't really think of another solution right now. (Count how many task executers are travelling in a section in a certain direction, then stop other traffic until this reaches zero)

It is also not clear what paths in the model are supposed to be restricted to only allow traffic in one direction at a time.

0 Likes