Interface Problem<T extends Copyable<T>>

    • Method Detail

      • getSolutionCostPair

        SolutionCostPair<T> getSolutionCostPair​(T candidate)
        Computes the cost of a candidate solution to the problem instance. The lower the cost, the more optimal the candidate solution.
        Parameters:
        candidate - The candidate solution to evaluate.
        Returns:
        A SolutionCostPair object containing the candidate solution and the cost of that candidate solution. Lower cost means better solution.