Removed unnecessary import statements.

This commit is contained in:
Andreas Dräger 2008-07-17 09:12:37 +00:00
parent 66d02fa404
commit b400dbf3f3
3 changed files with 32 additions and 28 deletions

View File

@ -109,7 +109,7 @@ public class Plot implements PlotInterface, Serializable {
try {
m_Frame.setIconImage(Toolkit.getDefaultToolkit().createImage(bytes));
} catch (java.lang.NullPointerException e) {
System.out.println("Could not find EvA2 icon, please move resources folder to working directory!");
System.err.println("Could not find EvA2 icon, please move resources folder to working directory!");
}
m_ButtonPanel = new JPanel();

View File

@ -19,7 +19,6 @@ import eva2.gui.BeanInspector;
import eva2.server.go.IndividualInterface;
import eva2.server.go.InterfaceTerminator;
import eva2.server.go.PopulationInterface;
import eva2.server.go.individuals.AbstractEAIndividual;
import eva2.server.go.operators.distancemetric.PhenotypeMetric;
import eva2.server.go.populations.InterfaceSolutionSet;
import eva2.server.go.problems.InterfaceOptimizationProblem;

View File

@ -34,6 +34,9 @@ public abstract class AbstractMultiObjectiveOptimizationProblem extends Abstract
public ArrayList m_AreaConst4Parallelization = new ArrayList();
protected int m_OutputDimension = 2;
/**
* TODO
*/
public double[][] m_Border;
transient protected eva2.gui.Plot m_Plot;
transient protected JFrame m_Result;
@ -105,7 +108,9 @@ public abstract class AbstractMultiObjectiveOptimizationProblem extends Abstract
this.evaluate(tmpIndy);
fitness = tmpIndy.getFitness();
// check and update border if necessary
if (fitness.length != this.m_Border.length) {
if (m_Border == null)
this.m_Border = new double[fitness.length][2];
else if (fitness.length != this.m_Border.length) {
//System.out.println("AbstractMOOptimizationProblem: Warning fitness.length("+fitness.length+") doesn't fit border.length("+this.m_Border.length+")");
//System.out.println("Resetting the border!");
this.m_Border = new double[fitness.length][2];