|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jmetal.util.comparators.ViolationThresholdComparator
public class ViolationThresholdComparator
Constructor Summary | |
---|---|
ViolationThresholdComparator()
|
Method Summary | |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two solutions. |
double |
feasibilityRatio(SolutionSet solutionSet)
Computes the feasibility ratio Return the ratio of feasible solutions |
double |
meanOveralViolation(SolutionSet solutionSet)
Computes the feasibility ratio Return the ratio of feasible solutions |
boolean |
needToCompare(Solution o1,
Solution o2)
Returns true if solutions s1 and/or s2 have an overall constraint violation < 0 |
void |
updateThreshold(SolutionSet set)
Updates the threshold value using the population |
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 |
Constructor Detail |
---|
public ViolationThresholdComparator()
Method Detail |
---|
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
compare
in interface IConstraintViolationComparator
o1
- Object representing the first Solution
.o2
- Object representing the second Solution
.
public boolean needToCompare(Solution o1, Solution o2)
needToCompare
in interface IConstraintViolationComparator
public double feasibilityRatio(SolutionSet solutionSet)
public double meanOveralViolation(SolutionSet solutionSet)
public void updateThreshold(SolutionSet set)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |