onegpy.operators.localsearch.stop_improvement

onegpy.operators.localsearch.stop_improvement(target_solution, target_node, problem, is_shuffle=True)[source]

Search function for a target node. Try to replace a current function with candidate functions and replace first improving function. :param target_solution: solution object. target solution of local search. :param target_node: node object. target node of the target solution. :param problem: problem object. problem for calculation of fitness. :param is_shuffle: bool. if candidate functions are shuffled or not. default is True :return: bool. if improvement is success, return True.