Package org.opt4j.core
Interface Genotype
-
- All Known Subinterfaces:
ListGenotype<E>
- All Known Implementing Classes:
BooleanGenotype
,BooleanMapGenotype
,CompositeGenotype
,DoubleGenotype
,DoubleMapGenotype
,IntegerGenotype
,IntegerMapGenotype
,PermutationGenotype
,SelectGenotype
,SelectMapGenotype
public interface Genotype
TheGenotype
represents a marker interface. AGenotype
represents the genetic encoding of a solution of the optimization problem. Thus, aGenotype
can be decoded to aPhenotype
with an appropriateDecoder
.- See Also:
org.opt4j.genotype
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <G extends Genotype>
GnewInstance()
Constructs a new (empty) instance of thisGenotype
.int
size()
The number of atomic elements of theGenotype
.
-
-
-
Method Detail
-
size
int size()
The number of atomic elements of theGenotype
.- Returns:
- number of atomic elements of the genotype
-
-