Example #1
0
 def __init__(self, length=10):
    """ The initializator of G1DList representation """
    GenomeBase.__init__(self)
    G1DBase.__init__(self, length)
    self.genomeList = []
    self.stringLength = length
    self.initializator.set(Consts.CDefG1DBinaryStringInit)
    self.mutator.set(Consts.CDefG1DBinaryStringMutator)
    self.crossover.set(Consts.CDefG1DBinaryStringCrossover)
Example #2
0
 def __init__(self, size=10, cloning=False):
     """ The initializator of G1DList representation,
   size parameter must be specified """
     GenomeBase.__init__(self)
     G1DBase.__init__(self, size)
     if not cloning:
         self.initializator.set(Consts.CDefG1DListInit)
         self.mutator.set(Consts.CDefG1DListMutator)
         self.crossover.set(Consts.CDefG1DListCrossover)
Example #3
0
 def __init__(self, size=10, cloning=False):
     """ The initializator of G1DList representation,
     size parameter must be specified """
     GenomeBase.__init__(self)
     G1DBase.__init__(self, size)
     if not cloning:
         self.initializator.set(Consts.CDefG1DListInit)
         self.mutator.set(Consts.CDefG1DListMutator)
         self.crossover.set(Consts.CDefG1DListCrossover)