MC.
_prepare
(node_p, p_norm, max_dist)¶This helper function processes user and poi inputs into node list. User ids are added to a user list for the nodes, to count the number of successful and unsuccessfull attempts to reach destination. POI probabilities are added to the nodes to set the probability for choosing certain nodes as a destination.
Nodes have a dictionary contatining a probability object, while charging stations are a dictionary used for simulation to fill in the capacity and compare to the maximum capacity.
Parameters: |
|
---|