metaheuristic_designer.encoding#

Base class for the Encoding module.

This module implements a way to have a different representation in the inner working of the algorithm and the result of the procedure.

Classes

DefaultEncoding([decode_as_array])

Identity encoding - the internal genotype is used directly.

Encoding([decode_as_array, name])

Translate between internal genotypes and problem-specific phenotypes.

EncodingFromLambda(encode_fn, decode_fn, ...)

Encoding built from two callables.