question

Craig DIckson avatar image
1 Like"
Craig DIckson asked Matt Long edited

Resource not re-evaluating

I am using a PF resource as a gate. I set it's (numeric) value to 0 and pre release a set of orders. Then when I am ready for those orders to proceed, I set it's value to one. The problem is, it never re-evaluates the resource because no additional orders are trying to get the resource, and none have it to release it. From the user's manual:

"When in numeric mode, the Count property can dynamically change during the simulation. It will be reevaluated every time a token attempts to acquire a resource and whenever a resource is released."

So when I change the numeric value back to 1 to release the orders, nothing happens. What can I do to trigger it to re-evaluate?

FlexSim 16.2.0
process flow resources
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
3 Likes"
Matt Long answered Matt Long edited

As stated in the documentation you posted, the reevaluation happens "every time a token attempts to acquire a resource and when a resource is released". These two things happen when a token enters an Acquire activity or a Release activity. If all of your tokens are already waiting at an Acquire activity, release the last one back into the Acquire activity so it can reevaluate the Count. This could be done using the releasetoken() command (found as a pick option in the Custom Code activity).

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.