question

Melike Yk avatar image
0 Likes"
Melike Yk asked Jason Lightfoot commented

take first avaible operator in the near

I am trying to figure out how I can choose a random first avaible operator to do the task in the process flow. I tried to put all Operators in a group but it didnt work.

Is there any other logic to do this?


1661936550298.png

FlexSim 22.2.1
process flowoperatorfirst available
1661936550298.png (30.1 KiB)
· 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 @Melike Yk, was Jason Lightfoot'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

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

You can have them in a list and when you pull them add the clause ORDER BY RAND(). Or create an array of those available and use duniform(1, myarray.length) as the index of the array.

· 2
5 |100000

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

Melike Yk avatar image Melike Yk commented ·

thank you!

I tried this but without success. Could you check my Model?

Model name: Versuch_Vers3.fsm

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Melike Yk commented ·

It looks like you didn't create an array or use a list but instead are using Acquire Resource,


You can put ORDER BY RAND() in the Query field and see if that does what you want:

1662376741407.png

0 Likes 0 ·
1662376741407.png (19.5 KiB)

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.