|
MATSIM
|
Static Public Member Functions | |
| static void | main (String[] args) |
Static Private Attributes | |
| final static Logger | LOG = Logger.getLogger(Math.class) |
Demonstrates how to use parallelisation in MATSim using the Sioux Falls example. It is assumed the machine you are running this on actually accommodates multiple threads.
Definition at line 59 of file RunParallelisationExample.java.
|
static |
Running the Sioux-Falls scenario, first with single thread, and then in parallel (for all modules allowing parallelisation: mobsim, replanning and events handling).
Note: the purpose of the example is to show how multi-threaded behaviour is switched on. It may be, given your hardware setup, that this example runs longer under the multi-threaded setup ;-)
| args |
Definition at line 73 of file RunParallelisationExample.java.
References org.matsim.core.config.Config.controler, org.matsim.core.config.ConfigUtils.createConfig(), org.matsim.core.utils.io.IOUtils.deleteDirectory(), org.matsim.core.config.Config.global, org.matsim.core.config.ConfigUtils.loadConfig(), org.matsim.core.scenario.ScenarioUtils.loadScenario(), org.matsim.core.config.Config.parallelEventHandling, org.matsim.core.gbl.Gbl.printElapsedTime(), org.matsim.core.config.Config.qsim(), org.matsim.core.controler.Controler.run(), and org.matsim.core.gbl.Gbl.startMeasurement().

|
staticprivate |
Definition at line 60 of file RunParallelisationExample.java.
1.8.8