onegpy.operators.localsearch.FIHC

class onegpy.operators.localsearch.FIHC(problem, target_node='nonterminal', func_search_type='all_check')[source]

First Improvement Hill Climber class

__init__(problem, target_node='nonterminal', func_search_type='all_check')[source]
Parameters:
  • problem – problem object. problem for calculation of fitness.
  • target_node – String. target node type (eg. nonterminal, terminal)
  • func_search_type – String. String. name of function of function search.

Methods

__init__(problem[, target_node, …])
param problem:problem object. problem for calculation of fitness.
get_target_node(root) get a list of target nodes :param root: node object.
not_changeable_warning()

Attributes

func_bank
func_search_type
n_in
n_out
target_node