question

Carmen F avatar image
0 Likes"
Carmen F asked Carmen F commented

Query to acquire two resources

I need to acquire two resources simultaneously to produce a certain item. To get it, I have assigned a label to processors called "Type" with the same value for each pair of options, but I cannot get the correct query to acquire the pair (both Type ==1 or both Type ==2).

1659374785546.png

If there is a better way to get this purpose, please let me know.

Attached is a basic model with the problem.

FlexSim 22.0.0
process flowacquire resourcesql query
1659374785546.png (13.8 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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Carmen F commented

The pulls of the objects happen independently, so something like "pull x objects with matching but arbitrary labels" is not possible in a single activity (at least not in a simple way).

What I would do is to use the two Acquire activities. The first is used to pull a processor of type that is available at least two times. The second then just pulls a processor with the same type. If the processors are only ever acquired in pairs the first activity can just pull any processor.

This is made easier when the resource reference is a global list, because this allows us to use a query to determine how many objects with a given label value are on the list.

1659424924881.png

1659425022760.png

The Zone is there to prevent issue when multiple tokens are waiting to acquire processors, by only allowing one at time.


1659424924881.png (27.3 KiB)
1659425022760.png (51.7 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.

Carmen F avatar image Carmen F commented ·

It works!! Thank you very much for the answer and for your advices. To manage resources by using global lists is one of my many pending issues ;).

0 Likes 0 ·