onegpy.operators.localsearch.all_check

onegpy.operators.localsearch.all_check(target_solution, target_node, problem)[source]

Search function for a target node. Try to replace a current function with all candidate function and replace best 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. :return: bool. if improvement is success, return True.