question

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst asked Braydn T commented

Why does operator stop at network node?

Hi,

Attached is a simpel model that shows a problem I have,
There is an operator that is attached to a network node. At time 1 I create a connection between NN2 and NN3. At time 5 the operator gets a task to travel to NN3. This is however not happening, it stops at NN2. Why is this happening and can I fix this?
The operator is able to find a path to NN3, but it looks like the edge is not open or something.
The command optimizenetwork is called after connecting the network nodes.

Thanks in advance,

Patrick

testnn.fsm

FlexSim 19.0.8
codenetwork nodesoptimize network
testnn.fsm (29.4 KiB)
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

·
Braydn T avatar image
0 Likes"
Braydn T answered Braydn T commented

@Patrick Zweekhorst

Someone may have better input than me, but my understanding of contextdragconnection() is that it is used when you want to create a model programatically- in other words, it is the same as using the hotkeys and your mouse. That is why the connection remains after you reset the model, and if you run it again the operator can find NN3.

Since the operator can't find NN3 the first time, I would guess that Flexsim figures out all the possible destinations on a Travel Network before model run begins. Since the connection is created after model start, it does not have that node as a possible destination.

I think if you are trying to limit place that an operator could go, I would use TrafficControl objects.

I hops this helps!

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Patrick Zweekhorst avatar image Patrick Zweekhorst commented ·

Hi @Braydn T,

You are correct that contextdragconnection is the same as connecting with your the mouse. But that is not the problem. In the actual model there are multiple places where the network node could be placed. So I do want to use network nodes if possible. Is there a function that needs to be called to update the connection matrix.

Thanks

0 Likes 0 ·
Braydn T avatar image Braydn T Patrick Zweekhorst commented ·

@Patrick Zweekhorst

I confirmed with the Developers that Network Nodes were not designed to be updated during model run, so there is no command. The connection matrix is updated on reset. If you want to have network nodes in multiple locations, you should put network nodes in all those locations and user another method to control the paths, like TrafficControl objects or Process Flow.

1 Like 1 ·

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.