question

csmcdavid avatar image
0 Likes"
csmcdavid asked csmcdavid commented

Output from a queue based upon a sample plan

I apologize if this question exists somewhere, maybe my nomenclature is different than flexsim's and wasn't recognized in the search. I have product exiting a process and entering a queue. From this queue, the product enters other lines as available, however I want the 20th item exiting the queue to go to a inspection process. How would this be done?

FlexSim 24.1.0
sample plan
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered csmcdavid commented

Here's an example using the modulus operator on the output statistic of the queue.

I've added a label 'startCount' to simulate that we don't know where in the count the model would be starting - and set that randomly for each replication (created OnSimulationStart)

QA_modulusOutput.fsm


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

csmcdavid avatar image csmcdavid commented ·
Thank you, most helpful.
0 Likes 0 ·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

it is a task for an modulus operation. You devide a statistical input value of your object by an integer division operator % and you get a integer rest value.

  • 0 % 20 = 0
  • 1% 20 = 1
  • 11% 20 = 11
  • 20 % 20 = 0
  • 21 % 20 = 1
  • ...

now you can for example add a label at each item to distinguish between inspectable and standard.

You push all items to a list and you pull items by standard or inspectable value to your processors.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.