odd first/last jumps on directed graph (moving skills)

16 views
Skip to first unread message

Srirama Bhamidipati

unread,
Jun 24, 2018, 1:03:10 AM6/24/18
to gama-p...@googlegroups.com
Hi

I am facing a strange situation of agent taking a bad first/ last -- entry/exit from a directed graph. For example, if the destination building is on the left side of the road, the agent jumps from the right side of the road into the building and if the building is on the right side of the road, also then the agent jumps from the right side of the road. This behavior is seen both when agent joins a network and also when agent exits the network 

I attach a simple model and would be nice if someone could test the same. Try placing the building[1], the initial host of agent on left side of the road or on the right side of the road, the agents behavior doesnt change in selecting the closest road to join the graph. To place the building[1] on the right side of the road, try this location { 40,72}. I also tried the same with the destination building[0]. You can place the building on the other side of the road at {7, 15}

I feel something is not right in agent choosing the first and the last road. This leads to some wrong calculation with two extra edges in the path.

Thank you
Srirama


path.gaml

Srirama Bhamidipati

unread,
Jun 24, 2018, 1:47:32 AM6/24/18
to GAMA
Hi

A little investigation shows me that the agent only exists or enters the network on a originally created line and not the artificially reversed =  reverse(copy(shape.points)) lineThis seems true on all the configurations I examined. If its true, then I believe it should be corrected, else for every path, I am having two extra edges to travel.

thank you
Srirama
Reply all
Reply to author
Forward
0 new messages