Minor changes.

This commit is contained in:
Marcel Kronfeld 2009-03-11 14:18:15 +00:00
parent 08c88a3ed6
commit bcdfe0c400
2 changed files with 16 additions and 14 deletions

View File

@ -146,7 +146,7 @@ public class MatlabEvalMediator {
private void logMPOrSysOut(String msg) { private void logMPOrSysOut(String msg) {
// System.out.println("Hurz OR"); // System.out.println("Hurz OR");
logMP(msg + "\n"); logMP(msg);
// else System.out.println("MEM has no MP! " + msg); // else System.out.println("MEM has no MP! " + msg);
} }

View File

@ -174,18 +174,20 @@ public abstract class AbstractStatistics implements InterfaceTextListener, Inter
protected void finalizeOutput() { protected void finalizeOutput() {
if (printFinalVerbosity()) printToTextListener("*******\n Runs performed: " + optRunsPerformed + ", reached target " + convergenceCnt + " times with threshold " + m_StatsParams.getConvergenceRateThreshold() + ", rate " + convergenceCnt/(double)m_StatsParams.getMultiRuns() + '\n'); if (printFinalVerbosity()) printToTextListener("*******\n Runs performed: " + optRunsPerformed + ", reached target " + convergenceCnt + " times with threshold " + m_StatsParams.getConvergenceRateThreshold() + ", rate " + convergenceCnt/(double)m_StatsParams.getMultiRuns() + '\n');
if (printFinalVerbosity()) printToTextListener(" Average function calls: " + (functionCallSum/optRunsPerformed) + "\n"); if (printFinalVerbosity()) printToTextListener(" Average function calls: " + (functionCallSum/optRunsPerformed) + "\n");
if (printFinalVerbosity() && (bestIndividualAllover != null)) printToTextListener(" Overall best individual : " + BeanInspector.toString(bestIndividualAllover) + '\n'); if (printFinalVerbosity() && (bestIndividualAllover != null)) printToTextListener(" Overall best individual: " + BeanInspector.toString(bestIndividualAllover) + '\n');
if (printFinalVerbosity() && (bestIndividualAllover != null)) printToTextListener(" overall solution data : " + AbstractEAIndividual.getDefaultDataString(bestIndividualAllover) + '\n'); if (printFinalVerbosity() && (bestIndividualAllover != null)) printToTextListener(" Overall solution data : " + AbstractEAIndividual.getDefaultDataString(bestIndividualAllover) + '\n');
if (printFinalVerbosity() && (bestIndividualAllover != null)) printToTextListener(" overall solution fit : " + BeanInspector.toString(bestIndividualAllover.getFitness()) + '\n'); if (printFinalVerbosity() && (bestIndividualAllover != null)) printToTextListener(" Overall solution fit : " + BeanInspector.toString(bestIndividualAllover.getFitness()) + '\n');
if (refineMultiRuns && (optRunsPerformed>1) && (meanCollection != null)) { if (optRunsPerformed>1) {
if (printFinalVerbosity()) printToTextListener("Averaged performance:\n"); if (meanBestOfRunFitness!=null) {
for (int i=0; i<meanCollection.size(); i++) divideMean(meanCollection.get(i), optRunsPerformed); Mathematics.svDiv((double)optRunsPerformed, meanBestOfRunFitness, meanBestOfRunFitness);
if (printFinalVerbosity()) printToTextListener(refineToText(meanCollection, showAvgIntervals)); if (printFinalVerbosity()) {
} printToTextListener(" Averaged best fitness per run: " + BeanInspector.toString(meanBestOfRunFitness)+"\n");
if ((meanBestOfRunFitness!=null) && (optRunsPerformed>1)) { }
Mathematics.svDiv((double)optRunsPerformed, meanBestOfRunFitness, meanBestOfRunFitness); }
if (printFinalVerbosity()) { if (refineMultiRuns && (meanCollection != null)) {
printToTextListener(" Averaged best run fitness: " + BeanInspector.toString(meanBestOfRunFitness)+"\n"); if (printFinalVerbosity()) printToTextListener(" Averaged performance:\n");
for (int i=0; i<meanCollection.size(); i++) divideMean(meanCollection.get(i), optRunsPerformed);
if (printFinalVerbosity()) printToTextListener(refineToText(meanCollection, showAvgIntervals));
} }
} }
if (TRACE) if (TRACE)