Class VRPODNeigh
java.lang.Object
es.urjc.etsii.grafo.solution.neighborhood.Neighborhood<BaseMove,VRPODSolution,VRPODInstance>
es.urjc.etsii.grafo.vrpod.model.solution.VRPODNeigh
- Direct Known Subclasses:
InsertNeigh,ODToRouteNeigh,OptNeigh,RouteToODNeigh,SwapNeigh,VRPODExtendedNeighborhood
-
Nested Class Summary
-
Field Summary
Fields inherited from class es.urjc.etsii.grafo.solution.neighborhood.Neighborhood
UNKNOWN_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexplore(VRPODSolution solution) Build an exhaustive stream that allows iterating the whole neighborhood Using a stream is more efficient that a list as moves are only generated if they are neededlistMoves(VRPODSolution solution) Methods inherited from class es.urjc.etsii.grafo.solution.neighborhood.Neighborhood
concat, empty, interleave, neighborhoodSize, random, toString
-
Constructor Details
-
VRPODNeigh
public VRPODNeigh()
-
-
Method Details
-
explore
Description copied from class:NeighborhoodBuild an exhaustive stream that allows iterating the whole neighborhood Using a stream is more efficient that a list as moves are only generated if they are needed- Specified by:
explorein classNeighborhood<BaseMove,VRPODSolution, VRPODInstance> - Parameters:
solution- Solution used to generate the neighborhood- Returns:
- Stream with all the available moves in the neighborhood
-
listMoves
-