From d13b1c8c5d33c739c4a494e55d37bf65886ae52e Mon Sep 17 00:00:00 2001 From: MLErik <baerenjesus@gmail.com> Date: Sun, 18 Aug 2019 07:52:47 -0400 Subject: [PATCH] priority to connect to intersection instead of other city. minor bug fixes in node connecting algorithm --- examples/flatland_2_0_example.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/flatland_2_0_example.py b/examples/flatland_2_0_example.py index 15b19f8c..1caa0aa9 100644 --- a/examples/flatland_2_0_example.py +++ b/examples/flatland_2_0_example.py @@ -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, -- GitLab