21 package org.matsim.core.router.costcalculators;
23 import org.apache.logging.log4j.LogManager;
24 import org.apache.logging.log4j.Logger;
62 double scaledMarginalUtilityOfDistance){
65 this.travelCostFactor = -scaledMarginalUtilityOfTraveling + scaledMarginalUtilityOfPerforming;
69 if (this.travelCostFactor <= 0) {
70 log.warn(
"The travel cost in " + this.getClass().getName() +
" under normal circumstances should be > 0. " +
71 "Currently, it is " + this.travelCostFactor +
"." +
72 "That is the sum of the costs for traveling and the opportunity costs." +
73 " Please adjust the parameters" +
74 "'traveling' and 'performing' in the module 'planCalcScore' in your config file to be" +
75 " lower or equal than 0 when added.");
80 this.marginalUtlOfDistance = scaledMarginalUtilityOfDistance;
91 if (this.marginalUtlOfDistance == 0.0) {
99 if (this.marginalUtlOfDistance == 0.0) {
103 - this.marginalUtlOfDistance * link.
getLength();
FreespeedTravelTimeAndDisutility(double scaledMarginalUtilityOfTraveling, double scaledMarginalUtilityOfPerforming, double scaledMarginalUtilityOfDistance)
static final String ONLYONCE
double getPerforming_utils_hr()
Map< String, ModeParams > getModes()
double getLinkToLinkTravelTime(Link fromLink, Link toLink, double time, Person person, Vehicle vehicle)
double getMarginalUtilityOfMoney()
final double travelCostFactor
FreespeedTravelTimeAndDisutility(ScoringConfigGroup cnScoringGroup)
double getLinkTravelDisutility(final Link link, final double time, final Person person, final Vehicle vehicle)
double getLinkMinimumTravelDisutility(Link link)
final double marginalUtlOfDistance
double getLinkTravelTime(Link link, double time, Person person, Vehicle vehicle)