matsim-org / matsim-code-examples

A repository containing code examples around MATSim
GNU General Public License v3.0
84 stars 179 forks source link

MATSim Accessibility extension plugin #435

Open stephenk80 opened 4 years ago

stephenk80 commented 4 years ago

Hello, I need help on how to use the MATSim accessibility extension as described in the MATSim book. I need to apply it to my masters' project. Basics on how to set-up the accessibility extension and to run the grid-based and zone-based examples as described in the MATSim book will be appreciated.

@dziemke, @kainagel

Thank you in advance, StephenK

prvnpandey commented 4 years ago

Every extension (plugin), written comes with java class from where you can run. Could you specify in particular which extension you are trying to use? In order to use this advanced matsim, you should know understanding about java.

stephenk80 commented 4 years ago

Hi prvnpandey,

Thank you for your response. In the MATSim book, it states that the extensions can be accessed on the website but if i check on the website there is no extension for Accessibility. If I check on the libraries I cannot find it as well. I am lost. Your assistance is much appreciated. Please see attached images. Matsim 1 Matsim 2 Matsim 3

prvnpandey commented 4 years ago

How did you clone the libraries from GitHub, there should to a folder of maven dependencies in which you can find all the accessibility libs. image

JWJoubert commented 4 years ago

You should the accessibility contrib as a Maven dependency. Depending on the version you are running (I am assuming the latest release 12.0), it will be something like

repositories>
  <repository>
    <id>matsim</id>
    <name>MATSim release repository</name>
    <url>http://dl.bintray.com/matsim/matsim</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>org.matsim.contrib</groupId>
    <artifactId>accessibility</artifactId>
    <version>12.0</version>
  </dependency>
</dependencies>
stephenk80 commented 4 years ago

Much appreciated @prvnpandey and @JWJoubert.

stephenk80 commented 4 years ago

I am trying to run the RunAccessibilityExample. The config file that I downloaded from the libraries is not working. Is there any updated config file and facilities files for the RunAccessibilityExample? See attached: the location where I got the files, the structure of the config and facilities files as well as the warning errors.

Thank you.

File location

config image

facilities image

Warning Errors

dziemke commented 4 years ago

Try to comment (i.e. deactivate) the line "accessibilityDestinationSamplingRate" in the config file and re-run.

stephenk80 commented 4 years ago

I have deactivated the line "accessibilityDestinationSamplingRate", after running the new config file, I am getting a new error. In this case, the error is coming from "cellSizeForCellBasedAccessibility". From the config file it is assigned a value of 100. Please see the attached images.

New Error

config value

dziemke commented 4 years ago

Seems like that example config file hadn't been touched in a while. Two other minor alterations were necessary. I just included them and will merge them into the master once the tests have passed.

stephenk80 commented 4 years ago

Noted - thank you @dziemke

stephenk80 commented 4 years ago

@dziemke, I am making a follow-up on the config file. I need to know if it is now updated so that I try a few examples.