Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flatland
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elrichgro
Flatland
Commits
d13b1c8c
Commit
d13b1c8c
authored
5 years ago
by
Erik Nygren
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/flatland_2_0_example.py
+3
-3
3 additions, 3 deletions
examples/flatland_2_0_example.py
with
3 additions
and
3 deletions
examples/flatland_2_0_example.py
+
3
−
3
View file @
d13b1c8c
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment