-
I'm working on a second simulation where I need to assign agents to groups such that: Group 1 exits through the first exit via the first waypoint. I've implemented the transitions in the journey correctly, but I’m encountering an issue when assigning these journeys to the groups. Specifically, I receive a RuntimeError: Unknown journey id when trying to add agents to the simulation. I've attached a screenshot of the error! Could someone point out what might be going wrong or suggest a better way to assign these journeys to the groups? Any help would be greatly appreciated! <img width="696" alt="image" src="https://github.com/user-attachments/assets/0209a52f-fd26-4d67-812f-434bfe113563" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
Hi,
You work with an array of simulations
simulations[number]
, which is ok.However, in this cell you add the journeys in
simulation
, not in simulations[number]. This is why you get the error.Maybe you can wrap this cell in a function
init_journeys(simulation)
and return the journeys.Maybe like this: