Deactivating Agent Behavior Causes Error

Deactivating Agent Behavior Causes Error

iceagesimulator
Enthusiast Enthusiast
242 Views
2 Replies
Message 1 of 3

Deactivating Agent Behavior Causes Error

iceagesimulator
Enthusiast
Enthusiast

I have a model where an Operators start as an Agent, and then upon reaching a destination they deactivate their agent behavior and need to attach to the A Star network. I want to do this so they stand in a Waiting Line, but are not influenced by the Agent forces. If there is only one Operator created, then this seems to work fine (increase the arrival time, so a second Operator does not spawn). If a second Operator is created before the first Operator reaches the beginning of the waiting line, an error occurs "Exception caught in Executive::processeventinlist().". Then the second Agent goes off on a straight vector to infinity. (See attached video).

 

What I am doing wrong? I tried placing a Breathe activity in almost all positions around the "Deactivate Behavior" activity in the Process Flow. I also tried not using the Sub-Flow in the process flow, but this also did not help the problem.

0 Likes
Accepted solutions (1)
243 Views
2 Replies
Replies (2)
Message 2 of 3

FelixMoehlmann
Mentor
Mentor
Accepted solution

Hm, placing a "Breathe" in front of the activity that deactivates the agent behaviour works for me. It does not on your machine? What exact version of FlexSim are you currently using?

 

0 Likes
Message 3 of 3

iceagesimulator
Enthusiast
Enthusiast

Placing a "Breathe" in front of the deactivation activity did work. I must not have tried that when I was putting a breathe in different places for testing. Thank you!

 

FYI version I am running: 26.0.1

0 Likes