gama-platform / gama.old

Main repository for developing the 1.x versions of GAMA
GNU General Public License v3.0
304 stars 99 forks source link

Implement A star JPS + alternative technique for grid pathfinding #2115

Closed reyman closed 7 years ago

reyman commented 7 years ago

I think implementation of this JPS + algorithm could be a plus for gama platform in the long term :)

You could find basic informations here :

AlexisDrogoul commented 7 years ago

Problems of these highly optimized algorithms/pruning techniques is that (1) they need some preprocessing of data; (2) they can't handle dynamically changing grids/topologies/graphs. Seems to me that they're designed for AI competitions and not real-life applications...

ptaillandier commented 7 years ago

I just finished to implement A* and JPS. You have now 4 algorithms (you just have to define the algorithm used in the optimizer facet of the grid agent):

I added a model in the library to illustrate their use.

sriramab commented 7 years ago

Hi Patrick, which one of these do you think will be most efficient for flood modelling?

ptaillandier commented 7 years ago

Hi,

I am not sure how you want to use the shortest path computation for flood modeling, but on the (toy) tests I carried out, most of time, I got:

2017-05-11 17:13 GMT+02:00 Srirāma Bhamidipāti notifications@github.com:

Hi Patrick, which one of these do you think will be most efficient for flood modelling?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/gama-platform/gama/issues/2115#issuecomment-300820830, or mute the thread https://github.com/notifications/unsubscribe-auth/ABb7HfogXDsBVh8ar8YUNYua4wzgHB_Hks5r4yWMgaJpZM4MIrE_ .

sriramab commented 7 years ago

Hmm, high grid_value is high land (high elevation). The shortest path is based on grid value isn't it?