Package org.uma.jmetal.algorithm.impl
Class AbstractCoralReefsOptimization<S,R>
java.lang.Object
org.uma.jmetal.algorithm.impl.AbstractCoralReefsOptimization<S,R>
- All Implemented Interfaces:
Serializable,Runnable,Algorithm<R>
Abstract class representing a Coral Reefs Optimization Algorithm
Reference: S. Salcedo-Sanz, J. Del Ser, S. Gil-López, I. Landa-Torres and J.
A. Portilla-Figueras, "The coral reefs optimization algorithm: an efficient
meta-heuristic for solving hard optimization problems," 15th Applied
Stochastic Models and Data Analysis International Conference, Mataró, Spain,
June, 2013.
- Author:
- Inacio Medeiros invalid input: '<'inaciogmedeiros@gmail.com>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a Coordinate in Coral Reef Grid -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Comparator<S> protected List<AbstractCoralReefsOptimization.Coordinate> protected CrossoverOperator<S> protected MutationOperator<S> protected SelectionOperator<List<S>, S> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCoralReefsOptimization(Comparator<S> comparator, SelectionOperator<List<S>, S> selectionOperator, CrossoverOperator<S> crossoverOperator, MutationOperator<S> mutationOperator, int n, int m, double rho, double fbs, double fa, double pd, int attemptsToSettle) Constructor -
Method Summary
Modifier and TypeMethodDescriptionasexualReproduction(List<S> brooders) depredation(List<S> population, List<AbstractCoralReefsOptimization.Coordinate> coordinates) evaluatePopulation(List<S> population) protected abstract List<AbstractCoralReefsOptimization.Coordinate> intdoublegetFa()doublegetFbr()doublegetFbs()doublegetFd()intgetM()intgetN()doublegetPd()intdoublegetRho()protected abstract voidprotected abstract booleanlarvaeSettlementPhase(List<S> larvae, List<S> population, List<AbstractCoralReefsOptimization.Coordinate> coordinates) abstract Rresult()voidrun()selectBroadcastSpawners(List<S> population) voidsetCoordinates(List<AbstractCoralReefsOptimization.Coordinate> coordinates) voidsetPopulation(List<S> population) sexualReproduction(List<S> broadcastSpawners) protected abstract voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.uma.jmetal.algorithm.Algorithm
description, name
-
Field Details
-
population
-
coordinates
-
selectionOperator
-
crossoverOperator
-
mutationOperator
-
comparator
-
-
Constructor Details
-
AbstractCoralReefsOptimization
public AbstractCoralReefsOptimization(Comparator<S> comparator, SelectionOperator<List<S>, S> selectionOperator, CrossoverOperator<S> crossoverOperator, MutationOperator<S> mutationOperator, int n, int m, double rho, double fbs, double fa, double pd, int attemptsToSettle) Constructor- Parameters:
comparator- Object for comparing two solutionsselectionOperator- Selection OperatorcrossoverOperator- Crossover OperatormutationOperator- Mutation Operatorn- width of Coral Reef Gridm- height of Coral Reef Gridrho- Percentage of occupied reeffbs- Percentage of broadcast spawnersfa- Percentage of budderspd- Probability of depredationattemptsToSettle- number of attempts a larvae has to try to settle reef
-
-
Method Details
-
getPopulation
-
getPopulationSize
public int getPopulationSize() -
getCoordinates
-
setPopulation
-
setCoordinates
-
getN
public int getN() -
getM
public int getM() -
getRho
public double getRho() -
getFbs
public double getFbs() -
getFbr
public double getFbr() -
getFa
public double getFa() -
getFd
public double getFd() -
getPd
public double getPd() -
getAttemptsToSettle
public int getAttemptsToSettle() -
initProgress
protected abstract void initProgress() -
updateProgress
protected abstract void updateProgress() -
isStoppingConditionReached
protected abstract boolean isStoppingConditionReached() -
createInitialPopulation
-
generateCoordinates
-
evaluatePopulation
-
selectBroadcastSpawners
-
sexualReproduction
-
asexualReproduction
-
larvaeSettlementPhase
-
depredation
-
run
-
result
-