Class StaticLtmPathStrategy


  • public class StaticLtmPathStrategy
    extends StaticLtmAssignmentStrategy
    Implementation to deal with a path based sLTM implementation
    Author:
    markr
    • Constructor Detail

    • Method Detail

      • createInitialSolution

        public void createInitialSolution​(double[] initialLinkSegmentCosts)
        create initial solution based on generating shortest paths
        Specified by:
        createInitialSolution in class StaticLtmAssignmentStrategy
        Parameters:
        initialLinkSegmentCosts - to use
      • performIteration

        public boolean performIteration​(Mode theMode,
                                        double[] costsToUpdate,
                                        int iterationIndex)
        Perform a single iteration where we perform a loading and then an equilibration step resulting in updated costs
        Specified by:
        performIteration in class StaticLtmAssignmentStrategy
        Parameters:
        theMode - to use
        costsToUpdate - the link segment costs we are updating (possibly partially for all link segments that might have been affected by a loading
        iterationIndex - we're at
        Returns:
        true when iteration could be successfully completed, false otherwise