Class WeightVectorNeighborhood<S extends Solution<?>>
java.lang.Object
org.uma.jmetal.util.neighborhood.impl.WeightVectorNeighborhood<S>
- All Implemented Interfaces:
Serializable,Neighborhood<S>
public class WeightVectorNeighborhood<S extends Solution<?>>
extends Object
implements Neighborhood<S>
This class implements a neighborhood based on the weight vectors of MOEA/D
- Author:
- Antonio J. Nebro
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.uma.jmetal.util.neighborhood.Neighborhood
Neighborhood.NeighborType -
Constructor Summary
ConstructorsConstructorDescriptionWeightVectorNeighborhood(int numberOfWeightVectors, int neighborhoodSize) WeightVectorNeighborhood(int numberOfWeightVectors, int weightVectorSize, int neighborhoodSize, String vectorDirectoryName) -
Method Summary
Modifier and TypeMethodDescriptionint[][]getNeighbors(List<S> solutionList, int solutionIndex) intdouble[][]intint
-
Constructor Details
-
WeightVectorNeighborhood
public WeightVectorNeighborhood(int numberOfWeightVectors, int neighborhoodSize) -
WeightVectorNeighborhood
public WeightVectorNeighborhood(int numberOfWeightVectors, int weightVectorSize, int neighborhoodSize, String vectorDirectoryName) throws FileNotFoundException - Throws:
FileNotFoundException
-
-
Method Details
-
getNeighbors
- Specified by:
getNeighborsin interfaceNeighborhood<S extends Solution<?>>
-
getNumberOfWeightVectors
public int getNumberOfWeightVectors() -
getWeightVectorSize
public int getWeightVectorSize() -
getNeighborhood
public int[][] getNeighborhood() -
getWeightVector
public double[][] getWeightVector() -
neighborhoodSize
public int neighborhoodSize()
-