sbaldu / DynamicalSystemFramework

Framework for modelling dynamical complex systems

Home Page:https://sbaldu.github.io/DynamicalSystemFramework/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimize updatePath function

Grufoony opened this issue · comments

I've just noticed that, as I defined it, every path depends only on the destination mode of an itinerary. We can optimize the updatePath function by computing the path only one time for every group of itineraries with the same destination.
Moreover, should we implement tha path variable inside itinerary as a pointer?

To do this, simply characterize every itinerary by its destination only, leaving the source a property of the agent