Replies: 1 comment 2 replies
-
|
It's a way of doing it, but I don't think it's the best way. I would rather run a update_capacity <- function(.env, resource, limit) {
function() {
if (get_queue_count(.env, resource) < limit)
return(3)
return(4)
}
}
customer <- trajectory() %>%
set_capacity("server", update_capacity(env, "server", 299)) %>%
seize("server", 1) %>%
set_capacity("server", update_capacity(env, "server", 300)) %>%
timeout(function() {rexp(1, mu)}) %>%
release("server", 1)Note also that:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a proof-of-concept idea I thought of: Suppose there is a MMK queue where :
I was trying to see online if it is possible to do this in Simmer. I tried to modify previous Simmer code I was using to do this (i.e. simulate queue trajectories and plot different metrics):
The code ran and I got this plot:
Is this how we correctly add alternating servers in simmer?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions