New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected output using scheduling functionality #64

Closed
Bart6114 opened this Issue Jun 14, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@Bart6114
Member

Bart6114 commented Jun 14, 2016

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):

    name start_time end_time activity_time finished replication
1 piggy0          0       10             5     TRUE           1
2 piggy2          0       20             5     TRUE           1
3 piggy1          0       25             5     TRUE           1

However, the current version gives the wrong output, 12d04a7:

    name start_time end_time activity_time finished replication
1 piggy0          0       10             5     TRUE           1
2 piggy1          0       15             5     TRUE           1
3 piggy2          0       20             5     TRUE           1

Haven't looked into it yet.

@Bart6114 Bart6114 added the bug label Jun 14, 2016

@Enchufa2 Enchufa2 added this to the v3.3.0 milestone Jun 14, 2016

@Enchufa2

This comment has been minimized.

Member

Enchufa2 commented Jun 14, 2016

Thanks. Solved now in dev-main.

@Bart6114

This comment has been minimized.

Member

Bart6114 commented Jun 14, 2016

great, thanks 👍

@Enchufa2 Enchufa2 closed this in c18412f Jun 14, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment