Class StaticLtmBushStrategy


  • public class StaticLtmBushStrategy
    extends StaticLtmAssignmentStrategy
    Implementation to support a bush absed solution for sLTM
    Author:
    markr
    • Constructor Detail

      • StaticLtmBushStrategy

        public StaticLtmBushStrategy​(IdGroupingToken idGroupingToken,
                                     long assignmentId,
                                     TransportModelNetwork transportModelNetwork,
                                     StaticLtmSettings settings,
                                     TrafficAssignmentComponentAccessee taComponents)
        Constructor
        Parameters:
        idGroupingToken - to use for internal managed ids
        assignmentId - of parent assignment
        transportModelNetwork - to use
        settings - to use
        taComponents - to use for access to user configured assignment components
    • Method Detail

      • createInitialSolution

        public void createInitialSolution​(double[] initialLinkSegmentCosts)
        Create initial bushes, where for each origin the bush is initialised with the shortest path only
        Specified by:
        createInitialSolution in class StaticLtmAssignmentStrategy
        Parameters:
        initialLinkSegmentCosts - costs to use
      • performIteration

        public boolean performIteration​(Mode theMode,
                                        double[] costsToUpdate,
                                        int iterationIndex)
        Perform an iteration by: 1. Identify new PASs and shift flow from affected bushes 2. Conduct another loading update based on adjusted PASs and bushes 3. Update Bushes by shifting flow between existing PASs 4. Conducting a loading to obtain network costs
        Specified by:
        performIteration in class StaticLtmAssignmentStrategy
        Parameters:
        theMode - to use
        costsToUpdate - to place updated costs in (output)
        iterationIndex - we're at
        Returns:
        true when iteration could be successfully completed, false otherwise