Small explanation of PostProcessParams.
This commit is contained in:
@@ -155,6 +155,7 @@ public class PropertySheetPanel extends JPanel implements PropertyChangeListener
|
||||
String name = m_Methods[i].getDisplayName();
|
||||
Method meth = m_Methods[i].getMethod();
|
||||
if (name.equals("globalInfo")) {
|
||||
if (TRACE) System.out.println("found globalInfo method for " + targ.getClass().toString());
|
||||
if (meth.getReturnType().equals(String.class)) {
|
||||
try {
|
||||
Object args[] = { };
|
||||
|
@@ -99,4 +99,7 @@ public class PostProcessParams implements InterfacePostProcessParams, Serializab
|
||||
return "PostProcessing " + (postProcess ? (postProcessSteps + "/" + postProcessClusterSigma) : "off");
|
||||
}
|
||||
|
||||
public String globalInfo() {
|
||||
return "Combined clustering and hill-climbing for post-processing of solutions.";
|
||||
}
|
||||
}
|
||||
|
@@ -492,7 +492,8 @@ public class Population extends ArrayList implements PopulationInterface, Clonea
|
||||
*/
|
||||
public void getSortedNIndividuals(int n, boolean bBestOrWorst, Population res) {
|
||||
if ((n < 0) || (n>super.size())) {
|
||||
System.err.println("invalid request to getSortedNIndividuals: n="+n + ", size is " + super.size());
|
||||
// this may happen, treat it gracefully
|
||||
//System.err.println("invalid request to getSortedNIndividuals: n="+n + ", size is " + super.size());
|
||||
n = super.size();
|
||||
}
|
||||
int skip = 0;
|
||||
|
Reference in New Issue
Block a user