onegpy.operator.build_population_operator

onegpy.operator.build_population_operator(operator, selection_class=None, n_out=None, cls_name=None, **kwargs)[source]

Builder function for population operator.

Parameters:
  • operator – operator object. The target operator to build.
  • selection_class – selection class. NOTE not instance.

a generator is built by using a logic of the selection class. :param n_out: int. the number of output of the target operator. :param cls_name: str. a name of a new class build by this function. :param kwargs: :return: