Interface DominanceComparator
- All Known Subinterfaces:
AggregateObjectiveComparator
- All Known Implementing Classes:
AbstractAggregateObjectiveComparator
,AggregateConstraintComparator
,ChainedComparator
,CrowdingComparator
,EpsilonBoxDominanceComparator
,EpsilonBoxObjectiveComparator
,FitnessComparator
,LinearDominanceComparator
,LinearObjectiveComparator
,MinMaxDominanceComparator
,MinMaxObjectiveComparator
,NondominatedSortingComparator
,ObjectiveComparator
,ParetoConstraintComparator
,ParetoDominanceComparator
,ParetoObjectiveComparator
,RankComparator
,VectorAngleDistanceScalingComparator
public interface DominanceComparator
Interface for comparing two solutions using a dominance relation. A dominance relation may impose a partial or
total ordering on a set of solutions.
Implementations which also implement Comparator
impose a total ordering on the set of solutions. However,
it is typically the case that (compare(x, y)==0) == (x.equals(y))
does not hold, and the comparator may
impose orderings that are inconsistent with equals.
-
Method Summary
-
Method Details
-
compare
Compares the two solutions using a dominance relation, returning-1
ifsolution1
dominatessolution2
,1
ifsolution2
dominatessolution1
, and0
if the solutions are non-dominated.- Parameters:
solution1
- the first solutionsolution2
- the second solution- Returns:
-1
ifsolution1
dominatessolution2
,1
ifsolution2
dominatessolution1
, and0
if the solutions are non-dominated
-