Comments (3)
You can have a look into our network reader examples. The reader assignes the mode car
to all links by default. If you want to do something else, your best option is to hook into setAfterLinkCreated
and set allowed modes there.
If you already have a network and want to set those restrictions, working with the matsim data format is probably the way to go.
from matsim-code-examples.
This can be modelled in several ways.
If you want to restrict roads for certain modes of transportations, for example, you want to have car-free roads, you can adjust the allowedModes
property of those links, i.e. remove the car
mode from the allowedModes
on those links. This way the router will not consider these links for newly generated routes.
If you want to restrict traffic on certain links entirely, you can also decrease the freespeed and/or the capacity of those links to a very low value. Agents will try to use these links, but will receive low scores for such routes, since it will increase travel times.
It is always possible to adjust the routing as well, and implement a custom filter. This requires substantial knowledge of Java-programming and the MATSim framework though.
from matsim-code-examples.
Thank you. I think modifying the network file is a good option.
However, when matsim parse the osm tags, can't it also consider restriction on a road?
from matsim-code-examples.
Related Issues (20)
- MATSim over AWS/Azure HOT 2
- VolumesAnalyzer for count the vehicles leave links HOT 1
- plans file HOT 1
- Issue with the GUI HOT 1
- switch from one drt mode to another one during the same trip HOT 4
- Error while running code in MATSim HOT 4
- Trouble with the simulation
- Help with Obtaining Real Origin-Destination Data HOT 4
- Strange long walking behaviour in multimodal scenario! HOT 8
- MATSIM Beginner user HOT 3
- Snapping distance /tolerance to edge from origin/destination location HOT 11
- Problem with Car availability attribute
- Score function calculation HOT 3
- The steps to apply DVRP extensions
- Pedestrian modeling and simulation HOT 1
- Integrate traffic volumes after 24 hours
- Creating synthetic population on MATSim HOT 7
- Unreasonably high travel speeds in simulation results HOT 8
- Unexpected Agent Behavior in MATSim Simulation Across Iterations HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matsim-code-examples.