File tree 1 file changed +4
-0
lines changed
core/src/main/java/org/eqasim/core/scenario/config
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 25
25
import org .matsim .core .config .groups .PlansCalcRouteConfigGroup ;
26
26
import org .matsim .core .config .groups .PlansCalcRouteConfigGroup .AccessEgressType ;
27
27
import org .matsim .core .config .groups .PlansCalcRouteConfigGroup .ModeRoutingParams ;
28
+ import org .matsim .core .config .groups .PlansConfigGroup ;
28
29
import org .matsim .core .controler .OutputDirectoryHierarchy .OverwriteFileSetting ;
29
30
30
31
public class GenerateConfig {
@@ -188,6 +189,9 @@ protected void adaptConfiguration(Config config) {
188
189
eqasimConfig .setCostModel (TransportMode .car , EqasimModeChoiceModule .ZERO_COST_MODEL_NAME );
189
190
eqasimConfig .setCostModel (TransportMode .pt , EqasimModeChoiceModule .ZERO_COST_MODEL_NAME );
190
191
192
+ // To make sure trips arriving later than the next activity end time are taken into account when routing the next trip during mode choice
193
+ config .plans ().setTripDurationHandling (PlansConfigGroup .TripDurationHandling .shiftActivityEndTimes );
194
+
191
195
// Update paths
192
196
config .network ().setInputFile (prefix + "network.xml.gz" );
193
197
config .plans ().setInputFile (prefix + "population.xml.gz" );
You can’t perform that action at this time.
0 commit comments