Class MixedRealDiscreteVectorRepresentation
java.lang.Object
com.knezevic.edaf.v3.repr.impl.MixedRealDiscreteVectorRepresentation
- All Implemented Interfaces:
Representation<MixedRealDiscreteVector>
public final class MixedRealDiscreteVectorRepresentation
extends Object
implements Representation<MixedRealDiscreteVector>
Mixed real/discrete representation.
-
Constructor Summary
ConstructorsConstructorDescriptionMixedRealDiscreteVectorRepresentation(int realDimensions, int[] cardinalities, double lower, double upper) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid(MixedRealDiscreteVector genotype) Returns true if the genotype is valid in this domain.Creates a random feasible genotype.repair(MixedRealDiscreteVector genotype) Repairs a genotype into the feasible domain.summarize(MixedRealDiscreteVector genotype) Provides a stable summary for logs and reports.type()Representation identifier used in configuration and logs.
-
Constructor Details
-
MixedRealDiscreteVectorRepresentation
public MixedRealDiscreteVectorRepresentation(int realDimensions, int[] cardinalities, double lower, double upper)
-
-
Method Details
-
type
Description copied from interface:RepresentationRepresentation identifier used in configuration and logs.- Specified by:
typein interfaceRepresentation<MixedRealDiscreteVector>
-
random
Description copied from interface:RepresentationCreates a random feasible genotype.- Specified by:
randomin interfaceRepresentation<MixedRealDiscreteVector>
-
isValid
Description copied from interface:RepresentationReturns true if the genotype is valid in this domain.- Specified by:
isValidin interfaceRepresentation<MixedRealDiscreteVector>
-
repair
Description copied from interface:RepresentationRepairs a genotype into the feasible domain.- Specified by:
repairin interfaceRepresentation<MixedRealDiscreteVector>
-
summarize
Description copied from interface:RepresentationProvides a stable summary for logs and reports.- Specified by:
summarizein interfaceRepresentation<MixedRealDiscreteVector>
-