org.encog.ml.ea.opp
public class OperationList extends ChooseObject<EvolutionaryOperator>
Constructor and Description |
---|
OperationList() |
Modifier and Type | Method and Description |
---|---|
int |
maxOffspring()
Determine the maximum number of offspring that might be produced by any
of the operators in this list.
|
int |
maxParents()
Determine the maximum number of parents required by any of the operators
in the list.
|
EvolutionaryOperator |
pickMaxParents(Random rnd,
int maxParents)
Pick a operator based on the number of parents available.
|
add, clear, finalizeStructure, getList, pick, pickFirst, size
public int maxOffspring()
public int maxParents()
public EvolutionaryOperator pickMaxParents(Random rnd, int maxParents)
rnd
- A random number generator.maxParents
- The maximum number of parents available.Copyright © 2014. All Rights Reserved.