question

Mustafa L avatar image
0 Likes"
Mustafa L asked Jordan Johnson answered

Sets of resources and order of operations

This seems to be a really simple question but I can't find a simple way to solve it.

I am trying to build a process flow where a token goes through a sequence of operations and then exits the system. The list of processes, processing times and number of available processors are defined in a table such as the one below (in the actual model there are about 50 processes):

I created the below process flow and I envision modifying something in the Resources, Acquire and release based on a label that I set for the token.

Currently I don't see a way to do this. Can someone help me out?

Thanks

FlexSim 18.1.2
process flowsequence of operations
table.png (36.8 KiB)
processflow.png (101.2 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

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered

Here is one possible solution:

sequenceofoperations.fsm

In the Available Processors container, a Scheduled Source makes one token per row in the table. Then, the Run Sub Flow creates one token per "available processor" for that step. Each token now represents a processor. So I push those Processor tokens to a list, where the list is partitioned by the sequence number.

In the Things to Process container, tokens go through each step. For each step, they try to get a processor for the step they are one (asking for the correct partition). Once they delay for long enough, they push the processor back on the list, so a different token can use it.


5 |100000

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