Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions AmodeusOptions.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#This is a default Amodeus config file that needs to be modified.
#Wed Mar 07 08:29:13 CET 2018
completeGraph=true
dtTravelData=3600
RandomSeed=1234
FacilitiesUpdateName=preparedFacilities
fullConfig=config_full.xml
linkSpeedDataFileName=linkSpeedData
LocationSpec=SANFRANCISCO
maxPopulationSize=250
NetworkUpdateName=preparedNetwork
numVirtualNodes=10
populationchangeModeToAV=true
populationCutter=NETWORKBASED
PopulationUpdateName=preparedPopulation
shapeFile=AbsoluteShapeFileName
simuConfig=config.xml
travelDataFileName=travelData
virtualNetwork=virtualNetwork
virtualNetworkCreator=KMEANS
waitForClients=false
parkingSpotsTagInNetwork=?
constantParkingCapacity=1
totalParkingSpaces=100
parkingCapacityPerLength=0.1
minLinkParkingCapacity=1
6 changes: 6 additions & 0 deletions LPOptions.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
#Sun Feb 28 18:53:52 CET 2021
#This is a default config file that needs to be modified. In order to work properly LPSolver needs to be set, e.g., LPSolver=timeInvariant
LPSolver=TIMEINVARIANT
LPWeightQ=0.99
LPWeightR=0.01
230 changes: 230 additions & 0 deletions config_full.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE config SYSTEM "http://www.matsim.org/files/dtd/config_v2.dtd">

<config>
<module name="amodeus">
<parameterset type="mode">
<param name="mode" value="av" />

<parameterset type="generator">
<param name="type" value="PopulationDensity" />
<param name="numberOfVehicles" value="40" />
</parameterset>

<parameterset type="dispatcher">
<param name="type" value="ModelFreeAdaptiveRepositioning" />
<param name="dispatchPeriod" value="10" />
<param name="infoLinePeriod" value="3600" />
<param name="publishPeriod" value="120" />
</parameterset>

<parameterset type="timing">
<param name="minimumPickupDurationPerStop" value="15.0" />
<param name="pickupDurationPerPassenger" value="0.0" />
<param name="minimumDropoffDurationPerStop" value="10.0" />
<param name="dropoffDurationPerPassenger" value="0.0" />
</parameterset>

<parameterset type="pricing">
<param name="pricePerKm" value="0.001" />
<param name="pricePerMin" value="0.0" />
<param name="pricePerTrip" value="3.0" />
</parameterset>
</parameterset>
</module>

<module name="network">
<param name="inputNetworkFile" value="network.xml" />
</module>

<module name="plans">
<param name="inputPlansFile" value="population.xml" />
</module>

<module name="controler">
<param name="writeEventsInterval" value="1" />
<param name="writePlansInterval" value="1" />
<param name="eventsFileFormat" value="xml" />
<param name="outputDirectory" value="output/001" />
<param name="firstIteration" value="0" />
<param name="lastIteration" value="0" />
<param name="mobsim" value="qsim" />
<param name="overwriteFiles" value="deleteDirectoryIfExists" />
</module>

<module name="qsim">
<param name="startTime" value="0:00:00" />
<param name="endTime" value="30:00:00" />
<param name="flowCapacityFactor" value="1000000000000" />
<param name="storageCapacityFactor" value="1000000000000" />
<param name="numberOfThreads" value="4" />
<param name="snapshotperiod" value="00:00:10" />

<!-- Boolean. `true': stuck vehicles are removed, aborting the plan; `false':
stuck vehicles are forced into the next link. `false' is probably the better
choice. -->
<param name="removeStuckVehicles" value="false" />

<!-- time in seconds. Time after which the frontmost vehicle on a link
is called `stuck' if it does not move. -->
<param name="stuckTime" value="3600.0" />
<param name="timeStepSize" value="00:00:01" />

<!-- `queue' for the standard queue model, `withHolesExperimental' (experimental!!)
for the queue model with holes -->
<param name="trafficDynamics" value="queue" />

</module>

<module name="planCalcScore">
<param name="writeExperiencedPlans" value="true" />

<param name="BrainExpBeta" value="1.0" />

<!-- [utils] alternative-specific constant for pt. no guarantee that this
is used anywhere. default=0 to be backwards compatible for the time being -->
<param name="constantPt" value="-2" />

<!-- [utils] alternative-specific constant for car. no guarantee that this
is used anywhere. default=0 to be backwards compatible for the time being -->
<param name="constantCar" value="-2" />
<param name="constant_av" value="8.359" />

<!-- [utils] alternative-specific constant for walk. no guarantee that
this is used anywhere. default=0 to be backwards compatible for the time
being -->
<param name="constantWalk" value="0.0" />

