Reformatted several files, code cleanup
This commit is contained in:
parent
6edf5a50f6
commit
88d6c93931
@ -11,6 +11,7 @@ import eva2.optimization.operators.terminators.PopulationMeasureTerminator.Stagn
|
||||
import eva2.optimization.problems.F1Problem;
|
||||
|
||||
public class TerminatorExample {
|
||||
|
||||
public static void main(String[] args) {
|
||||
F1Problem f1 = new F1Problem();
|
||||
double[] sol;
|
||||
@ -35,5 +36,6 @@ public class TerminatorExample {
|
||||
System.out.print(sol[i] + " ");
|
||||
}
|
||||
System.out.println();
|
||||
};
|
||||
}
|
||||
;
|
||||
}
|
@ -1,8 +1,10 @@
|
||||
package eva2.examples;
|
||||
|
||||
import eva2.OptimizerFactory;
|
||||
import eva2.optimization.problems.F1Problem;
|
||||
|
||||
public class TestingF1PSO {
|
||||
|
||||
public static void main(String[] args) {
|
||||
F1Problem f1 = new F1Problem();
|
||||
// start a PSO with a runtime of 50000 evaluations
|
||||
@ -13,5 +15,5 @@ public class TestingF1PSO {
|
||||
System.out.print(sol[i] + " ");
|
||||
}
|
||||
System.out.println();
|
||||
};
|
||||
}
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
package eva2.examples;
|
||||
|
||||
import eva2.OptimizerFactory;
|
||||
import eva2.optimization.individuals.AbstractEAIndividual;
|
||||
import eva2.optimization.operators.crossover.CrossoverESDefault;
|
||||
@ -9,6 +10,7 @@ import eva2.optimization.strategies.EvolutionStrategies;
|
||||
import eva2.optimization.modules.GOParameters;
|
||||
|
||||
public class TestingPlusCmaEs {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// a simple bimodal target function, two optima near (1.7,0) and (-1.44/0)
|
||||
FM0Problem fm0 = new FM0Problem();
|
||||
@ -36,5 +38,6 @@ public class TestingPlusCmaEs {
|
||||
bestIndy = (AbstractEAIndividual) OptimizerFactory.optimizeToInd(esParams, null);
|
||||
System.out.println(esParams.getTerminator().lastTerminationMessage() + "\nFound solution: "
|
||||
+ AbstractEAIndividual.getDefaultDataString(bestIndy));
|
||||
};
|
||||
}
|
||||
;
|
||||
}
|
@ -1,16 +1,11 @@
|
||||
package eva2.optimization.tools;
|
||||
|
||||
|
||||
import eva2.tools.chart2d.*;
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: streiche
|
||||
* Date: 06.05.2004
|
||||
* Time: 13:17:55
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*
|
||||
*/
|
||||
public class TestingDArea {
|
||||
|
||||
@ -24,7 +19,6 @@ public class TestingDArea {
|
||||
frame.getContentPane().add(panel);
|
||||
|
||||
DArea area = new DArea();
|
||||
area = new DArea();
|
||||
area.setBackground(Color.white);
|
||||
area.setPreferredSize(new Dimension(600, 500));
|
||||
area.setVisibleRectangle(1, 1, 100000, 1000);
|
||||
|
Loading…
x
Reference in New Issue
Block a user