onegpy.solutions.solution.is_solution_in_pop¶
-
onegpy.solutions.solution.is_solution_in_pop(solution, population, as_tree=False)[source]¶ check the tree of ``solution’’ is in ``population’’ or not :param solution: Solution object :param population: list of Solution object :param as_tree: If as_tree is true, solution is compared by all the nodes’ structure
Otherwise, compared by object id.Returns: bool