Ejemplo n.º 1
0
 def __init__(self, problem, **settings):
   """
   Initialize GALE algorithm
   :param problem: Instance of the problem
   :param gens: Max number of generations
   """
   Algorithm.__init__(self, GALE.__name__, problem)
   self.select = self._select
   self.evolve = self._evolve
   self.recombine = self._recombine
   self.settings = default_settings().update(**settings)
Ejemplo n.º 2
0
 def __init__(self, problem, **settings):
     """
 Initialize GALE algorithm
 :param problem: Instance of the problem
 :param gens: Max number of generations
 """
     Algorithm.__init__(self, GALE.__name__, problem)
     self.select = self._select
     self.evolve = self._evolve
     self.recombine = self._recombine
     self.settings = default_settings().update(**settings)
Ejemplo n.º 3
0
 def __init__(self, problem, **settings):
   """
   Initialize DE for Algorithm
   """
   Algorithm.__init__(self, DE.__name__, problem)
   self.settings = default_settings().update(**settings)
Ejemplo n.º 4
0
 def __init__(self, problem, **settings):
     Algorithm.__init__(self, 'GALE', problem)
     self.select = self._select
     self.evolve = self._evolve
     self.recombine = self._recombine
     self.settings = default_settings().update(**settings)
Ejemplo n.º 5
0
 def __init__(self, problem, **settings):
   Algorithm.__init__(self, 'GALE', problem)
   self.select = self._select
   self.evolve = self._evolve
   self.recombine = self._recombine
   self.settings = default_settings().update(**settings)
Ejemplo n.º 6
0
 def __init__(self, problem, **settings):
     """
 Initialize DE for Algorithm
 """
     Algorithm.__init__(self, DE.__name__, problem)
     self.settings = default_settings().update(**settings)