question

j08j avatar image
0 Likes"
j08j asked Jeanette F commented

Make the ASRS retrieve items according to their priority

Is it possible to assign different priorities to each item and have the ASRS retrieve them according to their priority? If so, how should I assign the item priorities and how should I write the ASRS queue strategy?截圖-2024-06-30-下午113232.png

FlexSim 24.0.2
flexscriptasrspriorityflow itemsqueue strategy
· 4
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·
@j08j, let me assume, because you haven’t provided a model, you let create tasksequences by the FlexSim engine in object, which have an option of Use Transport. Then you can set a number value of priority for this transport job. You can try, if this priority field accepts a source code returning number. Then you can evaluate an item label for this priority value. If this field cannot evaluate a source code function, then you can choose in selecting a reference an picklist option of using tasksequence example one and edit this code to parse a priority value by reading an item label.
0 Likes 0 ·
j08j avatar image j08j Joerg Vogel commented ·


Based on the instructions for retrieval and placement, I hope to achieve that the retrieval and placement processes can each follow their own separate rules.

Although I can specify rules for placement, the items are still retrieved according to FIFO. However, when I specify the retrieval rules as follows, the entire simulation ignores the retrieval and placement instructions and retrieves and places items according to my specified rules.

1720234695445.png

model - 複製.fsm

0 Likes 0 ·
1720234695445.png (10.2 KiB)
model-複製.fsm (52.3 KiB)
Joerg Vogel avatar image Joerg Vogel j08j commented ·
Your code looks like an interactive code manipulation inside a running model. And your order of tasksequences is a result of item label value called ”Order” in descending manner.

Please test a behavior first in a simplified standard model, before you try to introduce it as an interactive dynamically created model code. There are so many different mechanisms involved, if you build a model interactively. And maybe a code works in a standard built model, but it may not work in an automatically created model, because just of the fact that a reset action is needed to compile internally a code.
And at some point when you leave standard model building procedures, you become responsible for this path solemnly alone yourself.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @j08j, was Felix Möhlmann'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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered

In other questions you posted the ASRS pulled task sequences from a list, so you could control the ordering of input and output tasks. If this is still true then you can add an expression field to the list that reads the priority label and order by it in the pull query.

5 |100000

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