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

Adresses issue #263

Updated example
parent 9e3ebfbc
No related branches found
No related tags found
1 merge request!246Malfunction last step missed
Pipeline #2650 passed
...@@ -58,7 +58,7 @@ schedule_generator = sparse_schedule_generator(speed_ration_map) ...@@ -58,7 +58,7 @@ schedule_generator = sparse_schedule_generator(speed_ration_map)
# We can furthermore pass stochastic data to the RailEnv constructor which will allow for stochastic malfunctions # We can furthermore pass stochastic data to the RailEnv constructor which will allow for stochastic malfunctions
# during an episode. # during an episode.
stochastic_data = {'malfunction_rate': 5, # Rate of malfunction occurence stochastic_data = {'malfunction_rate': 20, # Rate of malfunction occurence
'min_duration': 3, # Minimal duration of malfunction 'min_duration': 3, # Minimal duration of malfunction
'max_duration': 20 # Max duration of malfunction 'max_duration': 20 # Max duration of malfunction
} }
......
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