def wrapper(self,candidates,args):
     """
     Converts the ``ndarray`` object into a ``list`` and passes it to the fitness function.
     
     :param candidates: the ``ndarray`` object
     :param args: optional parameters to be passed to the fitness function
     
     :return: the return value of the fitness function
     
     """
     tmp=ndarray.tolist(candidates)
     candidates=self.bounder(tmp,args) 
     return self.ffun([candidates],args)[0]
    def wrapper(self,candidates,args):
        """
        Converts the ``ndarray`` object into a ``list`` and passes it to the fitness function.

        :param candidates: the ``ndarray`` object
        :param args: optional parameters to be passed to the fitness function

        :return: the return value of the fitness function

        """
        tmp=ndarray.tolist(candidates)
        candidates=self.bounder(tmp,args)
        return self.ffun([candidates],args)[0]
 def __init__(self,vals, fitn=-1):
     self.candidate=ndarray.tolist(vals)
     self.candidate.extend(vals)
     self.fitness=fitn
 def __init__(self,vals, fitn=-1):
     self.candidate=ndarray.tolist(vals)
     self.candidate.extend(vals)
     self.fitness=fitn