Small explanation of PostProcessParams.

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

No files matched your search

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