Package schrodinger :: Package application :: Package matsci :: Package genetic_optimization :: Module genetic_optimization :: Class StructureGenome
[hide private]
[frames] | no frames]

Class StructureGenome

pyevolve.GenomeBase.GenomeBase --+
                                 |
                                StructureGenome

Manage a genome. The genome, aka chromosome, is the solution to the problem trying to be solved via genetic optimization. It is referred to as being composed of genes that are manipulated by the crossover and mutation operators. In our genetic optimization module this genome is basically just a schrodinger.structure.Structure object.

Instance Methods [hide private]
 
__init__(self)
Create an instance.
 
copy(self, genome)
Copy the current genome to the provided genome.
StructureGenome
clone(self)
Clone the current genome.
 
updateStructureProperties(self, index, generation)
Update some structure properties.
 
resetParentProperties(self)
Reset the crossover and mutation parent structure properties.

Inherited from pyevolve.GenomeBase.GenomeBase: __repr__, evaluate, getFitnessScore, getParam, getRawScore, initialize, mutate, resetStats, setParams

Class Variables [hide private]

Inherited from pyevolve.GenomeBase.GenomeBase: crossover, evaluator, initializator, mutator

Method Details [hide private]

__init__(self)
(Constructor)

 

Create an instance.

Overrides: pyevolve.GenomeBase.GenomeBase.__init__

copy(self, genome)

 

Copy the current genome to the provided genome.

Parameters:
  • genome (StructureGenome) - a new genome instance to which to copy the current genome
Overrides: pyevolve.GenomeBase.GenomeBase.copy

clone(self)

 

Clone the current genome.

Returns: StructureGenome
genome
Overrides: pyevolve.GenomeBase.GenomeBase.clone

updateStructureProperties(self, index, generation)

 

Update some structure properties.

Parameters:
  • index (int) - the index of this individual
  • generation (int) - this generation