question

Mohamed A17 avatar image
0 Likes"
Mohamed A17 asked Mohamed A17 commented

Scheduling tokens is not working properly and how to campaign batches?

Hi,

I am working on a model where 10 batches are created where each batch has a priority and needs to be picked by one processor then sent to a line for filing and packaging. The processor is picked based on the batch size. After the processor or the line finishes their job, an inspector is required. My questions are:

  1. How to process the batches based on their priority in series (1,2,3...etc) as my model process the batches in a different priority order (1,3,6). The main reason I found that the model processes the batches of the highest order for each processor but not based on the global priority.
  2. How to not pick the inspector if there are three order of the same batch as can be seen in BatchCode A1 (How to process these tokens in campaign).
  3. How to measure the time each token spends in either the processor or the line. Or, how to know the time a token spends in the model since being assigned to a processor until it leaves the model.

Please find the attached model for more information.


Best regards,

Flexsim_Question.fsm


FlexSim 22.0.1
tokensschedulingcampaign
flexsim-question.fsm (169.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.

1 Answer

Kavika F avatar image
0 Likes"
Kavika F answered Mohamed A17 commented

Hey @Mohamed A17, I think I've made a solution that answers most of your questions.

1. You want to make sure batches are processed in their global priority defined in the first Source Activity. Simply add a Resource that must be acquired one at a time so as items are pulled from the list in the correct priority order, they are processed in that order (so you'll have 1, 2, 3...). However this will mean that only one processor will be used at a time.

1654120965400.png

2. What I understand from this question is that you want to process all products with the same BatchCode at the same time and you don't want the inspector to inspect these products? One approach would be to determine when you have multiple products with the same BatchCode, process one, and throw the other ones away (given that they all have the same stats and you don't need to keep track of their count in the future).

3. As for stats collecting, I referred to this post which helped me create a StatisticsCollector in your model that tracks the staytime of tokens in the system since creation.

1654121512538.png

Honestly I think it would be easier to use actual flowitems in your model rather than just changing the colors of things. Then you could take advantage of some of the built-in 3D model features like sending items from processors to other processors, using an actual operator to move and perform inspections on processors and lines, etc. It could even solve some of your batching problems because you could batch flowitems into different totes/pallets and move them as a group.

solution.fsm


1654120965400.png (72.8 KiB)
1654121512538.png (15.8 KiB)
solution.fsm (56.7 KiB)
· 7
5 |100000

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