Package org.goplanit.assignment.ltm.sltm
Class StaticLtmPathStrategy
- java.lang.Object
-
- org.goplanit.assignment.ltm.sltm.StaticLtmAssignmentStrategy
-
- org.goplanit.assignment.ltm.sltm.StaticLtmPathStrategy
-
public class StaticLtmPathStrategy extends StaticLtmAssignmentStrategy
Implementation to deal with a path based sLTM implementation- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description StaticLtmPathStrategy(IdGroupingToken idGroupingToken, long assignmentId, TransportModelNetwork transportModelNetwork, StaticLtmSettings settings, TrafficAssignmentComponentAccessee taComponents)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createInitialSolution(double[] initialLinkSegmentCosts)
create initial solution based on generating shortest pathsprotected StaticLtmLoadingPath
createNetworkLoading()
create a path based network loading for this solution schemeString
getDescription()
Description of the chosen sLTM strategy for equilibrationprotected StaticLtmLoadingPath
getLoading()
The network loading to applyboolean
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-
Methods inherited from class org.goplanit.assignment.ltm.sltm.StaticLtmAssignmentStrategy
executeNetworkCostsUpdate, executeNetworkLoading, findCentroidVertex, getAssignmentId, getIdGroupingToken, getInfrastructureNetwork, getOdDemands, getSettings, getTrafficAssignmentComponent, getTransportNetwork, hasConverged, setOdDemands, updateTimePeriod, verifyNetworkLoadingConvergenceProgress
-
-
-
-
Constructor Detail
-
StaticLtmPathStrategy
public StaticLtmPathStrategy(IdGroupingToken idGroupingToken, long assignmentId, TransportModelNetwork transportModelNetwork, StaticLtmSettings settings, TrafficAssignmentComponentAccessee taComponents)
Constructor- Parameters:
idGroupingToken
- to useassignmentId
- to usetransportModelNetwork
- to usesettings
- to usetaComponents
- to use for access to user configured assignment components
-
-
Method Detail
-
createNetworkLoading
protected StaticLtmLoadingPath createNetworkLoading()
create a path based network loading for this solution scheme- Specified by:
createNetworkLoading
in classStaticLtmAssignmentStrategy
- Returns:
- network loading for this solution approach
-
getLoading
protected StaticLtmLoadingPath getLoading()
The network loading to apply- Overrides:
getLoading
in classStaticLtmAssignmentStrategy
- Returns:
- network loading
-
createInitialSolution
public void createInitialSolution(double[] initialLinkSegmentCosts)
create initial solution based on generating shortest paths- Specified by:
createInitialSolution
in classStaticLtmAssignmentStrategy
- 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 classStaticLtmAssignmentStrategy
- Parameters:
theMode
- to usecostsToUpdate
- the link segment costs we are updating (possibly partially for all link segments that might have been affected by a loadingiterationIndex
- we're at- Returns:
- true when iteration could be successfully completed, false otherwise
-
getDescription
public String getDescription()
Description of the chosen sLTM strategy for equilibration- Specified by:
getDescription
in classStaticLtmAssignmentStrategy
- Returns:
- String
-
-