Closed mjcortejo closed 1 year ago
Pseudo-code
def car_task(env):
while True:
# ... Your existing car movement logic ...
# Dynamically modify the edge weights (e.g., increase road speed by 10 for all edges)
for edge in road_network.edges:
road_network[edge[0]][edge[1]]['weight'] += 10
# ... Continue with the rest of your simulation logic ...
Initial implementation, will pause this for now and push to dev. Will have to prioritize multithreading for better performance
Need to implement an initial weight to all the edges by 1.
Already implemented way before, closing issue
Need to implement a weighting mechanism to each edge to impact the shortest path function.