Comments (3)
Hello, could you please attach the full logfile? Thanks ...
from matsim-code-examples.
Thank you!
BUILT.logfile.log
from matsim-code-examples.
Sorry, somehow didn't get a notification when you attached the logfile, or overlooked it. Unfortunately, doesn't help much. Assuming that you are running from an unchanged RunRoadPricingUsingTollFactorExample
, then line 61 is
if ( scenario.getVehicles().getVehicles().get( vehicleId ).getType().equals( someVehicleType ) ) {
You need to find out where the null pointer exception is coming from, by testing each component individually. Possibly the vehicleId
does not exist in the official
vehicles container. This could, for example, be a bus from the public transit module. What I would try then is to make sure that the pt bus is a different vehicle type than the vehicles that you want to charge toll on, and exclude it in the if condition before. Maybe something like
Vehicle vehicle = scenario.getVehicles().getTransitVehicles().get( vehicleId ) ;
if ( vehicle!=null ) { //it's a transit vehicle, it will not be in the "normal" vehicles container
...
You could also put a minimal working example, including some small version of input files, into a public repo at github and I could (try to) have a look
from matsim-code-examples.
Related Issues (20)
- Effect of car ownership , having drivers license or car availability
- Use case of income attribute HOT 2
- Visualize the output files in MATSim 15.0 HOT 1
- How to get the real-time vehicle's location data๏ผ
- 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
- Route through resticted/private roads HOT 3
- Problem with Car availability attribute
- Score function calculation HOT 3
- The steps to apply DVRP extensions
- Pedestrian modeling and simulation HOT 1
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.