Class DominanceComparatorV2<S extends Solution<?>>

java.lang.Object
org.uma.jmetal.util.comparator.DominanceComparatorV2<S>
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<S>

public class DominanceComparatorV2<S extends Solution<?>>
extends java.lang.Object
implements java.util.Comparator<S>, java.io.Serializable
This class implements a solution comparator for dominance checking
Author:
Antonio J. Nebro
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    DominanceComparatorV2()  
  • Method Summary

    Modifier and Type Method Description
    int compare​(S solution1, S solution2)
    Compares two solutions.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Comparator

    equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
  • Constructor Details

  • Method Details

    • compare

      public int compare​(S solution1, S solution2)
      Compares two solutions.
      Specified by:
      compare in interface java.util.Comparator<S extends Solution<?>>
      Parameters:
      solution1 - Object representing the first Solution.
      solution2 - Object representing the second Solution.
      Returns:
      -1, or 0, or 1 if solution1 dominates solution2, both are non-dominated, or solution1 is dominated by solution2, respectively.