Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## ifs.solution
Interface SolutionComparator

All Known Implementing Classes:
  GeneralSolutionComparator, MPPSolutionComparator, TimetableComparator

    public interface SolutionComparator

IFS solution comparator.
The solution comparator compares two solutions: the current solution and the best solution found. This comparison can be based on several criteria. For example, it can lexicographically order solutions according to the number of unassigned variables (smaller number is better) and the number of violated soft constraints.

Version:
  1.0
Author:
  Tomáš Müller
See Also:
  `Solution`, `Solver`

Method Summary
`boolean` | `isBetterThanBestSolution(Solution currentSolution)` Compares two solutions.

Method Detail

### isBetterThanBestSolution

    boolean isBetterThanBestSolution(Solution currentSolution)

  Compares two solutions. Returns true if the given solution is better than its best ever found solution (see `Solution.saveBest()` and `Solution.restoreBest()`).

  Parameters:
    `currentSolution` - given solution
  Returns:
    true if the given solution is better than the best ever found solution

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005 Tomáš Müller