Class LinkBasedRelativeDualityGapFunction


  • public class LinkBasedRelativeDualityGapFunction
    extends GapFunction
    Gap function based on the work of Bovy and Jansen (1983) who take the different between the current system travel time and the system travel time if all flow were to be assigned to the shortest paths, divided by the system travel time
    Author:
    markr
    • Field Detail

      • actualSystemTravelTime

        protected double actualSystemTravelTime
        Current system travel time as it stands
      • minimumSystemTravelTime

        protected double minimumSystemTravelTime
        Represents the total travel time if all flow were to be diverted to the shortest paths for all origin-destination pairs
      • gap

        protected double gap
        Gap
    • Constructor Detail

      • LinkBasedRelativeDualityGapFunction

        public LinkBasedRelativeDualityGapFunction​(StopCriterion stopCriterion)
        Constructor
        Parameters:
        stopCriterion - StopCriterion object being used
    • Method Detail

      • computeGap

        public double computeGap()
        Compute the gap
        Returns:
        the gap for the current iteration
      • getActualSystemTravelTime

        public double getActualSystemTravelTime()
        Return the actual system travel time
        Returns:
        the actual system travel time
      • increaseActualSystemTravelTime

        public void increaseActualSystemTravelTime​(double increaseValue)
        Increase system travel time, i.e. compute it exogenously
        Parameters:
        increaseValue - increase in actualSystemTravelTime for this iteration
      • increaseConvexityBound

        public void increaseConvexityBound​(double increaseMinimumSystemTravelTime)
        Increase convexity bound travel time, i.e. compute it exogenously
        Parameters:
        increaseMinimumSystemTravelTime - the increase in minimum system travel time
      • reset

        public void reset()
        Reset system travel time and convexity bound to zero
        Specified by:
        reset in class GapFunction
      • getGap

        public double getGap()
        Return the gap for the current iteration
        Specified by:
        getGap in class GapFunction
        Returns:
        the gap for the current iteration