question

j08j avatar image
0 Likes"
j08j asked Jeanette F commented

How to modify the priority of extracting items?

My model currently extracts items from the rack to the sink or places items from the queue into the rack sequentially according to a given array of 0 and 1. Each item is randomly assigned a type (1 or 2), and each time an item is placed into the rack, it is randomly assigned an ID. The Global List named List1 records the status of each slot storing items and the IDs of items in each slot. When executing instruction 0 (extracting items from the rack to the sink), I want to implement two simulations:

1. Prioritize extraction if there are items of type 1 in the rack.

2. Prioritize extraction based on the smaller ID value of items.

How should I modify my code for these two scenarios?

model.fsm

Thanks.

FlexSim 24.0.2
flexscriptpriorityflexscript coding
model.fsm (45.8 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.

Hi @j08j,

Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

0 Answers

·

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.