|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.features.KeepBest
public class KeepBest
Keeps the n best individuals and kicks out the rest.
| Field Summary | |
|---|---|
private int |
bestN
|
| Constructor Summary | |
|---|---|
KeepBest(int bestN)
|
|
| Method Summary | |
|---|---|
void |
operate(Population pop)
Modifies the population. |
boolean |
performOperation(int generation)
The default implementation returns true for every generation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int bestN
| Constructor Detail |
|---|
public KeepBest(int bestN)
| Method Detail |
|---|
public boolean performOperation(int generation)
performOperation in interface PopulationOperatorpublic void operate(Population pop)
PopulationOperator
operate in interface PopulationOperator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||