public abstract class SelectionFunction<T extends Chromosome> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger
Constant
logger |
protected boolean |
maximize
Do we want to minimize or maximize fitness?
|
| Constructor and Description |
|---|
SelectionFunction() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getIndex(List<T> population)
Return index of next offspring
|
boolean |
isMaximize()
isMaximize
|
T |
select(List<T> population)
Return two parents
|
List<T> |
select(List<T> population,
int number)
Return n parents
|
void |
setMaximize(boolean max)
Are we maximizing or minimizing fitness?
|
protected static final org.slf4j.Logger logger
loggerprotected boolean maximize
public abstract int getIndex(List<T> population)
population - a List object.public T select(List<T> population)
population - a List object.Chromosome object.public void setMaximize(boolean max)
max - a boolean.public boolean isMaximize()
isMaximize
Copyright © 2010–2017 EvoSuite. All rights reserved.