asebosac.blogg.se

Anylogic right turn only car
Anylogic right turn only car

This works fine, but it's not fast enough. Int vi = iterations // velocity of previews iteration #define density 0.48 // how many positives #define num_iters 3000 // number of iterations

#Anylogic right turn only car code

Here is a working code which only parallelizes velocity calculation per line: #define L 3000 // number of cells in row I'm trying to write a multithreaded Nagel–Schreckenberg model simulation in c language and have some problems when a thread accesses the data which wasn't calculated yet. But I want instead as in the dataset "resource_unit_states_log" the exact date like 27-12-2021 00:06:00.ĭoes anyone have an idea how I can solve either of these problems? If I use W1.time() as x-axis value, I get the model time (e.g. Theoretically, I could manually calculate the date and time of the "idle" state based on the existing values, but that would take a long time with thousands of dates.Īnother attempt was to track the "idle" state using a timeplot. Currently I can only read the exact date and time for the state "busy" from the data set (see screenshot in first attachment). Is there any possibility to also log the usage state "idle" in this dataset? Later in my evaluation I want to know the exact date and time when the resource was in state "idle". Now I would like to analyse the usage state of both resource units, but in dataset resource_unit_states_log there is only the state "usage_busy" logged. The interarrival time of source is 10 minutes and interarrival time of source 1 is 6 minutes. The delay time of service and service 1 is both 5 minutes. Resource unit W1 is seized in service and resource unit W2 is seized in service 1. I have created a simple model (see first attachment) in Anylogic.

Anylogic right turn only car