Missing method in Population.
This commit is contained in:
parent
5f73ca9a87
commit
ba2cd9c8ca
@ -280,21 +280,21 @@ public class Population extends ArrayList implements PopulationInterface, Clonea
|
|||||||
return "Lenght of hypercube within which individuals are initialized around the initial position.";
|
return "Lenght of hypercube within which individuals are initialized around the initial position.";
|
||||||
}
|
}
|
||||||
|
|
||||||
// /** This method inits the population. Function and generation counters
|
/** This method inits the population. Function and generation counters
|
||||||
// * are reset and m_Size default Individuals are created and initialized by
|
* are reset and m_Size default Individuals are created and initialized by
|
||||||
// * the GAIndividual default init() method.
|
* the GAIndividual default init() method.
|
||||||
// */
|
*/
|
||||||
// public void defaultInit(AbstractEAIndividual template) {
|
public void defaultInit(AbstractEAIndividual template) {
|
||||||
// this.m_Generation = 0;
|
this.m_Generation = 0;
|
||||||
// this.m_FunctionCalls = 0;
|
this.m_FunctionCalls = 0;
|
||||||
// this.m_Archive = null;
|
this.m_Archive = null;
|
||||||
// this.clear();
|
this.clear();
|
||||||
// for (int i = 0; i < this.m_TargetSize; i++) {
|
for (int i = 0; i < this.m_TargetSize; i++) {
|
||||||
// AbstractEAIndividual tmpIndy = (AbstractEAIndividual)template.clone();
|
AbstractEAIndividual tmpIndy = (AbstractEAIndividual)template.clone();
|
||||||
// tmpIndy.defaultInit();
|
tmpIndy.defaultInit(null);
|
||||||
// super.add(tmpIndy);
|
super.add(tmpIndy);
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a population instance which distributes the individuals according to
|
* Create a population instance which distributes the individuals according to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user