Fix GGABC (Gbest-Guided) and correctly count function calls.
This commit is contained in:
parent
794eeed998
commit
b19d1c5d39
@ -13,7 +13,7 @@ import eva2.util.annotation.Description;
|
|||||||
* criteria is selected randomly for each selection event.
|
* criteria is selected randomly for each selection event.
|
||||||
*/
|
*/
|
||||||
@Description("This method chooses individuals similar to the roulette wheel. The chance for each individual to be selected depends on the selection probability." +
|
@Description("This method chooses individuals similar to the roulette wheel. The chance for each individual to be selected depends on the selection probability." +
|
||||||
"This is a single objective selecting method, it select with respect to a random criterion.")
|
"This is a single objective selectiog method, it select with respect to a random criterion.")
|
||||||
public class SelectXProbRouletteWheel implements InterfaceSelection, java.io.Serializable {
|
public class SelectXProbRouletteWheel implements InterfaceSelection, java.io.Serializable {
|
||||||
|
|
||||||
private transient TreeElement[] treeRoot = null;
|
private transient TreeElement[] treeRoot = null;
|
||||||
|
@ -59,6 +59,7 @@ public class ArtificialBeeColony extends AbstractOptimizer implements InterfaceA
|
|||||||
this.population.setAutoAging(false);
|
this.population.setAutoAging(false);
|
||||||
this.optimizationProblem.initializePopulation(this.population);
|
this.optimizationProblem.initializePopulation(this.population);
|
||||||
this.evaluatePopulation(this.population);
|
this.evaluatePopulation(this.population);
|
||||||
|
this.bestIndividual = this.population.getBestEAIndividual();
|
||||||
this.firePropertyChangedEvent(Population.NEXT_GENERATION_PERFORMED);
|
this.firePropertyChangedEvent(Population.NEXT_GENERATION_PERFORMED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user