public class ABYSS extends AbstractScatterSearch<DoubleSolution,List<DoubleSolution>>
| Constructor and Description |
|---|
ABYSS(DoubleProblem problem,
int maxEvaluations,
int populationSize,
int referenceSet1Size,
int referenceSet2Size,
int archiveSize,
Archive<DoubleSolution> archive,
LocalSearchOperator<DoubleSolution> localSearch,
CrossoverOperator<DoubleSolution> crossoverOperator,
int numberOfSubRanges) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildNewReferenceSet1()
Build the referenceSet1 by moving the best referenceSet1Size individuals, according to
a fitness comparator, from the population to the referenceSet1
|
void |
buildNewReferenceSet2()
Build the referenceSet2 by moving to it the most diverse referenceSet2Size individuals from the
population in respect to the referenceSet1.
|
DoubleSolution |
diversificationGeneration() |
List<List<DoubleSolution>> |
generatePairsFromSolutionList(List<DoubleSolution> solutionList)
Generate all pair combinations of the referenceSet1
|
List<DoubleSolution> |
getResult() |
DoubleSolution |
improvement(DoubleSolution solution) |
boolean |
isStoppingConditionReached() |
void |
referenceSetUpdate()
Build the reference set after the initialization phase
|
void |
referenceSetUpdate(DoubleSolution solution)
Update the reference set with a new solution
|
boolean |
refSet1Test(DoubleSolution solution)
Tries to update the reference set one with a solution
|
boolean |
refSet2Test(DoubleSolution solution)
Tries to update the reference set 2 with a
Solution |
void |
restart() |
boolean |
restartConditionIsFulfilled(List<DoubleSolution> combinedSolutions) |
List<DoubleSolution> |
solutionCombination(List<List<DoubleSolution>> solutionList) |
List<List<DoubleSolution>> |
subsetGeneration() |
getPopulation, getPopulationSize, initializationPhase, run, setPopulation, setPopulationSizeprotected final int maxEvaluations
protected final Problem<DoubleSolution> problem
protected final int referenceSet1Size
protected final int referenceSet2Size
protected List<DoubleSolution> referenceSet1
protected List<DoubleSolution> referenceSet2
protected final int archiveSize
protected Archive<DoubleSolution> archive
protected LocalSearchOperator<DoubleSolution> localSearch
protected CrossoverOperator<DoubleSolution> crossover
protected int evaluations
protected JMetalRandom randomGenerator
protected int numberOfSubRanges
protected int[] sumOfFrequencyValues
protected int[] sumOfReverseFrequencyValues
protected int[][] frequency
protected int[][] reverseFrequency
protected StrengthRawFitness strengthRawFitness
protected Comparator<Solution> fitnessComparator
protected MarkAttribute marked
protected DistanceToSolutionListAttribute distanceToSolutionListAttribute
protected Comparator<Solution> dominanceComparator
protected Comparator<Solution> equalComparator
protected Comparator<Solution> crowdingDistanceComparator
public ABYSS(DoubleProblem problem, int maxEvaluations, int populationSize, int referenceSet1Size, int referenceSet2Size, int archiveSize, Archive<DoubleSolution> archive, LocalSearchOperator<DoubleSolution> localSearch, CrossoverOperator<DoubleSolution> crossoverOperator, int numberOfSubRanges)
public boolean isStoppingConditionReached()
isStoppingConditionReached in class AbstractScatterSearch<DoubleSolution,List<DoubleSolution>>public DoubleSolution improvement(DoubleSolution solution)
improvement in class AbstractScatterSearch<DoubleSolution,List<DoubleSolution>>public List<DoubleSolution> getResult()
getResult in interface Algorithm<List<DoubleSolution>>getResult in class AbstractScatterSearch<DoubleSolution,List<DoubleSolution>>public DoubleSolution diversificationGeneration()
diversificationGeneration in class AbstractScatterSearch<DoubleSolution,List<DoubleSolution>>public void referenceSetUpdate()
referenceSetUpdate in class AbstractScatterSearch<DoubleSolution,List<DoubleSolution>>public void referenceSetUpdate(DoubleSolution solution)
referenceSetUpdate in class AbstractScatterSearch<DoubleSolution,List<DoubleSolution>>solution - public void buildNewReferenceSet1()
public void buildNewReferenceSet2()
public boolean refSet1Test(DoubleSolution solution)
solution - The SolutionSolution has been inserted, false
otherwise.public boolean refSet2Test(DoubleSolution solution)
Solutionsolution - The SolutionSolution has been inserted, false
otherwise.JMExceptionpublic boolean restartConditionIsFulfilled(List<DoubleSolution> combinedSolutions)
restartConditionIsFulfilled in class AbstractScatterSearch<DoubleSolution,List<DoubleSolution>>public List<List<DoubleSolution>> subsetGeneration()
subsetGeneration in class AbstractScatterSearch<DoubleSolution,List<DoubleSolution>>public List<List<DoubleSolution>> generatePairsFromSolutionList(List<DoubleSolution> solutionList)
public List<DoubleSolution> solutionCombination(List<List<DoubleSolution>> solutionList)
solutionCombination in class AbstractScatterSearch<DoubleSolution,List<DoubleSolution>>public void restart()
restart in class AbstractScatterSearch<DoubleSolution,List<DoubleSolution>>Copyright © 2015. All rights reserved.