Skip to content

Commit

Permalink
Merge pull request #2372 from LBNL-UCB-STI/hl/ridehail-fix-and-data-c…
Browse files Browse the repository at this point in the history
…ollection

Hl/ridehail fix and data collection
  • Loading branch information
haitamlaarabi authored Feb 24, 2020
2 parents dfc6368 + 0e96b32 commit 32b0ddd
Show file tree
Hide file tree
Showing 30 changed files with 1,220 additions and 986 deletions.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ dependencies {
compile "com.github.vagmcs:optimus_${scalaBinaryVersion}:3.1.0"
compile "com.github.vagmcs:optimus-solver-oj_${scalaBinaryVersion}:3.1.0"

compile("io.github.oliviercailloux:google-or-tools:6.7.2") {
exclude group: 'com.google.protobuf', module: 'protobuf-java'
}

////////////////////////////////////
///Performance Monitoring (Kamon)///
////////////////////////////////////
Expand Down Expand Up @@ -443,7 +447,7 @@ def jmx = ["-Dcom.sun.management.jmxremote", "-Dcom.sun.management.jmxremote.por
// UseParallelGC
applicationDefaultJvmArgs = ["-Xmx${myAvailableRam}g", "-Xms${myAvailableRam/2}g",
"-XX:+UseParallelGC", "-XX:+UseParallelOldGC", "-XX:MetaspaceSize=150M", "-Djava.awt.headless=true",
"-Dlogback.configurationFile=logback_prod.xml"] + logGC + jmx
"-Dlogback.configurationFile=logback_prod.xml", "-Xss2048k"] + logGC + jmx

println(applicationDefaultJvmArgs)

Expand Down
6 changes: 3 additions & 3 deletions src/main/python/smart/smartplots3_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@ def pltLdvRhOccupancy(_plt_setup3, _output_folder):
# plt.bar(x=top_labels_xpos, height=data['rh_2p'], bottom=data[['non_rh_ldv', 'rh_1p']].sum(axis=1), hatch='xxx', fill=False, linewidth=0)
# plt.bar(x=top_labels_xpos, height=data['rh_3p'], bottom=data[['non_rh_ldv', 'rh_1p', 'rh_2p']].sum(axis=1), hatch='|||', fill=False, linewidth=0)
# plt.bar(x=top_labels_xpos, height=data['rh_4p'], bottom=data[['non_rh_ldv', 'rh_1p', 'rh_2p', 'rh_3p']].sum(axis=1), hatch='....', fill=False, linewidth=0)
# shared_2p = mpatches.Patch(facecolor='white', label='The white data', hatch='xxx')
# shared_3p = mpatches.Patch(facecolor='white', label='The white data', hatch='|||')
# shared_4p = mpatches.Patch(facecolor='white', label='The white data', hatch='....')
# shared_2p = mpatches.Patch(facecolor='white', key='The white data', hatch='xxx')
# shared_3p = mpatches.Patch(facecolor='white', key='The white data', hatch='|||')
# shared_4p = mpatches.Patch(facecolor='white', key='The white data', hatch='....')

plt.xticks(bottom_labels_xpos, bottom_labels, rotation=angle, ha=horizontal_align)
# plt.legend((plt_non_rh_ldv, plt_rh_1p, plt_rh_shared, shared_2p, shared_3p, shared_4p),
Expand Down
6 changes: 2 additions & 4 deletions src/main/resources/beam-template.conf
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,9 @@ beam.replanning.ModuleProbability_4 = 0.0
beam.replanning.fractionOfIterationsToDisableInnovation = "double | Double.PositiveInfinity"
beam.replanning.cleanNonCarModesInIteration = "int | 0"

#h3
beam.h3.resolution = "int | 10"
beam.h3.lowerBoundResolution = "int | 10"

#skims
beam.router.skim = {
h3Resolution = "int | 6"
keepKLatestSkims = "int | 1"
writeSkimsInterval = "int | 0"
writeAggregatedSkimsInterval = "int | 0"
Expand All @@ -307,6 +304,7 @@ beam.router.skim = {
taz-skimmer {
name = "taz-skimmer"
fileBaseName = "String | skimsTAZ"
timeBin = "int | 300"
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/beam/agentsim/agents/MobilityRequest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ case class MobilityRequest(
tag: MobilityRequestType,
serviceTime: Int,
upperBoundTime: Int,
serviceDistance: Int,
serviceDistance: Double,
pickupRequest: Option[MobilityRequest] = None,
routingRequestId: Option[Int] = None,
vehicleOccupancy: Option[Int] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import scala.collection.mutable
* is the first Activity of the day, which contains only that activity.
*
* In addition, a BeamPlan contains mappings from PlanElements to Strategies. A Strategy
* is essentially a label that is assigned during initialization or Replanning and used during the MobSim
* is essentially a key that is assigned during initialization or Replanning and used during the MobSim
* to influence within-day Agent behavior. Strategies can be mapped to a Plan at any level (e.g. the whole plan,
* to a tour, a trip, etc.) but can be looked up at any level as well (allowing a Tour to have a strategy and a
* lookup on a Leg within that tour will yield that strategy).
Expand Down
Loading

0 comments on commit 32b0ddd

Please sign in to comment.