-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8739408
commit fba73d2
Showing
5 changed files
with
375 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<!DOCTYPE chargers SYSTEM "http://matsim.org/files/dtd/chargers_v1.dtd"> | ||
|
||
<chargers> | ||
<charger id="charger1" link="1995006780006r" plug_power="100.0" plug_count="1000" type="blue"/> | ||
</chargers> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,223 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE config SYSTEM "http://www.matsim.org/files/dtd/config_v2.dtd"> | ||
<config> | ||
<module name="HereAPITravelTimeValidation" > | ||
<param name="date" value="2021-02-24" /> | ||
<param name="numOfTrips" value="5000" /> | ||
<param name="timeBin" value="0" /> | ||
<param name="timeWindow" value="00:00:00-36:00:00" /> | ||
<param name="useHereAPI" value="false" /> | ||
</module> | ||
<module name="TimeAllocationMutator" > | ||
<!-- Default:1800.0; Defines how many seconds a time mutation can maximally shift a time. --> | ||
<param name="mutationRange" value="7200.0" /> | ||
</module> | ||
<module name="controler" > | ||
<!-- Default=1000. Last Iteration of a simulation. --> | ||
<param name="lastIteration" value="750" /> | ||
<param name="outputDirectory" value="scenarios/output/output-hamburg-v3.0-1pct" /> | ||
<!-- Possible values: failIfDirectoryExists, overwriteExistingFiles, deleteDirectoryIfExists --> | ||
<param name="overwriteFiles" value="deleteDirectoryIfExists" /> | ||
<!-- An identifier for the current run which is used as prefix for output files and mentioned in output xml files etc. --> | ||
<param name="runId" value="hamburg-v3.0-1pct-base" /> | ||
<!-- iterationNumber % writeEventsInterval == 0 defines in which iterations events are written to a file. `0' disables events writing completely. --> | ||
<param name="writeEventsInterval" value="100" /> | ||
<!-- iterationNumber % writePlansInterval == 0 defines (hopefully) in which iterations plans are written to a file. `0' disables plans writing completely. Some plans in early iterations are always written --> | ||
<param name="writePlansInterval" value="50" /> | ||
</module> | ||
<module name="global" > | ||
<param name="coordinateSystem" value="EPSG:25832" /> | ||
<param name="insistingOnDeprecatedConfigVersion" value="false" /> | ||
<!-- "global" number of threads. This number is used, e.g., for replanning, but NOT in QSim. This can typically be set to as many cores as you have available, or possibly even slightly more. --> | ||
<param name="numberOfThreads" value="8" /> | ||
</module> | ||
<module name="hamburgExperimental" > | ||
<param name="filterCommercial" value="false" /> | ||
<param name="freeSpeedFactor" value="1.8" /> | ||
<param name="increaseStorageCapacity" value="false" /> | ||
<param name="parkPressureScoreConstant" value="-1.0" /> | ||
<param name="parkPressureScoreParams" value="1.,0.7,0." /> | ||
<param name="populationDownsampleFactor" value="1.0" /> | ||
<param name="sampleSize" value="10" /> | ||
<param name="usePersonIncomeBasedScoring" value="true" /> | ||
<param name="scorePenaltyForMassConservationViolation" value="-2.5" /> | ||
</module> | ||
<module name="network" > | ||
<param name="inputNetworkFile" value="https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/hamburg/hamburg-v3/v3.0/input/baseCase/hamburg-v3.0-network-with-pt.xml.gz" /> | ||
</module> | ||
<module name="planCalcScore"> | ||
<param name="fractionOfIterationsToStartScoreMSA" value="1.0"/> | ||
<parameterset type="scoringParameters"> | ||
<parameterset type="modeParams" > | ||
<!-- [utils] alternative-specific constant. Normally per trip, but that is probably buggy for multi-leg trips. --> | ||
<param name="constant" value="-0.25" /> | ||
<!-- [money] daily monetary constant. default=0 to be backwards compatible --> | ||
<param name="dailyMonetaryConstant" value="-5.3" /> | ||
<!-- [utils/hr] additional marginal utility of traveling. normally negative. this comes on top of the opportunity cost of time --> | ||
<param name="marginalUtilityOfTraveling_util_hr" value="0.0" /> | ||
<!-- [utils/m] utility of traveling (e.g. walking or driving) per m, normally negative. this is on top of the time (dis)utility. --> | ||
<param name="marginalUtilityOfDistance_util_m" value="-2.0E-4" /> | ||
<param name="mode" value="car" /> | ||
<!-- [unit_of_money/m] conversion of distance into money. Normally negative. --> | ||
<param name="monetaryDistanceRate" value="-2.0E-4" /> | ||
</parameterset> | ||
<parameterset type="modeParams" > | ||
<param name="constant" value="-4.5" /> | ||
<param name="dailyMonetaryConstant" value="-0.0" /> | ||
<param name="marginalUtilityOfTraveling_util_hr" value="0.0" /> | ||
<param name="mode" value="ride" /> | ||
<param name="monetaryDistanceRate" value="-2.0E-4" /> | ||
</parameterset> | ||
<parameterset type="modeParams" > | ||
<param name="constant" value="-0.5" /> | ||
<param name="dailyMonetaryConstant" value="-2.3" /> | ||
<param name="marginalUtilityOfTraveling_util_hr" value="-10.5" /> | ||
<param name="mode" value="pt" /> | ||
</parameterset> | ||
<parameterset type="modeParams" > | ||
<param name="constant" value="-0.2" /> | ||
<param name="marginalUtilityOfTraveling_util_hr" value="-12.7" /> | ||
<param name="mode" value="bike" /> | ||
</parameterset> | ||
<parameterset type="modeParams" > | ||
<param name="marginalUtilityOfTraveling_util_hr" value="-1.0" /> | ||
<param name="mode" value="walk" /> | ||
</parameterset> | ||
</parameterset> | ||
</module> | ||
<module name="plans" > | ||
<param name="inputPlansFile" value="https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/hamburg/hamburg-v3/v3.0/input/baseCase/hamburg-v3.0-1pct-base.plans.xml.gz"/> | ||
<!-- (not tested) will remove plan attributes that are presumably not used, such as activityStartTime. default=false. Use with Caution! --> | ||
<param name="removingUnnecessaryPlanAttributes" value="true" /> | ||
</module> | ||
<module name="planscalcroute" > | ||
<!-- Defines how access and egress to main mode is simulated. Either of [none, accessEgressModeToLink, walkConstantTimeToLink, accessEgressModeToLinkPlusTimeConstant], Current default=none which means no access or egress trips are simulated. --> | ||
<param name="accessEgressType" value="accessEgressModeToLink" /> | ||
<!-- All the modes for which the router is supposed to generate network routes (like car) --> | ||
<param name="networkModes" value="car,commercial_Lkw-g,commercial_Pkw-Lfw,commercial_Lkw-m,commercial_Lfw,commercial_Lkw-k,commercial_Trans,ride,commercial_PWV_IV" /> | ||
<parameterset type="teleportedModeParameters" > | ||
<param name="beelineDistanceFactor" value="1.45" /> | ||
<param name="mode" value="bike" /> | ||
<!-- Speed for a teleported mode. Travel time = (<beeline distance> * beelineDistanceFactor) / teleportedModeSpeed. Insert a line like this for every such mode. --> | ||
<param name="teleportedModeSpeed" value="3.1388889" /> | ||
</parameterset> | ||
<parameterset type="teleportedModeParameters" > | ||
<param name="beelineDistanceFactor" value="1.45" /> | ||
<param name="mode" value="walk" /> | ||
<param name="teleportedModeSpeed" value="1.0555556" /> | ||
</parameterset> | ||
</module> | ||
<module name="qsim" > | ||
<param name="endTime" value="30:00:00" /> | ||
<param name="flowCapacityFactor" value="0.01" /> | ||
<!-- [comma-separated list] Defines which modes are congested modes. Technically, these are the modes that the departure handler of the netsimengine handles. Effective cell size, effective lane width, flow capacity factor, and storage capacity factor need to be set with diligence. Need to be vehicular modes to make sense. --> | ||
<param name="mainMode" value="car,commercial_Lkw-g,commercial_Pkw-Lfw,commercial_Lkw-m,commercial_Lfw,commercial_Lkw-k,commercial_Trans,commercial_PWV_IV" /> | ||
<!-- Number of threads used for the QSim. Note that this setting is independent from the "global" threads setting. In contrast to earlier versions, the non-parallel special version is no longer there. --> | ||
<param name="numberOfThreads" value="8" /> | ||
<param name="startTime" value="00:00:00" /> | ||
<param name="storageCapacityFactor" value="0.01" /> | ||
<!-- time in seconds. Time after which the frontmost vehicle on a link is called `stuck' if it does not move. --> | ||
<param name="stuckTime" value="30.0" /> | ||
<!-- Set this parameter to true if lanes should be used, false if not. --> | ||
<param name="useLanes" value="true" /> | ||
<!-- If vehicles should all be the same default vehicle, or come from the vehicles file, or something else. Possible values: defaultVehicle modeVehicleTypesFromVehiclesData fromVehiclesData --> | ||
<param name="vehiclesSource" value="modeVehicleTypesFromVehiclesData" /> | ||
</module> | ||
<module name="strategy" > | ||
<!-- fraction of iterations where innovative strategies are switched off. Something like 0.8 should be good. E.g. if you run from iteration 400 to iteration 500, innovation is switched off at iteration 480 --> | ||
<param name="fractionOfIterationsToDisableInnovation" value="0.8" /> | ||
<parameterset type="strategysettings" > | ||
<!-- strategyName of strategy. Possible default names: SelectRandom BestScore KeepLastSelected ChangeExpBeta SelectExpBeta SelectPathSizeLogit (selectors), ReRouteTimeAllocationMutatorTimeAllocationMutator_ReRouteChangeSingleTripModeChangeTripModeSubtourModeChoice (innovative strategies). --> | ||
<param name="strategyName" value="ChangeExpBeta" /> | ||
<!-- subpopulation to which the strategy applies. "null" refers to the default population, that is, the set of persons for which no explicit subpopulation is defined (ie no subpopulation attribute) --> | ||
<param name="subpopulation" value="person" /> | ||
<!-- weight of a strategy: for each agent, a strategy will be selected with a probability proportional to its weight --> | ||
<param name="weight" value="0.7" /> | ||
</parameterset> | ||
<parameterset type="strategysettings" > | ||
<param name="strategyName" value="ReRoute" /> | ||
<param name="subpopulation" value="person" /> | ||
<param name="weight" value="0.05" /> | ||
</parameterset> | ||
<!--<parameterset type="strategysettings" > | ||
<param name="strategyName" value="SubtourModeChoice" /> | ||
<param name="subpopulation" value="person" /> | ||
<param name="weight" value="0.2" /> | ||
</parameterset>--> | ||
<parameterset type="strategysettings" > | ||
<param name="strategyName" value="ChangeSingleTripMode" /> | ||
<param name="subpopulation" value="person" /> | ||
<param name="weight" value="0.20" /> | ||
</parameterset> | ||
<parameterset type="strategysettings" > | ||
<param name="strategyName" value="TimeAllocationMutator" /> | ||
<param name="subpopulation" value="person" /> | ||
<param name="weight" value="0.05" /> | ||
</parameterset> | ||
<parameterset type="strategysettings" > | ||
<param name="strategyName" value="ChangeExpBeta" /> | ||
<param name="subpopulation" value="commercial" /> | ||
<param name="weight" value="0.95" /> | ||
</parameterset> | ||
<parameterset type="strategysettings" > | ||
<param name="strategyName" value="ReRoute" /> | ||
<param name="subpopulation" value="commercial" /> | ||
<param name="weight" value="0.05" /> | ||
</parameterset> | ||
</module> | ||
<module name="changeMode" > | ||
<!-- Defines whether car availability is considered be considered or not. An agent has no car only if it has no license, or never access to a car. Default: true --> | ||
<param name="ignoreCarAvailability" value="false" /> | ||
<!-- Defines the mode switch behavior. Possible values [fromAllModesToSpecifiedModes, fromSpecifiedModesToSpecifiedModes] Default: fromSpecifiedModesToSpecifiedModes. --> | ||
<param name="modeSwitchBehavior" value="fromSpecifiedModesToSpecifiedModes" /> | ||
<!-- Defines all the modes available, including chain-based modes, seperated by commas --> | ||
<param name="modes" value="car,pt,bike,walk" /> | ||
</module> | ||
<module name="subtourModeChoice" > | ||
<!-- Defines whether car availability must be considered or not. A agent has no car only if it has no license, or never access to a car --> | ||
<param name="considerCarAvailability" value="true" /> | ||
</module> | ||
<module name="swissRailRaptor" > | ||
<!-- Sets whether intermodal access and egress modes are selected by least cost (default) or randomly chosen out of the available access / egress modes. --> | ||
<param name="intermodalAccessEgressModeSelection" value="CalcLeastCostModePerStop" /> | ||
<!-- Possible values: Default, Individual --> | ||
<param name="scoringParameters" value="Default" /> | ||
<param name="transferPenaltyBaseCost" value="0.0" /> | ||
<param name="transferPenaltyCostPerTravelTimeHour" value="0.0" /> | ||
<param name="transferPenaltyMaxCost" value="Infinity" /> | ||
<param name="transferPenaltyMinCost" value="-Infinity" /> | ||
<!-- time deducted from transfer walk leg during transfers between pt legs in order to avoid missing a vehicle by a few seconds due to delays. --> | ||
<param name="transferWalkMargin" value="5.0" /> | ||
<!-- If true, SwissRailRaptor tries to detect when agents cannot board a vehicle in the previous iteration because it is already full and tries to find an alternative route instead. --> | ||
<param name="useCapacityConstraints" value="false" /> | ||
<param name="useIntermodalAccessEgress" value="false" /> | ||
<param name="useModeMappingForPassengers" value="false" /> | ||
<param name="useRangeQuery" value="false" /> | ||
</module> | ||
<module name="transit" > | ||
<!-- Input file containing the transit schedule to be simulated. --> | ||
<param name="transitScheduleFile" value="https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/hamburg/hamburg-v3/v3.0/input/baseCase/hamburg-v3.0-transitSchedule.xml.gz" /> | ||
<!-- Set this parameter to true if transit should be simulated, false if not. --> | ||
<param name="useTransit" value="true" /> | ||
<!-- Input file containing the vehicles used by the departures in the transit schedule. --> | ||
<param name="vehiclesFile" value="https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/hamburg/hamburg-v3/v3.0/input/baseCase/hamburg-v3.0-transitVehicles.xml.gz" /> | ||
</module> | ||
<module name="transitRouter" > | ||
<!-- step size to increase searchRadius if no stops are found --> | ||
<param name="extensionRadius" value="500.0" /> | ||
<!-- maximum beeline distance between stops that agents could transfer to by walking --> | ||
<param name="maxBeelineWalkConnectionDistance" value="300.0" /> | ||
</module> | ||
<module name="travelTimeCalculator" > | ||
<!-- (only for backwards compatibility) If false, link travel times are measured and aggregated over all vehicles using the link. --> | ||
<param name="separateModes" value="false" /> | ||
</module> | ||
<module name="vehicles" > | ||
<param name="vehiclesFile" value="https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/hamburg/hamburg-v3/v3.0/input/baseCase/hamburg-v3.0-vehicle-types.xml" /> | ||
</module> | ||
<module name="vspExperimental" > | ||
<!-- Options: | ignore | info | warn | abort | . When violating VSP defaults, this results in nothing, logfile infos, logfile warnings, or aborts. Members of VSP should use `abort' or talk to kai. --> | ||
<param name="vspDefaultsCheckingLevel" value="warn" /> | ||
</module> | ||
|
||
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,6 +224,7 @@ public static Scenario prepareScenario(Config config) throws IOException { | |
} | ||
} | ||
|
||
|
||
return scenario; | ||
} | ||
|
||
|
Oops, something went wrong.