Small explanation of PostProcessParams.

This commit is contained in:
Marcel Kronfeld
2008-09-10 12:25:18 +00:00
parent 1a11229eff
commit 49911cdcfd
4 changed files with 33 additions and 1 deletions

View File

@@ -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[] = { };

View File

@@ -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.";
}
}

View File

@@ -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;