Class FLPRemoveNeigh
java.lang.Object
es.urjc.etsii.grafo.solution.neighborhood.Neighborhood<FLPRemoveNeigh.RemoveMove, FLPSolution, FLPInstance>
es.urjc.etsii.grafo.flayouts.model.FLPRemoveNeigh
public class FLPRemoveNeigh
extends Neighborhood<FLPRemoveNeigh.RemoveMove, FLPSolution, FLPInstance>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Neighborhood
Neighborhood.EmptyNeighborhood<M,S, I> -
Field Summary
Fields inherited from class Neighborhood
UNKNOWN_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexplore(FLPSolution 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 neededstatic doubleremoveCost(FLPSolution solution, int rowIdx, int pos) Methods inherited from class Neighborhood
concat, empty, interleave, neighborhoodSize, random, toString
-
Constructor Details
-
FLPRemoveNeigh
public FLPRemoveNeigh()
-
-
Method Details
-
explore
public ExploreResult<FLPRemoveNeigh.RemoveMove, FLPSolution, FLPInstance> explore(FLPSolution solution) 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<FLPRemoveNeigh.RemoveMove, FLPSolution, FLPInstance>- Parameters:
solution- Solution used to generate the neighborhood- Returns:
- Stream with all the available moves in the neighborhood
-
removeCost
-