Skip to content

Question/Advice Needed: implementing in-series queing system #49

Answered by hdavid16
tv-deusen asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tv-deusen,

Thanks for reaching out. I made some changes to your code and got it to work. The main changes were:

  1. After the service, you update the departA and departB fields on the client, which do not exist in the struct. This points to an another issue where the error is not being thrown. I added these fields so that they can be updated properly.
  2. I replaced the @event macros with @process macros for serve as is done in the call center example
  3. Updated the terminal condition so that the simulation runs until all jobs are processed in both servers.

Note: With these changes, the isbusy field for the server is no longer relevant.

# Tandem Queue infinite buffer size

using DiscreteEvents…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tv-deusen
Comment options

Answer selected by tv-deusen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants