Cosmetics.

This commit is contained in:
Marcel Kronfeld 2010-02-24 11:15:09 +00:00
parent c13e1bd656
commit edbaf50447
5 changed files with 5 additions and 13 deletions

View File

@ -8,7 +8,7 @@ import eva2.server.go.individuals.InterfaceGAIndividual;
import eva2.tools.math.RNG; import eva2.tools.math.RNG;
/** This implementation of Population Based Incremental Learning is only /** This implementation of Population Based Incremental Learning is only
* suited for a BitString based genotyp represenation. * suited for a BitString based genotype representation.
* Copyright: Copyright (c) 2003 * Copyright: Copyright (c) 2003
* Company: University of Tuebingen, Computer Architecture * Company: University of Tuebingen, Computer Architecture
* @author Felix Streichert * @author Felix Streichert

View File

@ -256,7 +256,7 @@ public abstract class AbstractOptimizationProblem implements InterfaceOptimizati
} }
/** /**
* This method allows you to request a graphical represenation for a given individual. * This method allows you to request a graphical representation for a given individual.
* The additional informations generation and funCalls are shown if they are >= 0. * The additional informations generation and funCalls are shown if they are >= 0.
* individual. * individual.
* @param generation generation of the individual or -1 * @param generation generation of the individual or -1

View File

@ -344,14 +344,6 @@ public class FLensProblem extends AbstractOptimizationProblem implements Interfa
return result; return result;
} }
/** This method returns a double value that will be displayed in a fitness
* plot. A fitness that is to be minimized with a global min of zero
* would be best, since log y can be used. But the value can depend on the problem.
*/
public Double getDoublePlotValue(Population pop) {
return new Double(pop.getBestEAIndividual().getFitness(0));
}
/** This method returns the header for the additional data that is to be written into a file /** This method returns the header for the additional data that is to be written into a file
* @param pop The population that is to be refined. * @param pop The population that is to be refined.
* @return String * @return String
@ -400,7 +392,7 @@ public class FLensProblem extends AbstractOptimizationProblem implements Interfa
return result; return result;
} }
/** This method allows you to request a graphical represenation for a given /** This method allows you to request a graphical representation for a given
* individual. * individual.
*/ */
public JComponent drawIndividual(AbstractEAIndividual indy) { public JComponent drawIndividual(AbstractEAIndividual indy) {

View File

@ -69,7 +69,7 @@ public interface InterfaceOptimizationProblem extends InterfaceAdditionalPopulat
*/ */
public String getStringRepresentationForProblem(InterfaceOptimizer opt); public String getStringRepresentationForProblem(InterfaceOptimizer opt);
/** This method allows you to request a graphical represenation for a given /** This method allows you to request a graphical representation for a given
* individual. * individual.
*/ */
public JComponent drawIndividual(int generation, int funCalls, AbstractEAIndividual indy); public JComponent drawIndividual(int generation, int funCalls, AbstractEAIndividual indy);

View File

@ -172,7 +172,7 @@ public class WingedMultiObjectiveEA implements InterfaceOptimizer, java.io.Seria
this.m_Problem.evaluate(this.m_Population); this.m_Problem.evaluate(this.m_Population);
this.m_Population.SetFunctionCalls(oldFunctionCalls); this.m_Population.SetFunctionCalls(oldFunctionCalls);
this.firePropertyChangedEvent(Population.nextGenerationPerformed); this.firePropertyChangedEvent(Population.nextGenerationPerformed);
double plotValue = (this.m_Problem.getDoublePlotValue(this.m_Population)).doubleValue(); // double plotValue = (this.m_Problem.getDoublePlotValue(this.m_Population)).doubleValue();
// now they are synchronized lets migrate // now they are synchronized lets migrate
this.migrate(); this.migrate();
} }