onegpy.problems.boolean.EvenParity

class onegpy.problems.boolean.EvenParity(dim, function_bank_builder=None)[source]

Even parity problem class

__init__(dim, function_bank_builder=None)[source]
Parameters:
  • dim – int. the number of dimension.
  • function_bank_builder – function. a builder function for function bank.

Methods

__init__(dim[, function_bank_builder])
param dim:int. the number of dimension.
fitness(target_solution_or_solutions) calculate the fitness of target solution(s) :param target_solution_or_solutions: solution object or list of solution objects.
get_elite_fitness()
get_eval_count()