In my model a group of agents enters a building, passes acces control and wait at a waiting location until triggered.
In this waiting location I want to group to wait until everybody arrived and then move on to another waiting location.
I have groups of 30 agents every 15 minutes.
Problem:
The help file offers me to functions for triggering agents in this situation:
Code: Select all
ActivityLocation_TriggerAllWaitingAgents(e1, e2, {e3})
Code: Select all
ActivityLocation_TriggerAllApproachingAgents(e1, e2, {e3})
Code: Select all
{**Trigger the agents when a group is complete**}
AND(
ActivityLocation_TriggerAllWaitingAgents(
c, {**Current location**}
ActivityLocation_GetNumberOfAgents(c) = 30 {**Condition**}
),
ActivityLocation_TriggerAllApproachingAgents(
c, {**Current location**}
ActivityLocation_GetNumberOfAgents(c) = 30 {**Condition**}
)
)
Code: Select all
ActivityLocation_GetNumberOfAgents(c) = 30
So how to address this loner? Or does anybody have a different approach.
In the help under Availability - Trigger on start there is a mention of
Code: Select all
ActivityLocation_TriggerAllAgents
*This isn't necessarily the last one entering, it's the last one who hasn't found his spot in the waiting area yet.. sometimes this is an agent being stuck between other agents who are in his assigned spot. So the location approaching option 'random' needs some work as well.