Skip to content
New issue

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

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

Already on GitHub? # to your account

Batch cloning doesn't clone individual lifetime data #285

Closed
Enchufa2 opened this issue Jun 25, 2022 · 0 comments
Closed

Batch cloning doesn't clone individual lifetime data #285

Enchufa2 opened this issue Jun 25, 2022 · 0 comments
Labels

Comments

@Enchufa2
Copy link
Member

From #264, nested clones seem to work just fine; the issue instead has to do with batch cloning:

library(simmer)

t <- trajectory() %>%
  log_("started") %>%
  batch(3) %>%
  clone(n = 2,
        trajectory() %>%
          timeout(4),
        trajectory() %>%
          timeout(5)) %>%
  synchronize(wait = TRUE) %>%
  separate()

simmer() %>%
  add_generator("dummy" , t, at(c(5, 10, 20))) %>%
  run() %>%
  get_mon_arrivals()
#> 5: dummy0: started
#> 10: dummy1: started
#> 20: dummy2: started
#>     name start_time end_time activity_time finished replication
#> 1 dummy0         25       25             5     TRUE           1
#> 2 dummy1         25       25             5     TRUE           1
#> 3 dummy2         25       25             5     TRUE           1
@Enchufa2 Enchufa2 added the bug label Jun 25, 2022
@Enchufa2 Enchufa2 changed the title Batch cloning doesn't clone individual arrivals Batch cloning doesn't clone lifetime data Sep 27, 2024
@Enchufa2 Enchufa2 changed the title Batch cloning doesn't clone lifetime data Batch cloning doesn't clone individual lifetime data Sep 27, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant