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

Class Terminators

object --+
         |
        Terminators

Class to manage the termination of the genetic optimization.

Instance Methods [hide private]
bool
firstProperty(self, ga_obj)
Terminate when the first property has been matched.
bool
allProperties(self, ga_obj)
Terminate when all properties have been matched.
bool
unProductive(self, ga_obj)
Terminate if the maximum number of unproductive generations has been reached.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  TERM_THRESH = 0.0001
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

firstProperty(self, ga_obj)

 

Terminate when the first property has been matched.

Parameters:
  • ga_obj (GSimpleGA.GSimpleGA) - the entire current state of the genetic optimization
Returns: bool
True to terminate, False otherwise

allProperties(self, ga_obj)

 

Terminate when all properties have been matched.

Parameters:
  • ga_obj (GSimpleGA.GSimpleGA) - the entire current state of the genetic optimization
Returns: bool
True to terminate, False otherwise

unProductive(self, ga_obj)

 

Terminate if the maximum number of unproductive generations has been reached.

Parameters:
  • ga_obj (GSimpleGA.GSimpleGA) - the entire current state of the genetic optimization
Returns: bool
True to terminate, False otherwise