Skip to content
Snippets Groups Projects
Commit d13b1c8c authored by Erik Nygren's avatar Erik Nygren :bullettrain_front:
Browse files

priority to connect to intersection instead of other city.

minor bug fixes in node connecting algorithm
parent 014f2d74
No related branches found
No related tags found
No related merge requests found
......@@ -22,12 +22,12 @@ stochastic_data = {'prop_malfunction': 0.5, # Percentage of defective agents
TreeObservation = TreeObsForRailEnv(max_depth=2, predictor=ShortestPathPredictorForRailEnv())
env = RailEnv(width=10,
height=10,
rail_generator=sparse_rail_generator(num_cities=3, # Number of cities in map
num_intersections=1, # Number of interesections in map
rail_generator=sparse_rail_generator(num_cities=3, # Number of cities in map (where train stations are)
num_intersections=1, # Number of interesections (no start / target)
num_trainstations=8, # Number of possible start/targets on map
min_node_dist=3, # Minimal distance of nodes
node_radius=2, # Proximity of stations to city center
num_neighb=2, # Number of connections to other cities
num_neighb=2, # Number of connections to other cities/intersections
seed=15, # Random seed
),
number_of_agents=5,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment