Home | Trees | Indices | Help |
|
---|
|
object --+ | GenoPheno
Genotype-phenotype transformation.
Method pheno provides the transformation from geno- to phenotype, that is from the internal representation to the representation used in the objective function. Method geno provides the "inverse" pheno- to genotype transformation. The geno-phenotype transformation comprises, in this order:
- insert fixed variables (with the phenotypic and therefore quite possibly "wrong" values)
- affine linear transformation (first scaling then shift)
- user-defined transformation
- repair (e.g. into feasible domain due to boundaries)
- assign fixed variables their original phenotypic value
By default all transformations are the identity. The repair is only applied, if the transformation is given as argument to the method pheno.
geno is only necessary, if solutions have been injected.
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
return GenoPheno instance with phenotypic dimension Keyword Arguments
DetailsIf tf_0 is not the identity and tf_1 is ommitted, the genotype of x0 cannot be computed consistently and "injection" of phenotypic solutions is likely to lead to unexpected results.
|
maps the genotypic input argument into the phenotypic space, see help for class GenoPheno DetailsIf copy, values from x are copied if changed under the transformation. |
maps the phenotypic input argument into the genotypic space, that is, computes essentially the inverse of pheno. By default a copy is made only to prevent to modify y. The inverse of the user-defined transformation (if any) is only needed if external solutions are injected, it is not applied to the initial solution x0. Detailsgeno searches first in archive for the genotype of y and returns the found value, typically unrepaired. Otherwise, first from_bounds is applied, to revert a projection into the bound domain (if necessary) and pheno is reverted. repair is applied last, and is usually the method CMAEvolutionStrategy.repair_genotype that limits the Mahalanobis norm of geno(y) - mean. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Mar 3 01:17:17 2015 | http://epydoc.sourceforge.net |