refs #8
Lots of code cleanup. Removed unused imports, empty catch blocks, etc.
This commit is contained in:
parent
7d3d20c4b7
commit
ecfd7ec739
@ -1,12 +1,7 @@
|
||||
package eva2;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import java.util.BitSet;
|
||||
|
||||
import eva2.server.go.IndividualInterface;
|
||||
import eva2.server.go.InterfaceGOParameters;
|
||||
import eva2.server.go.InterfaceNotifyOnInformers;
|
||||
import eva2.server.go.InterfaceTerminator;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeBinary;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeDouble;
|
||||
@ -17,13 +12,11 @@ import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.populations.SolutionSet;
|
||||
import eva2.server.modules.GOParameters;
|
||||
import eva2.server.modules.Processor;
|
||||
import eva2.server.stat.AbstractStatistics;
|
||||
import eva2.server.stat.InterfaceStatistics;
|
||||
import eva2.server.stat.InterfaceTextListener;
|
||||
import eva2.server.stat.StatisticsDummy;
|
||||
import eva2.server.stat.StatisticsStandalone;
|
||||
import eva2.server.stat.StatsParameter;
|
||||
import eva2.server.stat.*;
|
||||
import eva2.tools.jproxy.RemoteStateListener;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import java.util.BitSet;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -1,8 +1,14 @@
|
||||
package eva2.examples;
|
||||
|
||||
import eva2.OptimizerFactory;
|
||||
import eva2.server.go.operators.terminators.CombinedTerminator;
|
||||
import eva2.server.go.operators.terminators.EvaluationTerminator;
|
||||
import eva2.server.go.operators.terminators.FitnessConvergenceTerminator;
|
||||
import eva2.server.go.operators.terminators.PhenotypeConvergenceTerminator;
|
||||
import eva2.server.go.operators.terminators.PopulationMeasureTerminator.ChangeTypeEnum;
|
||||
import eva2.server.go.operators.terminators.PopulationMeasureTerminator.DirectionTypeEnum;
|
||||
import eva2.server.go.operators.terminators.PopulationMeasureTerminator.StagnationTypeEnum;
|
||||
import eva2.server.go.problems.F1Problem;
|
||||
import eva2.server.go.operators.terminators.*;
|
||||
import eva2.server.go.operators.terminators.PopulationMeasureTerminator.*;
|
||||
|
||||
public class TerminatorExample {
|
||||
public static void main(String[] args) {
|
||||
|
@ -9,9 +9,6 @@ package eva2.gui;
|
||||
* $Date: 2006-01-18 11:02:22 +0100 (Wed, 18 Jan 2006) $
|
||||
* $Author: streiche $
|
||||
*/
|
||||
/*==========================================================================*
|
||||
* IMPORTS
|
||||
*==========================================================================*/
|
||||
public interface ComponentFilter{
|
||||
public boolean accept(java.awt.Component c);
|
||||
public interface ComponentFilter {
|
||||
public boolean accept(java.awt.Component component);
|
||||
}
|
||||
|
@ -1,15 +1,16 @@
|
||||
package eva2.gui;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.beans.PropertyEditor;
|
||||
import java.beans.PropertyChangeSupport;
|
||||
import java.beans.PropertyChangeListener;
|
||||
import java.awt.*;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ComponentListener;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.beans.PropertyChangeListener;
|
||||
import java.beans.PropertyChangeSupport;
|
||||
import java.beans.PropertyEditor;
|
||||
import java.io.File;
|
||||
import java.beans.PropertyChangeEvent;
|
||||
import javax.swing.JFileChooser;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.SwingConstants;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
|
@ -8,49 +8,14 @@ package eva2.gui;
|
||||
* @version: $Revision: 235 $
|
||||
* $Date: 2007-11-08 13:53:51 +0100 (Thu, 08 Nov 2007) $
|
||||
* $Author: mkron $
|
||||
*
|
||||
*/
|
||||
/*==========================================================================*
|
||||
* IMPORTS
|
||||
*==========================================================================*/
|
||||
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Component;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Font;
|
||||
import java.awt.FontMetrics;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.Insets;
|
||||
import java.awt.Rectangle;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
import java.beans.PropertyChangeEvent;
|
||||
import java.beans.PropertyChangeListener;
|
||||
import java.beans.PropertyChangeSupport;
|
||||
import java.beans.PropertyEditor;
|
||||
import java.lang.reflect.Array;
|
||||
|
||||
import javax.swing.DefaultListCellRenderer;
|
||||
import javax.swing.DefaultListModel;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JCheckBox;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JList;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JScrollPane;
|
||||
import javax.swing.ListCellRenderer;
|
||||
import javax.swing.SwingConstants;
|
||||
import javax.swing.event.ListSelectionEvent;
|
||||
import javax.swing.event.ListSelectionListener;
|
||||
|
||||
import eva2.tools.EVAHELP;
|
||||
import eva2.tools.SelectedTag;
|
||||
/*==========================================================================*
|
||||
* CLASS DECLARATION
|
||||
*==========================================================================*/
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
import javax.swing.JCheckBox;
|
||||
|
||||
public class GenericSelectableArrayEditor extends GenericArrayEditor {
|
||||
protected JCheckBox[] m_BlackCheck;
|
||||
|
||||
@ -62,7 +27,7 @@ public class GenericSelectableArrayEditor extends GenericArrayEditor {
|
||||
GenericArrayEditor editor = new GenericArrayEditor();
|
||||
|
||||
|
||||
int[] initial = { 3,45, 7};
|
||||
int[] initial = {3, 45, 7};
|
||||
editor.setValue(initial);
|
||||
PropertyDialog pd = new PropertyDialog(editor,EVAHELP.cutClassName(editor.getClass().getName())
|
||||
, 100, 100);
|
||||
|
@ -9,16 +9,14 @@ package eva2.gui;
|
||||
* $Date: 2007-10-23 16:58:12 +0200 (Tue, 23 Oct 2007) $
|
||||
* $Author: mkron $
|
||||
*/
|
||||
/*==========================================================================*
|
||||
* IMPORTS
|
||||
*==========================================================================*/
|
||||
import eva2.EvAInfo;
|
||||
import eva2.tools.BasicResourceLoader;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Toolkit;
|
||||
import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
|
||||
import javax.swing.JEditorPane;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JScrollPane;
|
||||
@ -27,10 +25,6 @@ import javax.swing.event.HyperlinkEvent;
|
||||
import javax.swing.event.HyperlinkListener;
|
||||
import javax.swing.text.html.HTMLDocument;
|
||||
import javax.swing.text.html.HTMLFrameHyperlinkEvent;
|
||||
|
||||
import eva2.EvAInfo;
|
||||
import eva2.client.EvAClient;
|
||||
import eva2.tools.BasicResourceLoader;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -9,14 +9,11 @@ package eva2.gui;
|
||||
* $Date: 2007-10-25 16:11:23 +0200 (Thu, 25 Oct 2007) $
|
||||
* $Author: mkron $
|
||||
*/
|
||||
/*==========================================================================*
|
||||
* IMPORTS
|
||||
*==========================================================================*/
|
||||
import javax.swing.*;
|
||||
import javax.swing.tree.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.util.Enumeration;
|
||||
import javax.swing.*;
|
||||
import javax.swing.tree.DefaultMutableTreeNode;
|
||||
import javax.swing.tree.TreePath;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -14,8 +14,10 @@ import javax.swing.JFrame;
|
||||
import javax.swing.*;
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
import java.awt.event.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.WindowListener;
|
||||
|
||||
public class JEFrame extends JFrame {
|
||||
private boolean closeAllOnClose=false;
|
||||
|
@ -12,33 +12,18 @@ package eva2.gui;
|
||||
/*==========================================================================*
|
||||
* IMPORTS
|
||||
*==========================================================================*/
|
||||
import eva2.EvAInfo;
|
||||
import eva2.server.go.tools.FileTools;
|
||||
import eva2.tools.BasicResourceLoader;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Frame;
|
||||
import java.awt.Point;
|
||||
import java.awt.Toolkit;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.event.MouseListener;
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
import java.io.File;
|
||||
import java.awt.event.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.swing.BorderFactory;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JMenuItem;
|
||||
import javax.swing.JPopupMenu;
|
||||
import javax.swing.JScrollPane;
|
||||
import javax.swing.JTextArea;
|
||||
import javax.swing.JViewport;
|
||||
import javax.swing.*;
|
||||
import javax.swing.event.ChangeEvent;
|
||||
import javax.swing.event.ChangeListener;
|
||||
|
||||
import eva2.EvAInfo;
|
||||
import eva2.server.go.tools.FileTools;
|
||||
import eva2.tools.BasicResourceLoader;
|
||||
/*==========================================================================*
|
||||
* CLASS DECLARATION
|
||||
*==========================================================================*/
|
||||
|
@ -10,14 +10,6 @@ package eva2.server;
|
||||
* $Date: 2007-12-06 16:05:11 +0100 (Thu, 06 Dec 2007) $
|
||||
* $Author: mkron $
|
||||
*/
|
||||
/*==========================================================================*
|
||||
* IMPORTS
|
||||
*==========================================================================*/
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Properties;
|
||||
|
||||
import eva2.server.go.InterfaceGOParameters;
|
||||
import eva2.server.modules.GOModuleAdapter;
|
||||
import eva2.server.modules.ModuleAdapter;
|
||||
@ -25,10 +17,11 @@ import eva2.tools.EVAERROR;
|
||||
import eva2.tools.ReflectPackage;
|
||||
import eva2.tools.jproxy.MainAdapterClient;
|
||||
import eva2.tools.jproxy.RMIProxyLocal;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Properties;
|
||||
|
||||
/*==========================================================================*
|
||||
* CLASS DECLARATION
|
||||
*==========================================================================*/
|
||||
/**
|
||||
* Collect available ModuleAdapter implementations and load them on request.
|
||||
*/
|
||||
|
@ -1,31 +1,5 @@
|
||||
package eva2.server.go;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.List;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.net.InetAddress;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JProgressBar;
|
||||
import javax.swing.JTabbedPane;
|
||||
import javax.swing.SwingUtilities;
|
||||
|
||||
import eva2.client.EvAClient;
|
||||
import eva2.gui.BeanInspector;
|
||||
import eva2.gui.JParaPanel;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
@ -47,6 +21,18 @@ import eva2.server.modules.GOParameters;
|
||||
import eva2.tools.TokenHolder;
|
||||
import eva2.tools.jproxy.ThreadProxy;
|
||||
import eva2.tools.math.RNG;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.List;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
import java.io.*;
|
||||
import java.net.InetAddress;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
|
@ -22,21 +22,21 @@ public interface IndividualInterface {
|
||||
*
|
||||
* @return a clone of the individual instance
|
||||
*/
|
||||
public IndividualInterface getClone();
|
||||
IndividualInterface getClone();
|
||||
|
||||
/**
|
||||
* Get the fitness array of the individual which may be null if none has been set.
|
||||
*
|
||||
* @return the fitness array of the individual
|
||||
*/
|
||||
public double[] getFitness();
|
||||
double[] getFitness();
|
||||
|
||||
/**
|
||||
* Set the fitness array to the given array.
|
||||
*
|
||||
* @param fit new fitness of the individual
|
||||
*/
|
||||
public void SetFitness (double[] fit);
|
||||
void SetFitness (double[] fit);
|
||||
|
||||
/**
|
||||
* Check whether the instance is dominating the given other individual and return
|
||||
@ -45,7 +45,7 @@ public interface IndividualInterface {
|
||||
* @param other a second individual of the same type
|
||||
* @return true if the instance dominates the other individual, else false
|
||||
*/
|
||||
public boolean isDominant(double[] fitness);
|
||||
boolean isDominant(double[] fitness);
|
||||
|
||||
/**
|
||||
* Check whether the instance is dominating the given other individual and return
|
||||
@ -56,18 +56,18 @@ public interface IndividualInterface {
|
||||
* @param other a second individual of the same type
|
||||
* @return true if the instance dominates the other individual, else false
|
||||
*/
|
||||
public boolean isDominant(IndividualInterface other);
|
||||
boolean isDominant(IndividualInterface other);
|
||||
|
||||
/**
|
||||
* Perform a standard mutation operation on the individual. The exact implementation
|
||||
* depends on the implemented genotype.
|
||||
*/
|
||||
public void defaultMutate();
|
||||
void defaultMutate();
|
||||
|
||||
/**
|
||||
* Initialize the genotype randomly, usually in a uniform distribution. Make sure,
|
||||
* if the problem has an initial range (it implements InterfaceHasInitialRange), that this
|
||||
* initial range is used.
|
||||
*/
|
||||
public void defaultInit(InterfaceOptimizationProblem prob);
|
||||
void defaultInit(InterfaceOptimizationProblem prob);
|
||||
}
|
@ -1,43 +1,25 @@
|
||||
package eva2.server.go;
|
||||
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
import eva2.gui.*;
|
||||
import eva2.gui.JParaPanel;
|
||||
import eva2.gui.PropertyDoubleArray;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.mocco.InterfaceProcessElement;
|
||||
import eva2.server.go.mocco.MOCCOChooseMOStrategy;
|
||||
import eva2.server.go.mocco.MOCCOChooseReferencePoint;
|
||||
import eva2.server.go.mocco.MOCCOChooseReferenceSolution;
|
||||
import eva2.server.go.mocco.MOCCOInitialPopulationSize;
|
||||
import eva2.server.go.mocco.MOCCOParameterizeGDF;
|
||||
import eva2.server.go.mocco.MOCCOParameterizeMO;
|
||||
import eva2.server.go.mocco.MOCCOParameterizeRefPoint;
|
||||
import eva2.server.go.mocco.MOCCOParameterizeSO;
|
||||
import eva2.server.go.mocco.MOCCOParameterizeSTEP;
|
||||
import eva2.server.go.mocco.MOCCOParameterizeTchebycheff;
|
||||
import eva2.server.go.mocco.MOCCOProblemInitialization;
|
||||
import eva2.server.go.mocco.MOCCOProblemRedefinition;
|
||||
import eva2.server.go.mocco.MOCCOState;
|
||||
import eva2.server.go.mocco.*;
|
||||
import eva2.server.go.mocco.paretofrontviewer.MOCCOViewer;
|
||||
import eva2.server.go.operators.moso.InterfaceMOSOConverter;
|
||||
import eva2.server.go.operators.moso.MOSOWeightedFitness;
|
||||
import eva2.server.go.operators.terminators.EvaluationTerminator;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.AbstractMultiObjectiveOptimizationProblem;
|
||||
import eva2.server.go.problems.InterfaceMultiObjectiveDeNovoProblem;
|
||||
import eva2.server.go.problems.InterfaceOptimizationObjective;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.server.go.problems.TF1Problem;
|
||||
import eva2.server.go.problems.*;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
import eva2.server.go.strategies.IslandModelEA;
|
||||
import eva2.server.go.tools.GeneralGOEProperty;
|
||||
import eva2.tools.jproxy.ThreadProxy;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
import java.io.Serializable;
|
||||
import java.io.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.util.ArrayList;
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
@ -46,7 +28,7 @@ import java.util.ArrayList;
|
||||
* Time: 14:31:56
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
public class MOCCOStandalone implements InterfaceGOStandalone, InterfacePopulationChangedEventListener, java.io.Serializable {
|
||||
public class MOCCOStandalone implements InterfaceGOStandalone, InterfacePopulationChangedEventListener, Serializable {
|
||||
|
||||
public volatile MOCCOState m_State;
|
||||
private SwingWorker worker;
|
||||
|
@ -1,8 +1,5 @@
|
||||
package eva2.server.go.individuals;
|
||||
|
||||
|
||||
import java.util.BitSet;
|
||||
|
||||
import eva2.server.go.operators.mutation.InterfaceMutation;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
|
@ -1,15 +1,15 @@
|
||||
package eva2.server.go.mocco;
|
||||
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
import eva2.gui.JParaPanel;
|
||||
import eva2.server.go.MOCCOStandalone;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.GridBagConstraints;
|
||||
import java.awt.GridBagLayout;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JTextField;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
|
@ -1,23 +1,15 @@
|
||||
package eva2.server.go.mocco;
|
||||
|
||||
import eva2.server.go.MOCCOStandalone;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Font;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
|
||||
|
||||
import javax.swing.BorderFactory;
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JTextArea;
|
||||
|
||||
import eva2.gui.PropertyBoolSelector;
|
||||
import eva2.gui.PropertyPanel;
|
||||
import eva2.gui.PropertyText;
|
||||
import eva2.gui.PropertyValueSelector;
|
||||
import eva2.server.go.MOCCOStandalone;
|
||||
import eva2.server.go.tools.GeneralGOEProperty;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: streiche
|
||||
|
@ -1,21 +1,15 @@
|
||||
package eva2.server.go.mocco;
|
||||
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
import eva2.gui.GenericObjectEditor;
|
||||
import eva2.gui.JParaPanel;
|
||||
import eva2.server.go.MOCCOStandalone;
|
||||
import eva2.server.go.problems.InterfaceMultiObjectiveDeNovoProblem;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.server.go.tools.GeneralGOEProperty;
|
||||
import eva2.tools.ReflectPackage;
|
||||
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.GridBagConstraints;
|
||||
import java.awt.GridBagLayout;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.*;
|
||||
import java.beans.PropertyEditorManager;
|
||||
import java.util.Vector;
|
||||
import java.awt.event.ActionListener;
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
|
@ -1,8 +1,5 @@
|
||||
package eva2.server.go.mocco;
|
||||
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
import eva2.server.go.InterfaceTerminator;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.operators.archiving.ArchivingAllDominating;
|
||||
@ -12,14 +9,10 @@ import eva2.server.go.problems.AbstractMultiObjectiveOptimizationProblem;
|
||||
import eva2.server.go.problems.InterfaceMultiObjectiveDeNovoProblem;
|
||||
import eva2.server.go.problems.InterfaceOptimizationObjective;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.server.go.strategies.GeneticAlgorithm;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
import eva2.server.go.strategies.MultiObjectiveEA;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.ArrayList;
|
||||
import java.awt.*;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ActionEvent;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
|
@ -2,7 +2,6 @@ package eva2.server.go.operators.archiving;
|
||||
|
||||
import eva2.gui.*;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.ESIndividualDoubleData;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconCross;
|
||||
import eva2.tools.chart2d.DPoint;
|
||||
|
@ -1,8 +1,5 @@
|
||||
package eva2.server.go.operators.archiving;
|
||||
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.operators.moso.MOSOMaxiMin;
|
||||
import eva2.server.go.operators.selection.InterfaceSelection;
|
||||
|
@ -1,8 +1,5 @@
|
||||
package eva2.server.go.operators.archiving;
|
||||
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.populations.Population;
|
||||
|
||||
@ -17,11 +14,11 @@ public class ArchivingNSGA extends AbstractArchiving implements java.io.Serializ
|
||||
|
||||
public InterfaceRemoveSurplusIndividuals m_Cleaner = new RemoveSurplusIndividualsDynamicHyperCube();
|
||||
|
||||
public ArchivingNSGA() {
|
||||
public ArchivingNSGA() {
|
||||
}
|
||||
|
||||
public ArchivingNSGA(ArchivingNSGA a) {
|
||||
this.m_Cleaner = (InterfaceRemoveSurplusIndividuals)a.m_Cleaner.clone();
|
||||
this.m_Cleaner = (InterfaceRemoveSurplusIndividuals) a.m_Cleaner.clone();
|
||||
}
|
||||
|
||||
public Object clone() {
|
||||
|
@ -1,17 +1,10 @@
|
||||
package eva2.server.go.operators.archiving;
|
||||
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import eva2.gui.*;
|
||||
import eva2.server.go.IndividualInterface;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.ESIndividualDoubleData;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconCross;
|
||||
import eva2.tools.chart2d.DPoint;
|
||||
import eva2.tools.chart2d.DPointIcon;
|
||||
import eva2.tools.math.RNG;
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
||||
/** The secon verison of the non dominace sorting GA.
|
||||
|
@ -1,12 +1,9 @@
|
||||
package eva2.server.go.operators.archiving;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Vector;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.AbstractEAIndividualComparator;
|
||||
import eva2.server.go.populations.Population;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class ArchivingNSGAIISMeasure extends ArchivingNSGAII {
|
||||
|
||||
|
@ -1,19 +1,15 @@
|
||||
package eva2.server.go.operators.archiving;
|
||||
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.awt.*;
|
||||
|
||||
import eva2.gui.*;
|
||||
import eva2.server.go.IndividualInterface;
|
||||
import eva2.gui.GraphPointSet;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconCircle;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconText;
|
||||
import eva2.tools.chart2d.DLine;
|
||||
import eva2.tools.chart2d.DPoint;
|
||||
import eva2.tools.chart2d.DPointIcon;
|
||||
import eva2.tools.math.RNG;
|
||||
import java.awt.Color;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/** The Pareto envelope sorting algorithm using a hybergrid and
|
||||
* the so called squezze factor.
|
||||
|
@ -1,20 +1,15 @@
|
||||
package eva2.server.go.operators.archiving;
|
||||
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
import eva2.gui.*;
|
||||
import eva2.gui.GraphPointSet;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.ESIndividualDoubleData;
|
||||
import eva2.server.go.operators.distancemetric.InterfaceDistanceMetric;
|
||||
import eva2.server.go.operators.distancemetric.ObjectiveSpaceMetric;
|
||||
import eva2.server.go.operators.selection.InterfaceSelection;
|
||||
import eva2.server.go.operators.selection.SelectBestIndividuals;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconCircle;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconText;
|
||||
import eva2.tools.chart2d.DPoint;
|
||||
import eva2.tools.chart2d.DPointIcon;
|
||||
import java.awt.Color;
|
||||
|
||||
/** The strength Pareto EA in it's second version, which is based on
|
||||
* dominance counts.
|
||||
|
@ -275,7 +275,6 @@ public class ClassificationSelfOrganizingMaps implements java.io.Serializable, I
|
||||
public void drikelWinnerTo(int[] w, double[] d, double a) {
|
||||
double[] vec = new double[this.m_SOM[w[0]][w[1]].length];
|
||||
double[] nec = new double[this.m_SOM[w[0]][w[1]].length];
|
||||
double dist;
|
||||
|
||||
for (int i = 0; i < this.m_SOM[w[0]][w[1]].length; i++) {
|
||||
vec[i] = (d[i] - this.m_Range[i][2])/(1+this.m_Range[i][3]) - this.m_SOM[w[0]][w[1]][i];
|
||||
@ -288,7 +287,6 @@ public class ClassificationSelfOrganizingMaps implements java.io.Serializable, I
|
||||
// not outside the array
|
||||
if ((this.m_SOM.length > w[0]+i) && (w[0]+i>= 0)
|
||||
&& (this.m_SOM[0].length > w[1]+j) && (w[1]+j>= 0)) {
|
||||
dist = Math.sqrt(i*i + j*j);
|
||||
for (int k = 0; k < this.m_SOM[0][0].length; k++) {
|
||||
nec[k] += (d[k] - this.m_Range[k][2])/(1+this.m_Range[k][3]) - this.m_SOM[w[0]+i][w[1]+j][k];
|
||||
}
|
||||
|
@ -1,7 +1,5 @@
|
||||
package eva2.server.go.operators.cluster;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import eva2.gui.GraphPointSet;
|
||||
import eva2.gui.Plot;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
@ -14,7 +12,7 @@ import eva2.server.go.problems.F1Problem;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconCircle;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconText;
|
||||
import eva2.tools.chart2d.DPoint;
|
||||
import eva2.tools.math.RNG;
|
||||
import java.util.Arrays;
|
||||
|
||||
/** The k-mean clustering algorithms. I guess it is not a hierachical
|
||||
* clustering method.
|
||||
@ -434,4 +432,4 @@ public class ClusteringKMeans implements InterfaceClustering, java.io.Serializab
|
||||
public String minClustSizeTipText() {
|
||||
return "Require a cluster to be at least of this size. Smaller ones are assigned to the unclustered set.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,5 @@
|
||||
package eva2.server.go.operators.constraint;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
|
||||
/**
|
||||
* To handle a set of constraints with a single parameter adaption mechanism.
|
||||
* Single constraints are
|
||||
|
@ -1,7 +1,6 @@
|
||||
package eva2.server.go.operators.constraint;
|
||||
|
||||
import eva2.gui.GenericObjectEditor;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
|
||||
/**
|
||||
* This constraint is always satisfied.
|
||||
|
@ -1,13 +1,11 @@
|
||||
package eva2.server.go.operators.crossover;
|
||||
|
||||
import java.util.BitSet;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeBinary;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.server.go.strategies.BinaryScatterSearch;
|
||||
import eva2.tools.math.RNG;
|
||||
import java.util.BitSet;
|
||||
|
||||
/**
|
||||
* This crossover-Method performs an \"intersection\" of the selected Individuals
|
||||
|
@ -1,8 +1,5 @@
|
||||
package eva2.server.go.operators.crossover;
|
||||
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import eva2.gui.Plot;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.ESIndividualDoubleData;
|
||||
|
@ -1,14 +1,11 @@
|
||||
package eva2.server.go.operators.crossover;
|
||||
|
||||
|
||||
import java.util.BitSet;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.InterfaceGIIndividual;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.tools.math.RNG;
|
||||
import java.util.BitSet;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
|
@ -1,11 +1,9 @@
|
||||
package eva2.server.go.operators.distancemetric;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.strategies.ParticleSwarmOptimization;
|
||||
import eva2.tools.EVAERROR;
|
||||
import eva2.tools.math.Mathematics;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Calculate the euclidean difference between discrete integrals, which is
|
||||
@ -19,13 +17,13 @@ import eva2.tools.math.Mathematics;
|
||||
*
|
||||
*/
|
||||
public class DoubleIntegralMetric implements InterfaceDistanceMetric, Serializable {
|
||||
boolean oneNormed=true; // if true, the vectors are normed to unity sum before comparison.
|
||||
boolean oneNormed = true; // if true, the vectors are normed to unity sum before comparison.
|
||||
// String indyDataKey=null;
|
||||
|
||||
public DoubleIntegralMetric() {}
|
||||
|
||||
public DoubleIntegralMetric(boolean normed) {
|
||||
oneNormed=normed;
|
||||
oneNormed = normed;
|
||||
}
|
||||
|
||||
public Object clone() {
|
||||
|
@ -1,11 +1,9 @@
|
||||
package eva2.server.go.operators.distancemetric;
|
||||
|
||||
|
||||
import java.util.BitSet;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeDouble;
|
||||
import eva2.server.go.individuals.InterfaceGAIndividual;
|
||||
import java.util.BitSet;
|
||||
|
||||
/** Distance based on a bit-set if any.
|
||||
* Created by IntelliJ IDEA.
|
||||
|
@ -1,28 +1,22 @@
|
||||
package eva2.server.go.operators.migration;
|
||||
|
||||
|
||||
import java.io.*;
|
||||
|
||||
import eva2.gui.GraphPointSet;
|
||||
import eva2.gui.Plot;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.operators.archiving.ArchivingAllDominating;
|
||||
import eva2.server.go.operators.archiving.ArchivingNSGAII;
|
||||
import eva2.server.go.operators.archiving.InterfaceArchiving;
|
||||
import eva2.server.go.operators.cluster.ClusteringKMeans;
|
||||
import eva2.server.go.operators.constraint.ConstBelongsToDifferentClass;
|
||||
import eva2.server.go.operators.constraint.ConstObjectivesInEqualityBiggerThanLinear;
|
||||
import eva2.server.go.operators.constraint.ConstObjectivesInEqualityLesserThanLinear;
|
||||
import eva2.server.go.operators.selection.InterfaceSelection;
|
||||
import eva2.server.go.operators.selection.SelectRandom;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.AbstractMultiObjectiveOptimizationProblem;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
import eva2.server.go.strategies.MultiObjectiveEA;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconCircle;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconText;
|
||||
import eva2.tools.chart2d.DPoint;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.IOException;
|
||||
|
||||
/** This method implements the clustering based subdivision
|
||||
* scheme, this method rearanges the populations and may
|
||||
|
@ -1,31 +1,25 @@
|
||||
package eva2.server.go.operators.migration;
|
||||
|
||||
|
||||
import java.io.*;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import eva2.gui.GraphPointSet;
|
||||
import eva2.gui.Plot;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.operators.archiving.ArchivingAllDominating;
|
||||
import eva2.server.go.operators.archiving.ArchivingNSGAII;
|
||||
import eva2.server.go.operators.archiving.InterfaceArchiving;
|
||||
import eva2.server.go.operators.cluster.ClusteringKMeans;
|
||||
import eva2.server.go.operators.constraint.ConstObjectivesInEqualityBiggerThanLinear;
|
||||
import eva2.server.go.operators.constraint.ConstObjectivesInEqualityBiggerThanSurface;
|
||||
import eva2.server.go.operators.constraint.ConstObjectivesInEqualityLesserThanLinear;
|
||||
import eva2.server.go.operators.constraint.ConstObjectivesInEqualitySmallerThanSurface;
|
||||
import eva2.server.go.operators.selection.InterfaceSelection;
|
||||
import eva2.server.go.operators.selection.SelectMOMaxiMin;
|
||||
import eva2.server.go.operators.selection.SelectRandom;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.AbstractMultiObjectiveOptimizationProblem;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
import eva2.server.go.strategies.MultiObjectiveEA;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconCircle;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconText;
|
||||
import eva2.tools.chart2d.DPoint;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.IOException;
|
||||
|
||||
/** This method implements the cone separation subdivision
|
||||
* scheme, this method rearanges the populations and may
|
||||
|
@ -1,6 +1,5 @@
|
||||
package eva2.server.go.operators.moso;
|
||||
|
||||
import eva2.gui.PropertyDoubleArray;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.populations.Population;
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
package eva2.server.go.operators.moso;
|
||||
|
||||
import eva2.gui.PropertyEpsilonConstraint;
|
||||
import eva2.gui.PropertyEpsilonThreshold;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.populations.Population;
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
package eva2.server.go.operators.moso;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.operators.archiving.ArchivingNSGAII;
|
||||
import eva2.server.go.populations.Population;
|
||||
|
||||
/**
|
||||
|
@ -1,11 +1,7 @@
|
||||
package eva2.server.go.operators.moso;
|
||||
|
||||
import eva2.gui.GraphPointSet;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconCircle;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconText;
|
||||
import eva2.tools.chart2d.DPoint;
|
||||
import eva2.tools.math.RNG;
|
||||
|
||||
/**
|
||||
|
@ -3,7 +3,6 @@ package eva2.server.go.operators.moso;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.operators.archiving.ArchivingNSGAII;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.tools.math.RNG;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
|
@ -1,17 +1,14 @@
|
||||
package eva2.server.go.operators.mutation;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Arrays;
|
||||
|
||||
import eva2.gui.BeanInspector;
|
||||
import eva2.server.go.InterfacePopulationChangedEventListener;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeDouble;
|
||||
import eva2.server.go.operators.selection.probability.SelProbNonLinearRanking;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.strategies.EvolutionStrategies;
|
||||
import eva2.tools.EVAERROR;
|
||||
import eva2.tools.math.Mathematics;
|
||||
import eva2.tools.math.Jama.Matrix;
|
||||
import eva2.tools.math.Mathematics;
|
||||
import java.io.Serializable;
|
||||
import java.util.Arrays;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -1,14 +1,13 @@
|
||||
package eva2.server.go.operators.mutation;
|
||||
|
||||
import eva2.gui.BeanInspector;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.InterfaceESIndividual;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.tools.math.Mathematics;
|
||||
import eva2.tools.math.RNG;
|
||||
import eva2.tools.math.Jama.EigenvalueDecomposition;
|
||||
import eva2.tools.math.Jama.Matrix;
|
||||
import eva2.tools.math.Mathematics;
|
||||
import eva2.tools.math.RNG;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
|
@ -1,15 +1,12 @@
|
||||
package eva2.server.go.operators.mutation;
|
||||
|
||||
|
||||
import java.util.BitSet;
|
||||
|
||||
import eva2.gui.BeanInspector;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.InterfaceGAIndividual;
|
||||
import eva2.server.go.individuals.InterfaceGIIndividual;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.tools.math.RNG;
|
||||
import java.util.BitSet;
|
||||
|
||||
/**
|
||||
* Swap random pairs of values of a GA/GI individual. If preferPairs is true, unequal pairs
|
||||
|
@ -1,15 +1,12 @@
|
||||
package eva2.server.go.operators.nichepso.deactivation;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Vector;
|
||||
|
||||
import eva2.server.go.InterfaceTerminator;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.operators.terminators.HistoryConvergenceTerminator;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.strategies.NichePSO;
|
||||
import eva2.server.go.strategies.ParticleSubSwarmOptimization;
|
||||
import eva2.tools.EVAERROR;
|
||||
import java.util.List;
|
||||
import java.util.Vector;
|
||||
|
||||
/**
|
||||
* A subswarm is deactivated if all its particles are converged.
|
||||
|
@ -1,17 +1,13 @@
|
||||
package eva2.server.go.operators.paretofrontmetrics;
|
||||
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.util.Properties;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import eva2.gui.PropertyFilePath;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.operators.archiving.ArchivingAllDominating;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.AbstractMultiObjectiveOptimizationProblem;
|
||||
import eva2.server.go.tools.FileTools;
|
||||
import eva2.tools.ResourceLoader;
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
||||
/** The error ratio metric only suited for small discrete
|
||||
|
@ -1,10 +1,5 @@
|
||||
package eva2.server.go.operators.postprocess;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Vector;
|
||||
|
||||
import eva2.OptimizerFactory;
|
||||
import eva2.OptimizerRunnable;
|
||||
import eva2.gui.BeanInspector;
|
||||
@ -31,14 +26,7 @@ import eva2.server.go.operators.mutation.MutateESRankMuCMA;
|
||||
import eva2.server.go.operators.selection.SelectBestIndividuals;
|
||||
import eva2.server.go.operators.terminators.EvaluationTerminator;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.AbstractMultiModalProblemKnown;
|
||||
import eva2.server.go.problems.AbstractOptimizationProblem;
|
||||
import eva2.server.go.problems.FM0Problem;
|
||||
import eva2.server.go.problems.Interface2DBorderProblem;
|
||||
import eva2.server.go.problems.InterfaceHasSolutionViewer;
|
||||
import eva2.server.go.problems.InterfaceInterestingHistogram;
|
||||
import eva2.server.go.problems.InterfaceMultimodalProblemKnown;
|
||||
import eva2.server.go.problems.InterfaceSolutionViewer;
|
||||
import eva2.server.go.problems.*;
|
||||
import eva2.server.go.strategies.EvolutionStrategies;
|
||||
import eva2.server.go.strategies.GradientDescentAlgorithm;
|
||||
import eva2.server.go.strategies.HillClimbing;
|
||||
@ -48,6 +36,10 @@ import eva2.server.stat.InterfaceTextListener;
|
||||
import eva2.server.stat.StatsParameter;
|
||||
import eva2.tools.Pair;
|
||||
import eva2.tools.math.Mathematics;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Vector;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,6 @@ package eva2.server.go.operators.selection;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.tools.math.RNG;
|
||||
|
||||
/** Simple method to selecet all.
|
||||
* In case of multiple fitness values the selection
|
||||
|
@ -1,14 +1,11 @@
|
||||
package eva2.server.go.operators.selection;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.operators.distancemetric.InterfaceDistanceMetric;
|
||||
import eva2.server.go.operators.distancemetric.ObjectiveSpaceMetric;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.tools.math.RNG;
|
||||
|
||||
/** An experimential implementation for mating restriction.
|
||||
/** An experimental implementation for mating restriction.
|
||||
* Possibly defunct.
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: streiche
|
||||
|
@ -3,7 +3,6 @@ package eva2.server.go.operators.selection;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.operators.moso.MOSOMaxiMin;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.tools.math.RNG;
|
||||
|
||||
/** A multi-objective selection criterion based on the maximin
|
||||
* method.
|
||||
|
@ -1,15 +1,11 @@
|
||||
package eva2.server.go.operators.terminators;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import eva2.server.go.InterfaceTerminator;
|
||||
import eva2.server.go.PopulationInterface;
|
||||
import eva2.server.go.operators.distancemetric.InterfaceDistanceMetric;
|
||||
import eva2.server.go.operators.distancemetric.PhenotypeMetric;
|
||||
import eva2.server.go.populations.InterfaceSolutionSet;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.tools.SelectedTag;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* The diversity terminator uses the distance of individuals
|
||||
|
@ -3,10 +3,7 @@
|
||||
*/
|
||||
package eva2.server.go.problems;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeDouble;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
|
||||
/**
|
||||
* A synchronous problem changes in equal intervals. As the EA takes notice of the
|
||||
|
@ -1,9 +1,6 @@
|
||||
package eva2.server.go.problems;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.ESIndividualDoubleData;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeDouble;
|
||||
import eva2.server.go.populations.Population;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
|
@ -1,9 +1,6 @@
|
||||
package eva2.server.go.problems;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.ESIndividualDoubleData;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeDouble;
|
||||
import eva2.server.go.populations.Population;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
@ -12,7 +9,7 @@ import eva2.server.go.populations.Population;
|
||||
* Time: 14:59:33
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
public class F12Problem extends AbstractProblemDoubleOffset implements java.io.Serializable {
|
||||
public class F12Problem extends AbstractProblemDoubleOffset implements Serializable {
|
||||
private final static double f12range = 5.;
|
||||
|
||||
public F12Problem() {
|
||||
|
@ -1,9 +1,7 @@
|
||||
package eva2.server.go.problems;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import eva2.gui.BeanInspector;
|
||||
import eva2.server.go.operators.postprocess.SolutionHistogram;
|
||||
import java.util.Random;
|
||||
|
||||
/**
|
||||
* Langerman function: A non-separable function built from random peaks each of which is surrounded by circular ridges.
|
||||
|
@ -1,6 +1,5 @@
|
||||
package eva2.server.go.problems;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.ESIndividualDoubleData;
|
||||
|
||||
/**
|
||||
|
@ -1,10 +1,6 @@
|
||||
package eva2.server.go.problems;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.ESIndividualDoubleData;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeDouble;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.tools.math.RNG;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
@ -13,7 +9,7 @@ import eva2.tools.math.RNG;
|
||||
* Time: 19:28:33
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
public class F4Problem extends AbstractProblemDoubleOffset implements java.io.Serializable {
|
||||
public class F4Problem extends AbstractProblemDoubleOffset implements Serializable {
|
||||
final static double f4range = 1.28;
|
||||
|
||||
public F4Problem() {
|
||||
|
@ -1,10 +1,6 @@
|
||||
package eva2.server.go.problems;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.ESIndividualDoubleData;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeDouble;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.tools.math.RNG;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
@ -13,7 +9,7 @@ import eva2.tools.math.RNG;
|
||||
* Time: 19:30:52
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
public class F5Problem extends AbstractProblemDoubleOffset implements java.io.Serializable {
|
||||
public class F5Problem extends AbstractProblemDoubleOffset implements Serializable {
|
||||
final static double f5range = 65.536;
|
||||
|
||||
public F5Problem() {
|
||||
|
@ -1,18 +1,17 @@
|
||||
package eva2.server.go.problems;
|
||||
|
||||
import eva2.server.go.individuals.ESIndividualDoubleData;
|
||||
import eva2.tools.math.Mathematics;
|
||||
import eva2.server.go.operators.postprocess.SolutionHistogram;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.strategies.GradientDescentAlgorithm;
|
||||
import eva2.tools.math.Jama.Matrix;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Generalized Rastrigin's function.
|
||||
*
|
||||
*/
|
||||
public class F6Problem extends AbstractProblemDoubleOffset
|
||||
implements InterfaceMultimodalProblem, InterfaceFirstOrderDerivableProblem, InterfaceLocalSearchable, java.io.Serializable, InterfaceInterestingHistogram {
|
||||
implements InterfaceMultimodalProblem, InterfaceFirstOrderDerivableProblem, InterfaceLocalSearchable, Serializable, InterfaceInterestingHistogram {
|
||||
private double m_A = 10;
|
||||
private double m_Omega = 2*Math.PI;
|
||||
private transient GradientDescentAlgorithm localSearchOptimizer=null;
|
||||
|
@ -2,11 +2,10 @@ package eva2.server.go.problems;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.ESIndividualDoubleData;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeDouble;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.tools.SelectedTag;
|
||||
import eva2.tools.Tag;
|
||||
import eva2.tools.math.RNG;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
@ -15,7 +14,7 @@ import eva2.tools.math.RNG;
|
||||
* Time: 13:23:43
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
public class F7Problem extends AbstractProblemDoubleOffset implements java.io.Serializable {
|
||||
public class F7Problem extends AbstractProblemDoubleOffset implements Serializable {
|
||||
|
||||
private double m_t = 250;
|
||||
private double m_Change = 4;
|
||||
|
@ -1,6 +1,5 @@
|
||||
package eva2.server.go.problems;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.ESIndividualDoubleData;
|
||||
|
||||
public class F9Problem extends AbstractProblemDoubleOffset implements java.io.Serializable {
|
||||
|
@ -1,11 +1,7 @@
|
||||
package eva2.server.go.problems;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import eva2.server.go.individuals.ESIndividualDoubleData;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
|
||||
import eva2.server.go.problems.Interface2DBorderProblem;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
|
@ -1,23 +1,9 @@
|
||||
package eva2.server.go.problems;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.PrintStream;
|
||||
import java.io.Serializable;
|
||||
import java.util.Arrays;
|
||||
import java.util.BitSet;
|
||||
|
||||
import eva2.OptimizerFactory;
|
||||
import eva2.OptimizerRunnable;
|
||||
import eva2.gui.BeanInspector;
|
||||
import eva2.server.go.PopulationInterface;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.ESIndividualDoubleData;
|
||||
import eva2.server.go.individuals.GAIndividualBinaryData;
|
||||
import eva2.server.go.individuals.GIIndividualIntegerData;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeBinary;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeDouble;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeInteger;
|
||||
import eva2.server.go.individuals.*;
|
||||
import eva2.server.go.operators.postprocess.InterfacePostProcessParams;
|
||||
import eva2.server.go.operators.postprocess.PostProcess;
|
||||
import eva2.server.go.operators.postprocess.PostProcessParams;
|
||||
@ -29,7 +15,12 @@ import eva2.server.go.operators.terminators.PopulationMeasureTerminator.Stagnati
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
import eva2.server.stat.InterfaceTextListener;
|
||||
import eva2.tools.ToolBox;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.PrintStream;
|
||||
import java.io.Serializable;
|
||||
import java.util.Arrays;
|
||||
import java.util.BitSet;
|
||||
|
||||
/**
|
||||
* Interface problem class for Matlab(TM). Towards EvA2 this behaves like any other double valued
|
||||
|
@ -1,11 +1,5 @@
|
||||
package eva2.server.go.problems;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.FileWriter;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import eva2.gui.GraphPointSet;
|
||||
import eva2.gui.Plot;
|
||||
import eva2.gui.PropertyFilePath;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
@ -15,10 +9,10 @@ import eva2.server.go.operators.moso.InterfaceMOSOConverter;
|
||||
import eva2.server.go.operators.paretofrontmetrics.InterfaceParetoFrontMetric;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconCircle;
|
||||
import eva2.tools.chart2d.Chart2DDPointIconText;
|
||||
import eva2.tools.chart2d.DPoint;
|
||||
import eva2.tools.math.RNG;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.FileWriter;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
|
@ -1,10 +1,5 @@
|
||||
package eva2.server.go.strategies;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.Vector;
|
||||
|
||||
import eva2.OptimizerFactory;
|
||||
import eva2.gui.GenericObjectEditor;
|
||||
import eva2.server.go.InterfaceTerminator;
|
||||
@ -24,6 +19,9 @@ import eva2.server.modules.GOParameters;
|
||||
import eva2.tools.ToolBox;
|
||||
import eva2.tools.chart2d.DPoint;
|
||||
import eva2.tools.chart2d.DPointSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* The Adaptive Niching PSO(ANPSO)[1] extends the particle swarm optimizer (PSO)
|
||||
|
@ -240,7 +240,6 @@ public class BinaryScatterSearch implements InterfaceOptimizer, java.io.Serializ
|
||||
* @return the new Population
|
||||
*/
|
||||
private Population generateG1(int numToInit){
|
||||
boolean method1 = true;
|
||||
Population pop = generateG1Pop(numToInit, this.template);
|
||||
for (int i=0; i<pop.size(); i++) {
|
||||
evaluate(pop.getEAIndividual(i));
|
||||
|
@ -1696,18 +1696,20 @@ public class NichePSO implements InterfaceAdditionalPopulationInformer, Interfac
|
||||
if (withIDs){
|
||||
for (int i = 0; i < getMainSwarm().getPopulation().size(); ++i){
|
||||
AbstractEAIndividual currentindy = getMainSwarm().getPopulation().getEAIndividual(i);
|
||||
int particleindex = currentindy.getIndividualIndex();//((Integer)currentindy.getData("particleIndex")).intValue(); // should be unique and constant
|
||||
int particleindex = currentindy.getIndividualIndex(); // should be unique and constant
|
||||
|
||||
AbstractEAIndividual leader = (AbstractEAIndividual)currentindy.getData("MultiSwarmType");
|
||||
int leaderIndex = 0;
|
||||
if (leader != null) leaderIndex = leader.getIndividualIndex();
|
||||
if (leader != null) {
|
||||
leaderIndex = leader.getIndividualIndex();
|
||||
}
|
||||
|
||||
if (currentindy.getData("newParticleFlag")!=null){
|
||||
plotCircleForIndy(currentindy,String.valueOf(particleindex)+" reinit");
|
||||
if (currentindy.getData("newParticleFlag") != null){
|
||||
plotCircleForIndy(currentindy,particleindex + " reinit");
|
||||
currentindy.putData("newParticleFlag", null);
|
||||
}else{
|
||||
String info = String.valueOf(particleindex)+" ("+String.valueOf(leaderIndex)+")";
|
||||
plotCircleForIndy(currentindy,info);
|
||||
String info = particleindex+ " (" + leaderIndex + ")";
|
||||
plotCircleForIndy(currentindy, info);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1857,8 +1859,8 @@ public class NichePSO implements InterfaceAdditionalPopulationInformer, Interfac
|
||||
// from merging
|
||||
if (mergingOccurd){
|
||||
for (int i = 0; i < borgbest.size(); ++i){
|
||||
plotCircleForIndy(borgbest.get(i), "merging "+String.valueOf(i));
|
||||
plotCircleForIndy(othersbest.get(i), "merging "+String.valueOf(i));
|
||||
plotCircleForIndy(borgbest.get(i), "merging " + i);
|
||||
plotCircleForIndy(othersbest.get(i), "merging " + i);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1866,8 +1868,8 @@ public class NichePSO implements InterfaceAdditionalPopulationInformer, Interfac
|
||||
if (absorbtionOccurd){
|
||||
for (int i = 0; i < indytoabsorb.size(); ++i){
|
||||
AbstractEAIndividual indy = indytoabsorb.get(i);
|
||||
int particleIndex = indy.getIndividualIndex();//((Integer)indy.getData("particleIndex")).intValue();
|
||||
plotCircleForIndy(indy, String.valueOf(particleIndex)+" absorbed");
|
||||
int particleIndex = indy.getIndividualIndex();
|
||||
plotCircleForIndy(indy, particleIndex + " absorbed");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,41 +1,30 @@
|
||||
package eva2.server.go.strategies;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.LinkedList;
|
||||
import java.util.Vector;
|
||||
|
||||
import eva2.gui.BeanInspector;
|
||||
import eva2.gui.GenericObjectEditor;
|
||||
import eva2.gui.TopoPlot;
|
||||
import eva2.server.go.InterfacePopulationChangedEventListener;
|
||||
import eva2.server.go.PopulationInterface;
|
||||
import eva2.server.go.enums.PSOTopologyEnum;
|
||||
import eva2.server.go.enums.PostProcessMethod;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.AbstractEAIndividualComparator;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeDouble;
|
||||
import eva2.server.go.operators.distancemetric.EuclideanMetric;
|
||||
import eva2.server.go.operators.distancemetric.PhenotypeMetric;
|
||||
import eva2.server.go.operators.paramcontrol.ParamAdaption;
|
||||
import eva2.server.go.operators.paramcontrol.ParameterControlManager;
|
||||
import eva2.server.go.operators.postprocess.PostProcess;
|
||||
import eva2.server.go.populations.InterfaceSolutionSet;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.populations.SolutionSet;
|
||||
import eva2.server.go.problems.AbstractOptimizationProblem;
|
||||
import eva2.server.go.problems.F1Problem;
|
||||
import eva2.server.go.problems.Interface2DBorderProblem;
|
||||
import eva2.server.go.problems.InterfaceAdditionalPopulationInformer;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.server.go.problems.InterfaceProblemDouble;
|
||||
import eva2.tools.EVAERROR;
|
||||
import eva2.server.go.problems.*;
|
||||
import eva2.tools.SelectedTag;
|
||||
import eva2.tools.chart2d.DPoint;
|
||||
import eva2.tools.chart2d.DPointSet;
|
||||
import eva2.tools.math.Jama.Matrix;
|
||||
import eva2.tools.math.Mathematics;
|
||||
import eva2.tools.math.RNG;
|
||||
import eva2.tools.math.Jama.Matrix;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Vector;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -3,12 +3,7 @@ package eva2.server.go.strategies;
|
||||
import eva2.gui.PropertyDoubleArray;
|
||||
import eva2.server.go.InterfacePopulationChangedEventListener;
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.operators.archiving.ArchivingNSGAII;
|
||||
import eva2.server.go.operators.archiving.InformationRetrievalInserting;
|
||||
import eva2.server.go.operators.archiving.InterfaceArchiving;
|
||||
import eva2.server.go.operators.archiving.InterfaceInformationRetrieval;
|
||||
import eva2.server.go.operators.moso.MOSOWeightedFitness;
|
||||
import eva2.server.go.operators.selection.SelectMONonDominated;
|
||||
import eva2.server.go.populations.InterfaceSolutionSet;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.populations.SolutionSet;
|
||||
|
@ -3,20 +3,14 @@ package eva2.server.go.tools;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
import eva2.client.EvAClient;
|
||||
import eva2.gui.*;
|
||||
import eva2.tools.EVAHELP;
|
||||
|
||||
import java.beans.*;
|
||||
import java.io.File;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Hashtable;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.Vector;
|
||||
import java.awt.*;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.util.Hashtable;
|
||||
|
||||
/**
|
||||
* TODO
|
||||
|
@ -1,6 +1,5 @@
|
||||
package eva2.server.modules;
|
||||
|
||||
import eva2.gui.GenericObjectEditor;
|
||||
import eva2.tools.jproxy.MainAdapterClient;
|
||||
|
||||
|
||||
|
@ -1,19 +1,15 @@
|
||||
package eva2.server.modules;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import eva2.server.go.InterfaceGOParameters;
|
||||
import eva2.server.go.InterfacePopulationChangedEventListener;
|
||||
import eva2.server.go.InterfaceTerminator;
|
||||
import eva2.server.go.operators.selection.InterfaceSelection;
|
||||
import eva2.server.go.operators.terminators.EvaluationTerminator;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.F1Problem;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.server.go.strategies.EvolutionaryProgramming;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
import eva2.tools.Serializer;
|
||||
import java.io.Serializable;
|
||||
|
||||
/** The class gives access to all EP parameters for the EvA
|
||||
* top level GUI.
|
||||
|
@ -1,20 +1,14 @@
|
||||
package eva2.server.modules;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import eva2.server.go.InterfaceGOParameters;
|
||||
import eva2.server.go.InterfacePopulationChangedEventListener;
|
||||
import eva2.server.go.InterfaceTerminator;
|
||||
import eva2.server.go.operators.selection.InterfaceSelection;
|
||||
import eva2.server.go.operators.terminators.EvaluationTerminator;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.B1Problem;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.server.go.strategies.GeneticAlgorithm;
|
||||
import eva2.server.go.strategies.HillClimbing;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
import eva2.tools.Serializer;
|
||||
import java.io.Serializable;
|
||||
|
||||
/** The class gives access to all GA parameters for the EvA
|
||||
* top level GUI.
|
||||
|
@ -1,17 +1,13 @@
|
||||
package eva2.server.modules;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import eva2.server.go.InterfaceGOParameters;
|
||||
import eva2.server.go.InterfacePopulationChangedEventListener;
|
||||
import eva2.server.go.InterfaceTerminator;
|
||||
import eva2.server.go.operators.terminators.EvaluationTerminator;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.B1Problem;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.server.go.strategies.HillClimbing;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
import eva2.tools.Serializer;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/** The class gives access to all HC parameters for the EvA
|
||||
|
@ -1,19 +1,13 @@
|
||||
package eva2.server.modules;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import eva2.server.go.InterfaceGOParameters;
|
||||
import eva2.server.go.InterfacePopulationChangedEventListener;
|
||||
import eva2.server.go.InterfaceTerminator;
|
||||
import eva2.server.go.operators.terminators.EvaluationTerminator;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.B1Problem;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.server.go.strategies.GeneticAlgorithm;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
import eva2.server.go.strategies.MonteCarloSearch;
|
||||
import eva2.tools.Serializer;
|
||||
import java.io.Serializable;
|
||||
|
||||
/** The class gives access to all HC parameters for the EvA
|
||||
* top level GUI.
|
||||
|
@ -1,16 +1,7 @@
|
||||
package eva2.server.modules;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import eva2.gui.JParaPanel;
|
||||
import eva2.server.EvAServer;
|
||||
import eva2.server.go.InterfaceGOParameters;
|
||||
import eva2.server.stat.InterfaceStatisticsParameter;
|
||||
import eva2.server.stat.StatisticsWithGUI;
|
||||
import eva2.tools.jproxy.MainAdapterClient;
|
||||
import eva2.tools.jproxy.RMIProxyLocal;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/** This the MOEA module adapter necessary to access this implementation
|
||||
|
@ -1,23 +1,15 @@
|
||||
package eva2.server.modules;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import eva2.server.go.InterfaceGOParameters;
|
||||
import eva2.server.go.InterfacePopulationChangedEventListener;
|
||||
import eva2.server.go.InterfaceTerminator;
|
||||
import eva2.server.go.operators.archiving.InterfaceArchiving;
|
||||
import eva2.server.go.operators.archiving.InterfaceInformationRetrieval;
|
||||
import eva2.server.go.operators.terminators.EvaluationTerminator;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.F1Problem;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.server.go.problems.TF1Problem;
|
||||
import eva2.server.go.strategies.DifferentialEvolution;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
import eva2.server.go.strategies.MultiObjectiveEA;
|
||||
import eva2.tools.SelectedTag;
|
||||
import eva2.tools.Serializer;
|
||||
import java.io.Serializable;
|
||||
|
||||
/** The class gives access to all MOEA parameters for the EvA
|
||||
* top level GUI.
|
||||
|
@ -1,9 +1,6 @@
|
||||
package eva2.server.modules;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import eva2.server.go.InterfaceGOParameters;
|
||||
import eva2.server.go.InterfacePopulationChangedEventListener;
|
||||
import eva2.server.go.operators.selection.InterfaceSelection;
|
||||
import eva2.server.go.operators.terminators.EvaluationTerminator;
|
||||
import eva2.server.go.populations.Population;
|
||||
@ -11,6 +8,7 @@ import eva2.server.go.problems.B1Problem;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
import eva2.server.go.strategies.PopulationBasedIncrementalLearning;
|
||||
import eva2.tools.Serializer;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/** The class gives access to all PBIL parameters for the EvA
|
||||
|
@ -1,8 +1,5 @@
|
||||
package eva2.server.modules;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import eva2.server.go.InterfaceGOParameters;
|
||||
import eva2.server.go.InterfacePopulationChangedEventListener;
|
||||
import eva2.server.go.InterfaceTerminator;
|
||||
@ -10,11 +7,10 @@ import eva2.server.go.operators.terminators.EvaluationTerminator;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.B1Problem;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.server.go.strategies.GeneticAlgorithm;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
import eva2.server.go.strategies.MonteCarloSearch;
|
||||
import eva2.server.go.strategies.SimulatedAnnealing;
|
||||
import eva2.tools.Serializer;
|
||||
import java.io.Serializable;
|
||||
|
||||
/** The class gives access to all SA parameters for the EvA
|
||||
* top level GUI.
|
||||
|
@ -1,20 +1,15 @@
|
||||
package eva2.server.modules;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import eva2.server.go.InterfaceGOParameters;
|
||||
import eva2.server.go.InterfacePopulationChangedEventListener;
|
||||
import eva2.server.go.InterfaceTerminator;
|
||||
import eva2.server.go.operators.selection.InterfaceSelection;
|
||||
import eva2.server.go.operators.selection.replacement.InterfaceReplacement;
|
||||
import eva2.server.go.operators.terminators.EvaluationTerminator;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.problems.B1Problem;
|
||||
import eva2.server.go.problems.InterfaceOptimizationProblem;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
import eva2.server.go.strategies.SteadyStateGA;
|
||||
import eva2.tools.Serializer;
|
||||
import java.io.Serializable;
|
||||
|
||||
/** The class gives access to all SSGA parameters for the EvA
|
||||
* top level GUI.
|
||||
|
@ -1,17 +1,5 @@
|
||||
package eva2.server.stat;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.Serializable;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import eva2.gui.BeanInspector;
|
||||
import eva2.server.go.IndividualInterface;
|
||||
import eva2.server.go.PopulationInterface;
|
||||
@ -26,6 +14,12 @@ import eva2.tools.StringTools;
|
||||
import eva2.tools.ToolBox;
|
||||
import eva2.tools.math.Mathematics;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* An abstract class handling statistics. Most important stuff happens in startOptPerformed, stopOptPerformed
|
||||
* and createNextGenerationPerformed. Any measures (run based or multi-run based) are reset in startOptPerformed,
|
||||
|
@ -12,12 +12,7 @@ package eva2.tools;
|
||||
/*==========================================================================*
|
||||
* IMPORTS
|
||||
*==========================================================================*/
|
||||
import java.io.BufferedReader;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.*;
|
||||
import java.net.InetAddress;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Properties;
|
||||
@ -83,7 +78,7 @@ public class EVAHELP {
|
||||
try {
|
||||
in.readLine();
|
||||
} catch (Exception e) {
|
||||
System.out.println(""+e.getMessage());
|
||||
System.out.println(e.getMessage());
|
||||
}
|
||||
}
|
||||
/**
|
||||
@ -104,13 +99,16 @@ public class EVAHELP {
|
||||
return sBuf.toString();
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param longName The FQDN of a class
|
||||
* @return Returns the class Name without package.
|
||||
*/
|
||||
public static String cutClassName (String longName) {
|
||||
int dotPos = longName.lastIndexOf('.');
|
||||
if (dotPos != -1)
|
||||
longName = longName.substring(dotPos + 1);
|
||||
return longName; // now is shortName
|
||||
public static String cutClassName(final String longName) {
|
||||
final int dotPos = longName.lastIndexOf('.');
|
||||
String className = longName;
|
||||
if (dotPos != -1) {
|
||||
className = className.substring(dotPos + 1);
|
||||
}
|
||||
return className; // now is shortName
|
||||
}
|
||||
/**
|
||||
*
|
||||
@ -118,12 +116,12 @@ public class EVAHELP {
|
||||
public static void freeMemory() {
|
||||
Runtime currR = Runtime.getRuntime();
|
||||
long freeM = currR.freeMemory();
|
||||
freeM = (long)(freeM /1024);
|
||||
freeM = (long) (freeM / 1024);
|
||||
//System.out.println("Available memory : "+freeM+" Kbytes");
|
||||
System.gc();
|
||||
currR = Runtime.getRuntime();
|
||||
freeM = currR.freeMemory();
|
||||
freeM = (long)(freeM /1024);
|
||||
freeM = (long) (freeM / 1024);
|
||||
//System.out.println("after gc:Available memory : "+freeM+" bytes");
|
||||
}
|
||||
|
||||
@ -135,24 +133,28 @@ public class EVAHELP {
|
||||
* @param fileName
|
||||
*/
|
||||
public static void logString(String msg, String fileName) {
|
||||
File f = new File(fileName);
|
||||
final File logFile = new File(fileName);
|
||||
try {
|
||||
BufferedWriter bW = new BufferedWriter(new PrintWriter(new FileOutputStream(f, f.exists())));
|
||||
BufferedWriter bW = new BufferedWriter(
|
||||
new PrintWriter(new FileOutputStream(logFile, logFile.exists()))
|
||||
);
|
||||
bW.write(msg);
|
||||
bW.close();
|
||||
} catch (Exception ex) {
|
||||
} catch (IOException ex) {
|
||||
System.err.println("couldnt log to destination " + fileName + ": " + ex.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes the given file in the current directory. If the file does not exist,
|
||||
* nothing happens.
|
||||
* Deletes the given file in the current directory.
|
||||
* If the file does not exist nothing happens.
|
||||
*
|
||||
* @param fileName
|
||||
* @param fileName The name of the log file
|
||||
*/
|
||||
public static void clearLog(String fileName) {
|
||||
File f = new File(fileName);
|
||||
if (f.exists()) f.delete();
|
||||
File logFile = new File(fileName);
|
||||
if (logFile.exists()) {
|
||||
logFile.delete();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,15 +1,11 @@
|
||||
package eva2.tools;
|
||||
|
||||
import javax.swing.JDialog;
|
||||
import java.awt.HeadlessException;
|
||||
import javax.swing.JPasswordField;
|
||||
import javax.swing.JTextField;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.awt.Frame;
|
||||
import java.awt.GridBagConstraints;
|
||||
import java.awt.GridBagLayout;
|
||||
import java.awt.event.*;
|
||||
import java.util.ResourceBundle;
|
||||
import java.util.Locale;
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* A modal dialog that asks the user for a user name and password.
|
||||
|
@ -1,30 +1,10 @@
|
||||
package eva2.tools;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Title: EvA2
|
||||
* Description:
|
||||
* Copyright: Copyright (c) 2003
|
||||
* Company: University of Tuebingen, Computer Architecture
|
||||
* @author Holger Ulmer, Felix Streichert, Hannes Planatscher
|
||||
* @version: $Revision: 255 $
|
||||
* $Date: 2007-11-15 14:58:12 +0100 (Thu, 15 Nov 2007) $
|
||||
* $Author: mkron $
|
||||
*/
|
||||
|
||||
/*==========================================================================*
|
||||
* IMPORTS
|
||||
*==========================================================================*/
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Proxy;
|
||||
|
||||
import java.net.InetAddress;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
||||
/*==========================================================================*
|
||||
* CLASS DECLARATION
|
||||
|
@ -9,18 +9,10 @@ package eva2.tools.jproxy;
|
||||
* $Date: 2004/04/28 07:50:33 $
|
||||
* $Author: ulmerh $
|
||||
*/
|
||||
/*==========================================================================*
|
||||
* IMPORTS
|
||||
*==========================================================================*/
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.io.Serializable;
|
||||
|
||||
/*
|
||||
* ==========================================================================*
|
||||
* CLASS DECLARATION
|
||||
* ==========================================================================
|
||||
*/
|
||||
public class ThreadWrapper extends ArrayList {
|
||||
private int m_counter = 0;
|
||||
private ArrayList m_ThreadContainer = new ArrayList();
|
||||
|
@ -279,12 +279,10 @@ public class BayNet {
|
||||
toCalculate.addAll(getChildren(this.nodes[next]));
|
||||
int[] parId = calculateSortedParentIds(next);
|
||||
int prob = 0;
|
||||
int cnt = 0;
|
||||
for(int j=parId.length-1; j>=0; j--){
|
||||
if(data.get(parId[j])){
|
||||
prob += (int) Math.pow(2, j);
|
||||
}
|
||||
cnt++;
|
||||
}
|
||||
return this.nodes[next].getProbability(prob);
|
||||
}
|
||||
|
@ -1,7 +1,5 @@
|
||||
package eva2.tools.math;
|
||||
|
||||
import java.lang.Math;
|
||||
import java.lang.ArithmeticException;
|
||||
|
||||
/*
|
||||
**************************************************************************
|
||||
|
@ -1,3 +1,4 @@
|
||||
package eva2.tools.math;
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Filename: $RCSfile: StatisticUtils.java,v $
|
||||
// Purpose: Interface definition for calling external programs from JOELib.
|
||||
@ -11,15 +12,10 @@
|
||||
// Copyright (c) Dept. Computer Architecture, University of Tuebingen, Germany
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
package eva2.tools.math;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
||||
import eva2.gui.BeanInspector;
|
||||
import eva2.server.go.problems.AbstractProblemDouble;
|
||||
import eva2.tools.math.Jama.Matrix;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* Statistic utils.
|
||||
|
Loading…
x
Reference in New Issue
Block a user