Skip to content

Commit

Permalink
add more log msg, update pom
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Jul 13, 2023
1 parent 741c2bb commit d522641
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<artifactId>matsim-all</artifactId>

<!-- PR-labelled release -->
<version>16.0-PR2683</version>
<version>16.0-PR2686</version>

<!-- snapshot == not recommended: rather use PR-labelled release!-->
<!-- <version>16.0-SNAPSHOT</version>-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,8 @@ protected Config prepareConfig(Config config) {

log.info("Running with flow and storage capacity: {} / {}", config.qsim().getFlowCapFactor(), config.qsim().getStorageCapFactor());

if (allCar) {
log.info("Converting all agents to car plans.");
if (allCar)
config.transit().setUseTransit(false);
}

// Required for all calibration strategies
for (String subpopulation : List.of("person", "commercialPersonTraffic", "commercialPersonTraffic_service")) {
Expand Down Expand Up @@ -301,6 +299,9 @@ protected void prepareScenario(Scenario scenario) {
*/

if (planIndex != null) {

log.info("Using plan with index {}", planIndex);

for (Person person : scenario.getPopulation().getPersons().values()) {
List<? extends Plan> plans = person.getPlans();
Set<Plan> toRemove = new HashSet<>();
Expand All @@ -317,6 +318,8 @@ protected void prepareScenario(Scenario scenario) {

if (allCar) {

log.info("Converting all agents to car plans.");

RoutingModeMainModeIdentifier mmi = new RoutingModeMainModeIdentifier();

for (Person person : scenario.getPopulation().getPersons().values()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ public Integer call() throws Exception {

log.info("Collected {} relevant plans", persons.size());

if (allCar)
log.info("Scaled counts by car factor of {}", RunOpenBerlinCalibration.CAR_FACTOR);

// Error scales are very different so different betas are needed
double beta = switch (metric) {
case abs_error -> 1;
Expand Down Expand Up @@ -138,9 +141,6 @@ private List<PlanPerson> processPopulation(Path input, Network network, Counts<L

Set<Id<Link>> links = linkCounts.getCounts().keySet();

// TODO: determin scaling with all car plans
// TODO: commercial agent need to be scaled with car share

SplittableRandom rnd = new SplittableRandom(0);

for (Person person : population.getPersons().values()) {
Expand Down

0 comments on commit d522641

Please sign in to comment.