Class FLPAddNeigh
java.lang.Object
es.urjc.etsii.grafo.solution.neighborhood.Neighborhood<FLPAddNeigh.AddMove, FLPSolution, FLPInstance>
es.urjc.etsii.grafo.flayouts.model.FLPAddNeigh
-
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 neededvoidexploreForFacility(ArrayList<FLPAddNeigh.AddMove> list, FLPSolution solution, int facility) exploreList(FLPSolution solution) static doubleinsertCost(FLPSolution solution, int rowIdx, int pos, int f) static voidright2Left(double baseCost, List<FLPAddNeigh.AddMove> moves, FLPSolution solution, int row, int initialPos, int facility) Methods inherited from class Neighborhood
concat, empty, interleave, neighborhoodSize, random, toString
-
Constructor Details
-
FLPAddNeigh
public FLPAddNeigh() -
FLPAddNeigh
@AutoconfigConstructor public FLPAddNeigh(@CategoricalParam(strings={"true","false"}) boolean insertBySwap)
-
-
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<FLPAddNeigh.AddMove, FLPSolution, FLPInstance>- Parameters:
solution- Solution used to generate the neighborhood- Returns:
- Stream with all the available moves in the neighborhood
-
exploreList
-
exploreForFacility
public void exploreForFacility(ArrayList<FLPAddNeigh.AddMove> list, FLPSolution solution, int facility) -
right2Left
public static void right2Left(double baseCost, List<FLPAddNeigh.AddMove> moves, FLPSolution solution, int row, int initialPos, int facility) -
insertCost
-