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

Seize jumps the queue if there is room in the server #116

Closed
Enchufa2 opened this Issue Nov 3, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@Enchufa2
Member

Enchufa2 commented Nov 3, 2017

Example:

library(simmer)

dummy <- function(n)
  trajectory() %>%
    seize("res", n) %>%
    timeout(10) %>%
    release("res", n)

env <- simmer(verbose = TRUE) %>%
  add_resource("res", 10) %>%
  add_generator("dummy7", dummy(7), at(0, 1)) %>%
  add_generator("dummy1", dummy(1), at(2)) %>%
  run()

get_mon_arrivals(env)
#>      name start_time end_time activity_time finished replication
#> 1 dummy70          0       10            10     TRUE           1
#> 2 dummy10          2       12            10     TRUE           1
#> 3 dummy71          1       20            10     TRUE           1

@Enchufa2 Enchufa2 added the bug label Nov 3, 2017

@Enchufa2 Enchufa2 closed this in 07a3265 Nov 3, 2017

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