mjcortejo / csc931m-complex-systems

This repository contains the projects done for the CSC931M class
0 stars 0 forks source link

Implement weighting mechanism #22

Closed mjcortejo closed 1 year ago

mjcortejo commented 1 year ago

Need to implement a weighting mechanism to each edge to impact the shortest path function.

mjcortejo commented 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 ...
mjcortejo commented 1 year ago

Initial implementation, will pause this for now and push to dev. Will have to prioritize multithreading for better performance

mjcortejo commented 1 year ago

19 Already closed, can now focus here

mjcortejo commented 1 year ago

Need to implement an initial weight to all the edges by 1.

mjcortejo commented 1 year ago

Already implemented way before, closing issue