question

Tiny N avatar image
0 Likes"
Tiny N asked Jeanette F commented

Conditional Decide using Global Lookup Table

Hi everyone,

I have a question related Conditional Decide (Decide function) using Global Lookup Table. In my case, I try to Delay my model when completed each item Type (it means just the last item released my model is stopped). My idea is count quantity of item each type and when quantity equal quantity in Global Lookup Table my model will be stopped. But I not yet found approach use process flow code for this problem.

I attached my model below.

Thanks in advance!

ConditionalDecide-question.fsm

FlexSim 22.2.2
conditional decideglobal lookup table
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Tiny N, was Lucas Antonio Risso's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Lucas Antonio Risso avatar image
0 Likes"
Lucas Antonio Risso answered

Hi Tiny,

I have made some adjustments on your model to elaborate the logic.

Basically, I have added a custom code that increment the value of the third column considering the Type found on the box associated to the token.

I also have included some blocks to reset the values of theses columns to 0, as indicated on the bottom of the Process Flow.

Obs: Notice that you have to elaborate the logic after the "Decide", and maybe to change the connectors order.

I hope it works as you want to.

Regards from Brazil.
conditionaldecide-question (1).fsm


5 |100000

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

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.