DEAP / deap

Distributed Evolutionary Algorithms in Python
http://deap.readthedocs.org/
GNU Lesser General Public License v3.0
5.85k stars 1.13k forks source link

In MPB imprementation why is both evaluation values and basis evalution values assigned to the same list. #475

Open akselthele opened 4 years ago

akselthele commented 4 years ago

why is both evaluation values and basis evaluation values assigned to the same list.

possible_values = []

    for func, pos, height, width in zip(self.peaks_function,
                                        self.peaks_position,
                                        self.peaks_height,
                                        self.peaks_width):
        possible_values.append(func(individual, pos, height, width))

    if self.basis_function:
        possible_values.append(self.basis_function(individual))

    fitness = max(possible_values)
fmder commented 4 years ago

Not sure to understand the question.