Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
unexpected output using scheduling functionality #64
Related to #21
library(simmer) t0<- create_trajectory() %>% seize("t-rex") %>% timeout(5) %>% release("t-rex") sim<- simmer() %>% add_resource("t-rex", capacity = schedule(timetable = c(5,10,15), period=Inf, values = c(1,0,1))) %>% add_generator("piggy", t0, at(0,0,0)) %>% run() plot_evolution_arrival_times(sim) get_mon_arrivals(sim)
Using the above example, we get the expected end time output with simmer version b1502ae (= version that closed this issue):
However, the current version gives the wrong output, 12d04a7:
Haven't looked into it yet.