Skip to content
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

Priority fails in non-saturated finite-queue resources #115

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

Priority fails in non-saturated finite-queue resources #115

Enchufa2 opened this issue Nov 3, 2017 · 0 comments
Labels

Comments

@Enchufa2
Copy link
Member

Enchufa2 commented Nov 3, 2017

Example:

library(simmer)

low_prio <- trajectory() %>%
  seize("res", 1) %>%
  timeout(10) %>%
  release("res", 1)

high_prio <- trajectory() %>%
  seize("res", 7) %>%
  timeout(10) %>%
  release("res", 7)

env <- simmer(verbose = TRUE) %>%
  add_resource("res", 0, 10) %>%
  add_generator("low_prio", low_prio, at(rep(0, 5))) %>%
  add_generator("high_prio", high_prio, at(1), priority = 1) %>%
  run()

get_mon_arrivals(env)
#>         name start_time end_time activity_time finished replication
#> 1 high_prio0          1        1             0    FALSE           1
@Enchufa2 Enchufa2 added the bug label Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant