question

Mia L avatar image
0 Likes"
Mia L asked Mia L commented

Stop running model once throughput threshold reaches

Hello, I am trying to add decide logic into my process flow to stop running the model when the throughput sink hits a certain amount (not when the queue is depleted), however I am running into an error. Is it possible to do this? If so, which Decide 'Send Token To' option should I be choosing instead?

Process Flow Circle.fsm

FlexSim 19.2.4
processflowflexsim 19.2.4throughputdecide activity
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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Mia L commented

You select from the Picklist the Option template Conditional Decide and set a condition you sample partly by the sample tool.


· 5
5 |100000

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

Mia L avatar image Mia L commented ·

Thank you very much!

0 Likes 0 ·
Mia L avatar image Mia L commented ·

@joerg.vogel My model seems to be going over the limit I set with your help in the process flow. Is there a way to fix this?

0 Likes 0 ·
tannerp avatar image tannerp Mia L commented ·

You probably still need to add in the code to stop the model. I suggest you listen for the event where the sink's input value changes to 40 rather than rely on the Decide activity. Sometimes the token won't be in the Decide activity right when the value changes to 40, and it sounds like you don't want any delay. Here's an idea that uses an Event-Triggered Source and a Custom Code.

process-flow-circle_1.fsm

1 Like 1 ·
Mia L avatar image Mia L tannerp commented ·

This helps a lot. Thank you!

1 Like 1 ·
Joerg Vogel avatar image Joerg Vogel Mia L commented ·

You have probably already identified an answer how to set the correct value to get exact 40 items into the sink. You have to set the value in the condition in the decide activity to 39. You transport the items, then there is a difference until it gets into the sink.

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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