data
Class DataPointComparer

java.lang.Object
  extended by data.DataPointComparer
All Implemented Interfaces:
java.util.Comparator<DataPoint>

public class DataPointComparer
extends java.lang.Object
implements java.util.Comparator<DataPoint>

One way of comparing DataPoints: This implementation assumes that the first output of a DataPoint corresponds to an problem objective and the other outputs correspond to constraint violations. Data points are then ordered as follows: any feasible point is better than any infeasible point. Among infeasible points, points are ordered by maximum constraint violation, and among feasible points, by objective value.

Author:
dgorur

Constructor Summary
DataPointComparer()
           
 
Method Summary
 int compare(DataPoint point1, DataPoint point2)
           
 
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

DataPointComparer

public DataPointComparer()
Method Detail

compare

public int compare(DataPoint point1,
                   DataPoint point2)
Specified by:
compare in interface java.util.Comparator<DataPoint>