Package net.bmahe.genetics4j.core.spec
Class EAExecutionContexts
java.lang.Object
net.bmahe.genetics4j.core.spec.EAExecutionContexts
Defines multiple factory and helper methods to create and manage
EAExecutionContexts
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Number & Comparable<T>>
ImmutableEAExecutionContext.Builder<T> Enrich an EAExecutionContext builder based on the knowledge of the fitness function returning a scalar value.static <T extends Number & Comparable<T>>
ImmutableEAExecutionContext.Builder<T> Create an EAExecutionContext builder based on the knowledge of the fitness function returning a scalar value.static <T extends Comparable<T>>
ImmutableEAExecutionContext.Builder<T> standard()
-
Constructor Details
-
EAExecutionContexts
private EAExecutionContexts()
-
-
Method Details
-
standard
-
enrichForScalarFitness
public static <T extends Number & Comparable<T>> ImmutableEAExecutionContext.Builder<T> enrichForScalarFitness(ImmutableEAExecutionContext.Builder<T> builder) Enrich an EAExecutionContext builder based on the knowledge of the fitness function returning a scalar value.This will enrich it with additional implementations for selecting, combining and mutating individuals.
- Type Parameters:
T
- Type of the fitness measurement- Parameters:
builder
-- Returns:
- Enriched EAExecutionContext builder
-
forScalarFitness
public static <T extends Number & Comparable<T>> ImmutableEAExecutionContext.Builder<T> forScalarFitness()Create an EAExecutionContext builder based on the knowledge of the fitness function returning a scalar value.This will enrich it with additional implementations for selecting, combining and mutating individuals.
- Type Parameters:
T
-- Returns:
-