diff --git a/docs/flatland_2.0.md b/docs/flatland_2.0.md index 05982babbab45e6aa0d819424c317d5ae05bb2ac..21d59b4f26f77c8c4cb32aa9cd1f7247eddc690e 100644 --- a/docs/flatland_2.0.md +++ b/docs/flatland_2.0.md @@ -75,11 +75,11 @@ You can tune the following parameters: If you run into any bugs with sets of parameters please let us know. -Here is a network with `realistic_mode=False` and the parameters from above. +Here is a network with `grid_mode=False` and the parameters from above.  -and here with `realistic_mode=True` +and here with `grid_mode=True`  @@ -90,8 +90,9 @@ This is very common for railway networks where the initial plan usually needs to We implemted a poisson process to simulate delays by stopping agents at random times for random durations. The parameters necessary for the stochastic events can be provided when creating the environment. -# Use a the malfunction generator to break agents from time to time ``` +# Use a the malfunction generator to break agents from time to time + stochastic_data = { 'prop_malfunction': 0.5, # Percentage of defective agents 'malfunction_rate': 30, # Rate of malfunction occurence @@ -124,9 +125,6 @@ for a in range(env.get_num_agents()): if info['malfunction'][a] == 0: action_dict.update({a: ...}) -``` - - # Custom observation builder tree_observation = TreeObsForRailEnv(max_depth=2, predictor=ShortestPathPredictorForRailEnv())