[ad_1]
having some difficulties with my code…
I need to create a code that generates the passengers and trains in specific schedules.
In the code below the passengers are creating as they should but the trains doesn’t create at all.
I tried some different possible ways to solve this issue but still haven’t found one
Do you see something Im missing?
thank you in advanced
[![function with the train’s times][1]][1]
[1]: https://i.stack.imgur.com/OhK8H.png
the generators code:
”’add_generator(“Train”, trainTraj,distribution = from_to( start_time= 1.560, stop_time= function ()TrainSchduale(), dist = function () 44.99, arrive = TRUE, every = NULL), mon=2)%>%
add_generator(“RegularPassenger”,priority = 0, regularTraj, distribution = from_to(start_time=0, stop_time=1660, dist=function () exp(0.6912117), arrive = TRUE, every = NULL), mon=2)%>%
add_generator(“SoldierPassenger”,priority = 1, soldierTraj, distribution = from_to(start_time=0, stop_time=16*60, dist=function () exp(0.513304), arrive = TRUE, every = NULL), mon=2)”’
[ad_2]