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 voidcreateInitialSolution(double[] initialLinkSegmentCosts)create initial solution based on generating shortest pathsprotected StaticLtmLoadingPathcreateNetworkLoading()create a path based network loading for this solution schemeStringgetDescription()Description of the chosen sLTM strategy for equilibrationprotected StaticLtmLoadingPathgetLoading()The network loading to applybooleanperformIteration(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:
createNetworkLoadingin classStaticLtmAssignmentStrategy- Returns:
- network loading for this solution approach
-
getLoading
protected StaticLtmLoadingPath getLoading()
The network loading to apply- Overrides:
getLoadingin classStaticLtmAssignmentStrategy- Returns:
- network loading
-
createInitialSolution
public void createInitialSolution(double[] initialLinkSegmentCosts)
create initial solution based on generating shortest paths- Specified by:
createInitialSolutionin 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:
performIterationin 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:
getDescriptionin classStaticLtmAssignmentStrategy- Returns:
- String
-
-