Skip to content

Simulation stopping over a parameter that doesn't exist anymore. #1194

Open
@cnabu

Description

I'm trying to add scoring parameters for two different subpopulations. But whenever I run the simulation it gives the following error:

2024-12-30T14:58:54,478 INFO QSim:566 SIMULATION (NEW QSim) AT 00:00:00 : #Veh=229429 lost=0 simT=0.0s realT=4s; (s/r): 0.0
2024-12-30T14:58:54,477 ERROR SimStepParallelEventsManagerImpl$ExceptionHandler:442 Thread class org.matsim.core.events.SimStepParallelEventsManagerImpl$ProcessEventsRunnable0 died with exception while handling events.
java.lang.NullPointerException: Cannot invoke "org.matsim.core.config.groups.ScoringConfigGroup$ScoringParameterSet.getMarginalUtlOfWaiting_utils_hr()" because "scoringParameterSet" is null

I've checked and found out that MarginalUtlOfWaiting_utils_hr is actually the waiting parameter in the scoring module. However, even after making several changes to the code to fix this issue it's still giving the same error and shutting down. Can someone please help me resolve this issue?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions