question

Felix H avatar image
0 Likes"
Felix H asked Felix H commented

Making seperator process time average of 1000s regardless of batch size

Hi, I am trying to get a Seperator to determine the process time so that the queue content will be cleared in an average of 1000 seconds. I've tried to set the process time = 1000/ current.inObjects[1].stats.input.value, so that the total process time is 1000 seconds regardless of the batch size. This works fine for the first batch, however as the next batches arrives the input value of the current.inObject increases respectively, which again reduces the total process time for each batch.

So is there a better way to do this? I want the seperator to use an average of 1000 seconds on each batch regardless of the batch size. I figured that resetting the input stats on the current.inObject after each batch might work, but i dont know how to do that. In addition, the input stats might be of interest later on, so resetting stats might not be the best solution.

Thank you!

Seperator_Process_Time.fsm

FlexSim 18.0.10
global tableprocess timeflexsim 18.0.10seperatoraverage
5 |100000

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

1 Answer

tannerp avatar image
0 Likes"
tannerp answered Felix H commented

Hi @Felix H,

If you already know the outcome of your simulation (the separator takes 1000 seconds to process a batch), then what is it that you're measuring? This sounds like it could be solved using a math equation.

That said, what you're doing almost works, but I don't think it will be accurate since it's a dynamic value. I added a trigger that increments a "BatchSize" label on the queue. You can then use this to calculate the processing time. The "BatchSize" label is reset when the queue is empty. Let me know if this does what you expect it to do.

separator process time help.fsm


· 7
5 |100000

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