T
- the (native) argument type of the problem fitness functionG
- the gene type the evolution engine is working withC
- the result type of the fitness functionpublic interface Problem<T,G extends Gene<?,G>,C extends Comparable<? super C>>
Engine
. It connects the actual fitness()
function
and the needed codec()
.Codec
,
Engine
Modifier and Type | Method and Description |
---|---|
Codec<T,G> |
codec()
Return the codec, which translates the types of the problem domain into
types, which can be understand by the evolution
Engine . |
Function<T,C> |
fitness()
Return the fitness function of the problem in the native
problem domain.
|
static <T,G extends Gene<?,G>,C extends Comparable<? super C>> |
of(Function<T,C> fitness,
Codec<T,G> codec)
Return a new optimization problem with the given parameters.
|
Function<T,C> fitness()
Codec<T,G> codec()
Engine
.static <T,G extends Gene<?,G>,C extends Comparable<? super C>> Problem<T,G,C> of(Function<T,C> fitness, Codec<T,G> codec)
T
- the (native) argument type of the problem fitness functionG
- the gene type the evolution engine is working withC
- the result type of the fitness functionfitness
- the problem fitness functioncodec
- the evolution engine codecNullPointerException
- if one of the arguments is null
© 2007-2017 Franz Wilhelmstötter (2017-04-28 16:50)