question

Mario D3 avatar image
0 Likes"
Mario D3 asked Mario D3 commented

How to prioritize in a process with different item types

Hi,

I know it exists a question very similar to this one, but I don’t get it. I have one processor and three item types, I need to process first the item type = 1, then item type = 2 and finally item type = 3. I know that I should use a trigger "On entry" and set a label "Priority" instead of the Item type, but this is not sequencing in the order that I made.

Thanks for the help. I attached the motel.

PruebaModelo2.fsm

FlexSim 20.0.2
process flowpriorityitem typeflexsim 20.0.2sequence
pruebamodelo2.fsm (42.1 KiB)
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

Matt Long avatar image
0 Likes"
Matt Long answered Mario D3 commented

I wasn't entirely sure what your model was supposed to do, so I built a sample model with three possible ways you might accomplish this. These are not all of the possibilities, but should give you enough to fix your model.

The first set of objects uses a picklist from the queue's On Entry trigger that sorts the items by their Type label. This is only useful if you have one queue feeding the processor or set of processors.

The second set uses a List. In the Send To Port of the Queue the items are pushed to Item List (which was created using the default fields). The processor's Pull Strategy is set to pull from the Item List using the query WHERE Type <= 3 ORDER BY ASC. This statement says to only return items with a Type label that is equal to 3 or less. Then order those results in ascending order (1, 2, 3). This method is the most versatile and allows you to have multiple queues feeding your processors.

These first two examples prioritize the items by their Type based upon who enters the queues first. The final example shows a way to cycle through Types if you had to process one (or more) of each Type before moving to the next Type.

In the final set, a label was added to the processor to keep track of which Type the processor is trying to pull. The Pull Requirement then pulls items with the Type label matching the current Type label on the processor. The an On Exit trigger was added to the processor to increment the Type label.

Hopefully this helps answer your question. Here's the model Process By Type.fsm


1590259337157.png (150.7 KiB)
process-by-type.fsm (34.9 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.

Mario D3 avatar image Mario D3 commented ·

Thank you, it was very helpful!

0 Likes 0 ·