Search code examples
anylogic

Anylogic Resource Pool Requests Queue not clearing


I have a very simple model with a service block that needs a resource set of two resource pools, one of each.

enter image description here

In addition to that, one of the two resource pools has a request choice condition. Both resource pools have a capacity of 1.

enter image description here

variable has an initial value of false.

When I run the model, and agents arrive, they will not be processed due to the condition. Now if I change the condition from false to true on runtime, the agents remain stuck in the service block's queue. It's like the condition is evaluated on agent arrival and is not checked again once the condition updates and what's worse is it's like the resource is reserved and not used by the agents coming later, after the condition is changed from false to true.

enter image description here

Is this by design? And how can this be resolved?

Thank you.


Solution

  • I just heard back from AnyLogic. They confirmed this is a bug.