Class LinkBasedRelativeDualityGapFunction

    • Field Detail

      • measuredNetworkCost

        protected double measuredNetworkCost
        Current system cost as it stands
      • minimumNetworkCost

        protected double minimumNetworkCost
        Represents the total minimum cost possible
      • gap

        protected double gap
        Gap
      • INITIAL_GAP

        public static double INITIAL_GAP
        initial gap to use
    • Constructor Detail

      • LinkBasedRelativeDualityGapFunction

        public LinkBasedRelativeDualityGapFunction​(IdGroupingToken idToken,
                                                   StopCriterion stopCriterion)
        Constructor
        Parameters:
        idToken - to use for the generation of its id
        stopCriterion - StopCriterion object being used
      • LinkBasedRelativeDualityGapFunction

        public LinkBasedRelativeDualityGapFunction​(LinkBasedRelativeDualityGapFunction other,
                                                   boolean deepCopy)
        Copy constructor
        Parameters:
        other - to copy
        deepCopy - when true, create a deep copy, shallow copy otherwise
    • Method Detail

      • getMeasuredNetworkCost

        public double getMeasuredNetworkCost()
        Return the measured cost
        Returns:
        the measured cost
      • increaseMeasuredCost

        public void increaseMeasuredCost​(double value)
        Increase system cost, i.e. compute it exogenously
        Parameters:
        value - increase
      • increaseConvexityBound

        public void increaseConvexityBound​(double value)
        Increase convexity bound cost, i.e. compute it exogenously
        Parameters:
        value - the increase
      • reset

        public void reset()
        Reset the gap function
        Specified by:
        reset in class GapFunction
      • computeGap

        public double computeGap()
        Compute the gap and return it
        Specified by:
        computeGap in class GapFunction
        Returns:
        the gap for the current iteration
      • getGap

        public double getGap()
        Returns the last computed gap
        Specified by:
        getGap in class GapFunction
        Returns:
        latest gap