question

Nivedita Ravi avatar image
1 Like"
Nivedita Ravi asked Matthew Gillespie answered

How do I acquire the last resource that I just released?

I acquire and release a resource. I now would like to re acquire exactly the particular resource that I just released. How do I do that.

FlexSim 16.2.2
resourceacquire resourcerelease resource
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

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

First, you need to save off a reference to the first resource before you release it (since releasing the resource removes the reference from the label).

Second, you need to use a query on the second Acquire activity like this:

WHERE value = Puller.oldResource

Where oldResource is the label that I stored off in step 1.

This sample model shows it working - the boxes are colored the color of their first operator and that same operator should use them for the second step.

We're working on a couple improvements to make this easier in the future.


5 |100000

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

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.