<!-- [utils/hr] utility for departing early (i.e. before the earliest end
time). Probably implemented correctly, but not tested. -->
<param name="earlyDeparture" value="0.0" />

<!-- [utils/hr] utility for arriving late (i.e. after the latest start
time). normally negative -->
<param name="lateArrival" value="0.0" />

<!-- new_score = (1-learningRate)*old_score + learningRate * score_from_mobsim.
learning rates close to zero emulate score averaging, but slow down initial
convergence -->
<param name="learningRate" value="1.0" />

<!-- [utils/unit_of_money] conversion of money (e.g. toll, distance cost)
into utils -->
<param name="marginalUtilityOfMoney" value="1" />

<!-- DISCOURAGED! [utils/m] utility of walking per m, normally negative.
this is on top of the time (dis)utility. It is discouraged to use this but
in some cases it may make sense. -->
<param name="marginalUtlOfDistanceWalk" value="0.0" />

<!-- [unit_of_money/m] conversion of car distance into money -->
<param name="monetaryDistanceRateCar" value="-0.000378" />
<param name="monetaryDistanceRate_av" value="0.0" />

<!-- [unit_of_money/m] conversion of pt distance into money -->
<param name="monetaryDistanceRatePt" value="0.0" />

<!-- [utils/hr] marginal utility of doing an activity. normally positive.
also the opportunity cost of time if agent is doing nothing. -->
<param name="performing" value="12.86" />

<!-- [utils/hr] additional marginal utility of traveling by car. normally
negative. this comes on top of the opportunity cost of time -->
<param name="traveling" value="0" />
<param name="traveling_av" value="0" />

<!-- [utils/hr] additional marginal utility offset of traveling by pt.
normally negative. this comes on top of the opportunity cost of time -->
<param name="travelingPt" value="0" />

<!-- [utils/hr] additional marginal utility offset of traveling by foot.
normally negative. this comes on top of the opportunity cost of time. also
see marginalUtlOfDistanceWalk -->
<param name="travelingWalk" value="0.0" />

<!-- [utils] utility of switching a line (= transfer penalty). Normally
negative -->
<param name="utilityOfLineSwitch" value="0.0" />

<!-- [utils/hr] utility offset for waiting. this comes on top of the opportunity
cost of time. Probably implemented correctly, but not tested. -->
<param name="waitingPt" value="-12.86" />
<param name="waiting" value="-12.86" />

<param name="activityType_0" value="home" /> <!-- home -->
<param name="activityPriority_0" value="1" />
<param name="activityTypicalDuration_0" value="13:00:00" />
<param name="activityMinimalDuration_0" value="01:00:00" />

<param name="activityType_1" value="work" />
<param name="activityPriority_1" value="1" />
<param name="activityTypicalDuration_1" value="09:00:00" />
<param name="activityMinimalDuration_1" value="08:00:00" />
<param name="activityOpeningTime_1" value="08:00:00" />
<param name="activityEarliestEndTime_1" value="17:00:00" />
<param name="activityLatestStartTime_1" value="09:00:00" />
<param name="activityClosingTime_1" value="18:00:00" />

<param name="activityType_2" value="secondary" />
<param name="activityPriority_2" value="1" />
<param name="activityTypicalDuration_2" value="01:00:00" />
<param name="activityMinimalDuration_2" value="00:30:00" />
<param name="activityOpeningTime_2" value="08:00:00" />
<param name="activityClosingTime_2" value="20:00:00" />

</module>

<module name="strategy">
<param name="maxAgentPlanMemorySize" value="5" /> <!-- 0 means unlimited -->

<param name="ModuleProbability_1" value="0.75" />
<param name="Module_1" value="ChangeExpBeta" />

<param name="ModuleProbability_4" value="0.05" />
<param name="Module_4" value="TimeAllocationMutator" />
<param name="ModuleDisableAfterIteration_4" value="420" />
</module>

<!-- ====================================================================== -->

<module name="TimeAllocationMutator">
<param name="mutationRange" value="3600.00" />
</module>

<!-- ====================================================================== -->

<module name="transitRouter">

<!-- additional time the router allocates when a line switch happens. Can
be interpreted as a 'safety' time that agents need to safely transfer from
one line to another -->
<param name="additionalTransferTime" value="0.0" />

<!-- 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" />

<!-- the radius in which stop locations are searched, given a start or
target coordinate -->
<param name="searchRadius" value="1500.0" />
</module>


<module name="subtourModeChoice">

<!-- Defines the chain-based modes, seperated by commas -->
<param name="chainBasedModes" value="car" />

<!-- 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" />

<!-- Defines all the modes available, including chain-based modes, seperated
by commas -->
<param name="modes" value="car,pt,walk,av" />
</module>

</config>
Binary file added linkSpeedData.bin
Binary file not shown.
Loading