Rename methods for clarity.
This commit is contained in:
parent
69a78d5757
commit
40eee88eea
@ -612,7 +612,7 @@
|
||||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
|
||||
<!--
|
||||
should not be necessary any more: each revision gets its own directory
|
||||
<target name="backupWWW" depends="init">
|
||||
<target name="backupWWW" depends="initialize">
|
||||
<mkdir dir="${web.download.base}/old-${DSTAMP}-${TSTAMP}" />
|
||||
<copy todir="${web.download.base}/old-${DSTAMP}-${TSTAMP}">
|
||||
<fileset dir="${web.download.versioned}">
|
||||
|
@ -111,7 +111,7 @@ public class OptimizerFactory {
|
||||
de.setCrossoverRate(CR);
|
||||
de.setLambda(lambda);
|
||||
de.addPopulationChangedEventListener(listener);
|
||||
de.init();
|
||||
de.initialize();
|
||||
|
||||
if (listener != null) {
|
||||
listener.registerPopulationStateChanged(de.getPopulation(), "");
|
||||
@ -190,7 +190,7 @@ public class OptimizerFactory {
|
||||
// theES.setPartnerSelection(selection);
|
||||
theES.setEnvironmentSelection(selection);
|
||||
theES.setProblem(problem);
|
||||
theES.init();
|
||||
theES.initialize();
|
||||
|
||||
if (listener != null) {
|
||||
listener.registerPopulationStateChanged(theES.getPopulation(), "");
|
||||
@ -228,7 +228,7 @@ public class OptimizerFactory {
|
||||
ga.setParentSelection(select);
|
||||
ga.setPartnerSelection(select);
|
||||
ga.addPopulationChangedEventListener(listener);
|
||||
ga.init();
|
||||
ga.initialize();
|
||||
|
||||
if (listener != null) {
|
||||
listener.registerPopulationStateChanged(ga.getPopulation(), "");
|
||||
@ -360,7 +360,7 @@ public class OptimizerFactory {
|
||||
hc.getPopulation().setTargetSize(popSize);
|
||||
hc.addPopulationChangedEventListener(listener);
|
||||
hc.setProblem(problem);
|
||||
hc.init();
|
||||
hc.initialize();
|
||||
|
||||
if (listener != null) {
|
||||
listener.registerPopulationStateChanged(hc.getPopulation(), "");
|
||||
@ -389,7 +389,7 @@ public class OptimizerFactory {
|
||||
mc.getPopulation().setTargetSize(popsize);
|
||||
mc.addPopulationChangedEventListener(listener);
|
||||
mc.setProblem(problem);
|
||||
mc.init();
|
||||
mc.initialize();
|
||||
|
||||
if (listener != null) {
|
||||
listener.registerPopulationStateChanged(mc.getPopulation(), "");
|
||||
@ -432,7 +432,7 @@ public class OptimizerFactory {
|
||||
pso.setTopology(selectedTopology);
|
||||
pso.setTopologyRange(topologyRange);
|
||||
pso.addPopulationChangedEventListener(listener);
|
||||
pso.init();
|
||||
pso.initialize();
|
||||
|
||||
if (listener != null) {
|
||||
listener.registerPopulationStateChanged(pso.getPopulation(), "");
|
||||
@ -469,7 +469,7 @@ public class OptimizerFactory {
|
||||
sa.setProblem(problem);
|
||||
sa.getPopulation().setTargetSize(popsize);
|
||||
sa.addPopulationChangedEventListener(listener);
|
||||
sa.init();
|
||||
sa.initialize();
|
||||
|
||||
if (listener != null) {
|
||||
listener.registerPopulationStateChanged(sa.getPopulation(), "");
|
||||
@ -479,7 +479,7 @@ public class OptimizerFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
* Calling init here makes problems when using the Matlab interface.
|
||||
* Calling initialize here makes problems when using the Matlab interface.
|
||||
*
|
||||
* @param learningRate
|
||||
* @param mutateSigma
|
||||
|
@ -39,7 +39,7 @@ public abstract class AbstractListSelectionEditor extends JPanel implements Prop
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the CustomEditor Panel
|
||||
* This method will initialize the CustomEditor Panel
|
||||
*/
|
||||
private void initCustomEditor() {
|
||||
this.customEditor = new JPanel();
|
||||
|
@ -80,7 +80,7 @@ public class GenericDoubleArrayEditor extends JPanel implements PropertyEditor {
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the CustomEditor Panel
|
||||
* This method will initialize the CustomEditor Panel
|
||||
*/
|
||||
private void initCustomEditor() {
|
||||
this.customEditor = new JPanel();
|
||||
@ -88,12 +88,12 @@ public class GenericDoubleArrayEditor extends JPanel implements PropertyEditor {
|
||||
|
||||
this.customEditor.add(new JLabel("Current Double Array:"), BorderLayout.NORTH);
|
||||
|
||||
// init data panel
|
||||
// initialize data panel
|
||||
this.dataPanel = new JPanel();
|
||||
this.updateDataPanel();
|
||||
this.customEditor.add(this.dataPanel, BorderLayout.CENTER);
|
||||
|
||||
// init button panel
|
||||
// initialize button panel
|
||||
this.buttonPanel = new JPanel();
|
||||
this.addButton = new JButton("Add");
|
||||
this.addButton.addActionListener(this.addAction);
|
||||
|
@ -44,7 +44,7 @@ public class GenericEpsilonConstraintEditor extends JPanel implements PropertyEd
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the CustomEditor Panel
|
||||
* This method will initialize the CustomEditor Panel
|
||||
*/
|
||||
private void initCustomEditor() {
|
||||
this.customEditor = new JPanel();
|
||||
@ -62,12 +62,12 @@ public class GenericEpsilonConstraintEditor extends JPanel implements PropertyEd
|
||||
this.objectiveComboBox.addItemListener(this.objectiveAction);
|
||||
this.customEditor.add(this.targetPanel, BorderLayout.NORTH);
|
||||
|
||||
// init data panel
|
||||
// initialize data panel
|
||||
this.dataPanel = new JPanel();
|
||||
this.updateDataPanel();
|
||||
this.customEditor.add(this.dataPanel, BorderLayout.CENTER);
|
||||
|
||||
// init button panel
|
||||
// initialize button panel
|
||||
this.buttonPanel = new JPanel();
|
||||
this.okButton = new JButton("OK");
|
||||
this.okButton.setEnabled(true);
|
||||
|
@ -40,7 +40,7 @@ public class GenericEpsilonThresholdEditor extends JPanel implements PropertyEdi
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the CustomEditor Panel
|
||||
* This method will initialize the CustomEditor Panel
|
||||
*/
|
||||
private void initCustomEditor() {
|
||||
this.customEditor = new JPanel();
|
||||
@ -58,12 +58,12 @@ public class GenericEpsilonThresholdEditor extends JPanel implements PropertyEdi
|
||||
this.objectiveComboBox.addItemListener(this.objectiveAction);
|
||||
this.customEditor.add(this.targetPanel, BorderLayout.NORTH);
|
||||
|
||||
// init data panel
|
||||
// initialize data panel
|
||||
this.dataPanel = new JPanel();
|
||||
this.updateDataPanel();
|
||||
this.customEditor.add(this.dataPanel, BorderLayout.CENTER);
|
||||
|
||||
// init button panel
|
||||
// initialize button panel
|
||||
this.buttonPanel = new JPanel();
|
||||
this.okButton = new JButton("OK");
|
||||
this.okButton.setEnabled(true);
|
||||
|
@ -42,7 +42,7 @@ public class GenericIntArrayEditor extends JPanel implements PropertyEditor {
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the CustomEditor Panel
|
||||
* This method will initialize the CustomEditor Panel
|
||||
*/
|
||||
private void initCustomEditor() {
|
||||
this.customEditor = new JPanel();
|
||||
@ -50,12 +50,12 @@ public class GenericIntArrayEditor extends JPanel implements PropertyEditor {
|
||||
|
||||
this.customEditor.add(new JLabel("Current Int Array:"), BorderLayout.NORTH);
|
||||
|
||||
// init data panel
|
||||
// initialize data panel
|
||||
this.dataPanel = new JPanel();
|
||||
this.updateDataPanel();
|
||||
this.customEditor.add(this.dataPanel, BorderLayout.CENTER);
|
||||
|
||||
// init button panel
|
||||
// initialize button panel
|
||||
this.buttonPanel = new JPanel();
|
||||
this.okButton = new JButton("OK");
|
||||
this.okButton.setEnabled(true);
|
||||
|
@ -54,7 +54,7 @@ public class GenericOptimizationObjectivesEditor extends JPanel implements Prope
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the CustomEditor Panel
|
||||
* This method will initialize the CustomEditor Panel
|
||||
*/
|
||||
private void initCustomEditor() {
|
||||
self = this;
|
||||
@ -62,7 +62,7 @@ public class GenericOptimizationObjectivesEditor extends JPanel implements Prope
|
||||
this.editor.setPreferredSize(new Dimension(400, 200));
|
||||
this.editor.setMinimumSize(new Dimension(400, 200));
|
||||
|
||||
// init the editors
|
||||
// initialize the editors
|
||||
InterfaceOptimizationObjective[] list = this.optimizationObjectives.getSelectedTargets();
|
||||
this.editors = new GeneralOptimizationEditorProperty[list.length];
|
||||
for (int i = 0; i < list.length; i++) {
|
||||
|
@ -55,7 +55,7 @@ public class GenericOptimizationObjectivesWithParamEditor extends JPanel impleme
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the CustomEditor Panel
|
||||
* This method will initialize the CustomEditor Panel
|
||||
*/
|
||||
private void initCustomEditor() {
|
||||
self = this;
|
||||
@ -63,7 +63,7 @@ public class GenericOptimizationObjectivesWithParamEditor extends JPanel impleme
|
||||
this.editor.setPreferredSize(new Dimension(450, 200));
|
||||
this.editor.setMinimumSize(new Dimension(450, 200));
|
||||
|
||||
// init the editors
|
||||
// initialize the editors
|
||||
InterfaceOptimizationObjective[] list = this.optimizationObjectivesWithWeights.getSelectedTargets();
|
||||
this.editors = new GeneralOptimizationEditorProperty[list.length];
|
||||
for (int i = 0; i < list.length; i++) {
|
||||
|
@ -43,7 +43,7 @@ public class GenericWeigthedLPTchebycheffEditor extends JPanel implements Proper
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the CustomEditor Panel
|
||||
* This method will initialize the CustomEditor Panel
|
||||
*/
|
||||
private void initCustomEditor() {
|
||||
this.customEditor = new JPanel();
|
||||
@ -58,12 +58,12 @@ public class GenericWeigthedLPTchebycheffEditor extends JPanel implements Proper
|
||||
this.pvalueTextField.addKeyListener(this.readDoubleAction);
|
||||
this.customEditor.add(this.targetPanel, BorderLayout.NORTH);
|
||||
|
||||
// init data panel
|
||||
// initialize data panel
|
||||
this.dataPanel = new JPanel();
|
||||
this.updateDataPanel();
|
||||
this.customEditor.add(this.dataPanel, BorderLayout.CENTER);
|
||||
|
||||
// init button panel
|
||||
// initialize button panel
|
||||
this.buttonPanel = new JPanel();
|
||||
this.okButton = new JButton("OK");
|
||||
this.okButton.setEnabled(true);
|
||||
|
@ -646,7 +646,7 @@ public class FunctionArea extends DArea implements Serializable {
|
||||
maxSize = pointSetContainer.get(i).getConnectedPointSet().getSize();
|
||||
}
|
||||
}
|
||||
if (maxSize > 0) { // if there is any data, init string array and set x
|
||||
if (maxSize > 0) { // if there is any data, initialize string array and set x
|
||||
// value column
|
||||
s = new String[maxSize + 1];
|
||||
for (int j = 0; j <= maxSize; j++) {
|
||||
|
@ -40,7 +40,7 @@ public class MOCCOStandalone implements InterfaceStandaloneOptimization, Interfa
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the main MOCCO GUI
|
||||
* This method will initialize the main MOCCO GUI
|
||||
* frame
|
||||
*/
|
||||
public void initMOCCOFrame() {
|
||||
@ -56,7 +56,7 @@ public class MOCCOStandalone implements InterfaceStandaloneOptimization, Interfa
|
||||
System.exit(0);
|
||||
}
|
||||
});
|
||||
// init basic panel structure
|
||||
// initialize basic panel structure
|
||||
this.mainPanel = new JPanel();
|
||||
this.parameterPanel = new JPanel();
|
||||
this.parameterPanel.setPreferredSize(new Dimension(500, 300));
|
||||
@ -467,7 +467,7 @@ public class MOCCOStandalone implements InterfaceStandaloneOptimization, Interfa
|
||||
this.state.currentProblem.evaluate(this.state.optimizer.getPopulation());
|
||||
this.state.optimizer.getPopulation().setFunctionCalls(0);
|
||||
if (this.state.optimizer.getPopulation().size() == 0) {
|
||||
this.state.optimizer.init();
|
||||
this.state.optimizer.initialize();
|
||||
}
|
||||
this.state.optimizer.addPopulationChangedEventListener(this);
|
||||
worker = new SwingWorker() {
|
||||
|
@ -93,7 +93,7 @@ public class StandaloneOptimization implements InterfaceStandaloneOptimization,
|
||||
*/
|
||||
public void initFrame() {
|
||||
this.progressBar = new JProgressBar();
|
||||
// init the main frame
|
||||
// initialize the main frame
|
||||
this.mainFrame = new JFrame();
|
||||
this.mainFrame.setTitle("Genetic Optimizing");
|
||||
this.mainFrame.setSize(500, 400);
|
||||
@ -177,7 +177,7 @@ public class StandaloneOptimization implements InterfaceStandaloneOptimization,
|
||||
}
|
||||
|
||||
/**
|
||||
* This action listener, called by the "Run/Restart" button, will init the
|
||||
* This action listener, called by the "Run/Restart" button, will initialize the
|
||||
* problem and start the computation.
|
||||
*/
|
||||
ActionListener runListener = new ActionListener() {
|
||||
@ -364,13 +364,13 @@ public class StandaloneOptimization implements InterfaceStandaloneOptimization,
|
||||
this.outputFile = null;
|
||||
}
|
||||
|
||||
// init problem
|
||||
// initialize problem
|
||||
this.optimizationParameters.getProblem().initializeProblem();
|
||||
this.optimizationParameters.getOptimizer().setProblem(this.optimizationParameters.getProblem());
|
||||
// int optimizer and population
|
||||
//this.optimizationParameters.getOptimizer().init();
|
||||
//this.optimizationParameters.getOptimizer().initialize();
|
||||
|
||||
// init the log data
|
||||
// initialize the log data
|
||||
ArrayList tmpMultiRun = new ArrayList();
|
||||
this.performedRuns.add(tmpMultiRun);
|
||||
|
||||
@ -397,12 +397,12 @@ public class StandaloneOptimization implements InterfaceStandaloneOptimization,
|
||||
this.optimizationParameters.getOptimizer().setPopulation(this.backupPopulation);
|
||||
this.optimizationParameters.getOptimizer().getProblem().evaluate(this.optimizationParameters.getOptimizer().getPopulation());
|
||||
this.optimizationParameters.getOptimizer().getProblem().evaluate(this.optimizationParameters.getOptimizer().getPopulation().getArchive());
|
||||
this.optimizationParameters.getOptimizer().initByPopulation(this.backupPopulation, false);
|
||||
this.optimizationParameters.getOptimizer().initializeByPopulation(this.backupPopulation, false);
|
||||
this.optimizationParameters.getOptimizer().getPopulation().setFunctionCalls(0);
|
||||
this.optimizationParameters.addPopulationChangedEventListener(this);
|
||||
} else {
|
||||
this.recentFunctionCalls = 0;
|
||||
this.optimizationParameters.getOptimizer().init();
|
||||
this.optimizationParameters.getOptimizer().initialize();
|
||||
}
|
||||
//while (this.optimizationParameters.getOptimizer().getPopulation().getFunctionCalls() < this.functionCalls) {
|
||||
while (!this.optimizationParameters.getTerminator().isTerminated(this.optimizationParameters.getOptimizer().getPopulation())) {
|
||||
|
@ -76,7 +76,7 @@ public abstract class AbstractEAIndividual implements IndividualInterface, java.
|
||||
public abstract Object clone();
|
||||
|
||||
/**
|
||||
* Set the init/mutation/crossover operator and probabilities to the given
|
||||
* Set the initialize/mutation/crossover operator and probabilities to the given
|
||||
* values.
|
||||
*
|
||||
* @param initOp
|
||||
@ -107,7 +107,7 @@ public abstract class AbstractEAIndividual implements IndividualInterface, java.
|
||||
}
|
||||
|
||||
/**
|
||||
* Clone and init the mutation/crossover operator for the individual and
|
||||
* Clone and initialize the mutation/crossover operator for the individual and
|
||||
* initialize the operators and probabilities to the given values.
|
||||
*
|
||||
* @param mutOp
|
||||
@ -313,7 +313,7 @@ public abstract class AbstractEAIndividual implements IndividualInterface, java.
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
|
@ -206,7 +206,7 @@ public class ESIndividualBinaryData extends AbstractEAIndividual implements Inte
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
|
@ -255,7 +255,7 @@ public class ESIndividualDoubleData extends AbstractEAIndividual implements Inte
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
|
@ -226,7 +226,7 @@ public class ESIndividualIntegerData extends AbstractEAIndividual implements Int
|
||||
*/
|
||||
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
|
@ -246,7 +246,7 @@ public class ESIndividualPermutationData extends AbstractEAIndividual implements
|
||||
*/
|
||||
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
|
@ -91,7 +91,7 @@ public class GAESIndividualBinaryDoubleData extends AbstractEAIndividual impleme
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
|
@ -111,7 +111,7 @@ public class GAIndividualBinaryData extends AbstractEAIndividual implements Inte
|
||||
* AbstractEAIndividual methods
|
||||
*/
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
|
@ -238,7 +238,7 @@ public class GAIndividualDoubleData extends AbstractEAIndividual implements Inte
|
||||
*/
|
||||
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
|
@ -272,7 +272,7 @@ public class GAIndividualIntegerData extends AbstractEAIndividual implements Int
|
||||
* AbstractEAIndividual methods
|
||||
*/
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
|
@ -88,7 +88,7 @@ public class GAPIndividualProgramData extends AbstractEAIndividual implements In
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
|
@ -585,7 +585,7 @@ public class GEIndividualProgramData extends AbstractEAIndividual implements Int
|
||||
* InterfaceEAIndividual methods
|
||||
*/
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
|
@ -230,7 +230,7 @@ public class GIIndividualIntegerData extends AbstractEAIndividual implements Int
|
||||
* AbstractEAIndividual methods
|
||||
*/
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
|
@ -88,7 +88,7 @@ public class GIOBGAIndividualIntegerPermutationData extends AbstractEAIndividual
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
|
@ -231,7 +231,7 @@ public class GPIndividualProgramData extends AbstractEAIndividual implements Int
|
||||
* InterfaceEAIndividual methods
|
||||
*/
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
@ -393,9 +393,9 @@ public class GPIndividualProgramData extends AbstractEAIndividual implements Int
|
||||
}
|
||||
|
||||
/**
|
||||
* This method set/get the init Full Grow Ratio.
|
||||
* This method set/get the initialize Full Grow Ratio.
|
||||
*
|
||||
* @param b The new init Full Grow Ratio of the GP Tree.
|
||||
* @param b The new initialize Full Grow Ratio of the GP Tree.
|
||||
*/
|
||||
public void setInitFullGrowRatio(double b) {
|
||||
if (b < 0) {
|
||||
@ -412,13 +412,13 @@ public class GPIndividualProgramData extends AbstractEAIndividual implements Int
|
||||
}
|
||||
|
||||
public String initFullGrowRatioTipText() {
|
||||
return "The ratio between the full and the grow init methods (1 uses only full initializing).";
|
||||
return "The ratio between the full and the grow initialize methods (1 uses only full initializing).";
|
||||
}
|
||||
|
||||
/**
|
||||
* This method set/get the init depth.
|
||||
* This method set/get the initialize depth.
|
||||
*
|
||||
* @param b The new init Depth of the GP Tree.
|
||||
* @param b The new initialize Depth of the GP Tree.
|
||||
*/
|
||||
public void setInitDepth(int b) {
|
||||
if (b > this.maxAllowedDepth) {
|
||||
|
@ -99,7 +99,7 @@ public class OBGAIndividualPermutationData extends AbstractEAIndividual implemen
|
||||
*/
|
||||
|
||||
/**
|
||||
* This method will init the individual with a given value for the
|
||||
* This method will initialize the individual with a given value for the
|
||||
* phenotype.
|
||||
*
|
||||
* @param obj The initial value for the phenotype
|
||||
|
@ -501,14 +501,14 @@ public abstract class AbstractGPNode implements InterfaceProgram, java.io.Serial
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will simply init the array of nodes
|
||||
* This method will simply initialize the array of nodes
|
||||
*/
|
||||
public void initNodeArray() {
|
||||
this.nodes = new AbstractGPNode[this.getArity()];
|
||||
}
|
||||
|
||||
/**
|
||||
* This method performs a full init but with max depth
|
||||
* This method performs a full initialize but with max depth
|
||||
*
|
||||
* @param area The allowed function area.
|
||||
* @param depth The absolute target depth.
|
||||
@ -528,7 +528,7 @@ public abstract class AbstractGPNode implements InterfaceProgram, java.io.Serial
|
||||
}
|
||||
|
||||
/**
|
||||
* This method performs a grow init but with max depth
|
||||
* This method performs a grow initialize but with max depth
|
||||
*
|
||||
* @param area The allowed function area.
|
||||
* @param depth The absolute target depth.
|
||||
|
@ -6,7 +6,7 @@ package eva2.optimization.mocco;
|
||||
public interface InterfaceProcessElement {
|
||||
|
||||
/**
|
||||
* This method will call the init method and will go to stall
|
||||
* This method will call the initialize method and will go to stall
|
||||
*/
|
||||
public void initProcessElementParametrization();
|
||||
|
||||
|
@ -31,7 +31,7 @@ public class MOCCOChooseMOStrategy extends MOCCOPhase implements InterfaceProces
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will call the init method and will go to stall
|
||||
* This method will call the initialize method and will go to stall
|
||||
*/
|
||||
@Override
|
||||
public void initProcessElementParametrization() {
|
||||
|
@ -25,7 +25,7 @@ public class MOCCOChooseReferencePoint extends MOCCOPhase implements InterfacePr
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will call the init method and will go to stall
|
||||
* This method will call the initialize method and will go to stall
|
||||
*/
|
||||
@Override
|
||||
public void initProcessElementParametrization() {
|
||||
|
@ -26,7 +26,7 @@ public class MOCCOChooseReferenceSolution extends MOCCOPhase implements Interfac
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will call the init method and will go to stall
|
||||
* This method will call the initialize method and will go to stall
|
||||
*/
|
||||
@Override
|
||||
public void initProcessElementParametrization() {
|
||||
|
@ -19,7 +19,7 @@ public class MOCCOInitialPopulationSize extends MOCCOPhase implements InterfaceP
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will call the init method and will go to stall
|
||||
* This method will call the initialize method and will go to stall
|
||||
*/
|
||||
@Override
|
||||
public void initProcessElementParametrization() {
|
||||
|
@ -42,7 +42,7 @@ public class MOCCOParameterizeGDF extends MOCCOPhase implements InterfaceProcess
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will call the init method and will go to stall
|
||||
* This method will call the initialize method and will go to stall
|
||||
*/
|
||||
@Override
|
||||
public void initProcessElementParametrization() {
|
||||
|
@ -28,7 +28,7 @@ public class MOCCOParameterizeMO extends MOCCOPhase implements InterfaceProcessE
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will call the init method and will go to stall
|
||||
* This method will call the initialize method and will go to stall
|
||||
*/
|
||||
@Override
|
||||
public void initProcessElementParametrization() {
|
||||
@ -150,9 +150,9 @@ public class MOCCOParameterizeMO extends MOCCOPhase implements InterfaceProcessE
|
||||
}
|
||||
if (mocco.state.populationHistory.length > 0) {
|
||||
pop = mocco.state.getSelectedPopulations();
|
||||
mocco.state.optimizer.initByPopulation(pop, false);
|
||||
mocco.state.optimizer.initializeByPopulation(pop, false);
|
||||
if (pop.size() == 0) {
|
||||
mocco.state.optimizer.init();
|
||||
mocco.state.optimizer.initialize();
|
||||
}
|
||||
}
|
||||
hasFinished = true;
|
||||
|
@ -41,7 +41,7 @@ public class MOCCOParameterizeRefPoint extends MOCCOPhase implements InterfacePr
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will call the init method and will go to stall
|
||||
* This method will call the initialize method and will go to stall
|
||||
*/
|
||||
@Override
|
||||
public void initProcessElementParametrization() {
|
||||
@ -250,7 +250,7 @@ public class MOCCOParameterizeRefPoint extends MOCCOPhase implements InterfacePr
|
||||
// }
|
||||
mocco.state.optimizer = islandModelEA;
|
||||
mocco.state.optimizer.setProblem(mocco.state.currentProblem);
|
||||
islandModelEA.init();
|
||||
islandModelEA.initialize();
|
||||
double[] tmpD;
|
||||
MOSOLpMetric[] tmpLPs = new MOSOLpMetric[perturbations];
|
||||
for (int i = 0; i < perturbations; i++) {
|
||||
|
@ -31,7 +31,7 @@ public class MOCCOParameterizeSO extends MOCCOPhase implements InterfaceProcessE
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will call the init method and will go to stall
|
||||
* This method will call the initialize method and will go to stall
|
||||
*/
|
||||
@Override
|
||||
public void initProcessElementParametrization() {
|
||||
|
@ -39,7 +39,7 @@ public class MOCCOParameterizeSTEP extends MOCCOPhase implements InterfaceProces
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will call the init method and will go to stall
|
||||
* This method will call the initialize method and will go to stall
|
||||
*/
|
||||
@Override
|
||||
public void initProcessElementParametrization() {
|
||||
|
@ -36,7 +36,7 @@ public class MOCCOParameterizeTchebycheff extends MOCCOPhase implements Interfac
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will call the init method and will go to stall
|
||||
* This method will call the initialize method and will go to stall
|
||||
*/
|
||||
@Override
|
||||
public void initProcessElementParametrization() {
|
||||
@ -242,7 +242,7 @@ public class MOCCOParameterizeTchebycheff extends MOCCOPhase implements Interfac
|
||||
// }
|
||||
mocco.state.optimizer = islandModelEA;
|
||||
mocco.state.optimizer.setProblem(mocco.state.currentProblem);
|
||||
islandModelEA.init();
|
||||
islandModelEA.initialize();
|
||||
double[] tmpD;
|
||||
double sum = 0, l = 0, u = 1;
|
||||
MOSOWeightedLPTchebycheff[] tmpLPs = new MOSOWeightedLPTchebycheff[perturbations];
|
||||
|
@ -20,7 +20,7 @@ public abstract class MOCCOPhase implements InterfaceProcessElement {
|
||||
public volatile boolean hasFinished = false;
|
||||
|
||||
/**
|
||||
* This method will call the init method and will go to stall
|
||||
* This method will call the initialize method and will go to stall
|
||||
*/
|
||||
@Override
|
||||
public abstract void initProcessElementParametrization();
|
||||
|
@ -26,7 +26,7 @@ public class MOCCOProblemInitialization extends MOCCOPhase implements InterfaceP
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will call the init method and will go to stall
|
||||
* This method will call the initialize method and will go to stall
|
||||
*/
|
||||
@Override
|
||||
public void initProcessElementParametrization() {
|
||||
|
@ -27,7 +27,7 @@ public class MOCCOProblemRedefinition extends MOCCOPhase implements InterfacePro
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will call the init method and will go to stall
|
||||
* This method will call the initialize method and will go to stall
|
||||
*/
|
||||
@Override
|
||||
public void initProcessElementParametrization() {
|
||||
|
@ -242,7 +242,7 @@ public class Processor extends Thread implements InterfaceProcessor, InterfacePo
|
||||
this.optimizationParameters.getTerminator().init(this.optimizationParameters.getProblem());
|
||||
maybeInitParamCtrl(optimizationParameters);
|
||||
if (this.createInitialPopulations) {
|
||||
this.optimizationParameters.getOptimizer().init();
|
||||
this.optimizationParameters.getOptimizer().initialize();
|
||||
}
|
||||
|
||||
if (optimizationStateListener != null) {
|
||||
@ -321,8 +321,8 @@ public class Processor extends Thread implements InterfaceProcessor, InterfacePo
|
||||
}
|
||||
|
||||
private void maybeInitParamCtrl(InterfaceOptimizationParameters goParams) {
|
||||
iterateParamCtrl(goParams.getOptimizer(), "init", new Object[]{goParams.getOptimizer(), goParams.getOptimizer().getPopulation()});
|
||||
iterateParamCtrl(goParams.getProblem(), "init", new Object[]{goParams.getProblem(), goParams.getOptimizer().getPopulation()});
|
||||
iterateParamCtrl(goParams.getOptimizer(), "initialize", new Object[]{goParams.getOptimizer(), goParams.getOptimizer().getPopulation()});
|
||||
iterateParamCtrl(goParams.getProblem(), "initialize", new Object[]{goParams.getProblem(), goParams.getOptimizer().getPopulation()});
|
||||
}
|
||||
|
||||
private void maybeFinishParamCtrl(InterfaceOptimizationParameters goParams) {
|
||||
|
@ -55,7 +55,7 @@ public class ArchivingNSGAII extends ArchivingNSGA implements java.io.Serializab
|
||||
tmpPop = null;
|
||||
// this.calculateCrowdingDistance(fronts);
|
||||
|
||||
// Now init the new archive
|
||||
// Now initialize the new archive
|
||||
Population archive = new Population();
|
||||
archive.setTargetSize(pop.getArchive().getTargetSize());
|
||||
|
||||
|
@ -61,7 +61,7 @@ public class ArchivingSPEAII extends AbstractArchiving implements java.io.Serial
|
||||
// ((AbstractEAIndividual)tmpPop.get(i)).SetData("kthDistance", new Double(kthDistance[i]));
|
||||
// }
|
||||
|
||||
// Now init the new archive
|
||||
// Now initialize the new archive
|
||||
Population archive = new Population();
|
||||
archive.setTargetSize(pop.getArchive().getTargetSize());
|
||||
|
||||
|
@ -84,7 +84,7 @@ public class ClassificationSelfOrganizingMaps implements java.io.Serializable, I
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the classificator
|
||||
* This method will initialize the classificator
|
||||
*
|
||||
* @param space The double[n][d] space
|
||||
* @param type The classes [0,1,..]
|
||||
@ -152,7 +152,7 @@ public class ClassificationSelfOrganizingMaps implements java.io.Serializable, I
|
||||
*/
|
||||
@Override
|
||||
public void train(double[][] space, int[] type) {
|
||||
// first init the assignment to zero
|
||||
// first initialize the assignment to zero
|
||||
for (int i = 0; i < this.SOM.length; i++) {
|
||||
for (int j = 0; j < this.SOM[0].length; j++) {
|
||||
for (int k = 0; k < this.SOMClass[0][0].length; k++) {
|
||||
|
@ -18,7 +18,7 @@ public interface InterfaceClassification {
|
||||
public Object clone();
|
||||
|
||||
/**
|
||||
* This method will init the classificator
|
||||
* This method will initialize the classificator
|
||||
*
|
||||
* @param space The double[n][d] space*
|
||||
* @param type The classes [0,1,..]
|
||||
|
@ -96,7 +96,7 @@ public class CrossoverEAMixer implements InterfaceCrossover, InterfaceEvaluating
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the crossover operator
|
||||
* This method allows you to initialize the crossover operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -226,7 +226,7 @@ public class CrossoverESPCX implements InterfaceCrossover, java.io.Serializable
|
||||
int n = 2;
|
||||
|
||||
//RNG.setseed(1);
|
||||
// init individual
|
||||
// initialize individual
|
||||
indy1 = new ESIndividualDoubleData();
|
||||
double[][] range = new double[n][2];
|
||||
for (int i = 0; i < range.length; i++) {
|
||||
@ -235,18 +235,18 @@ public class CrossoverESPCX implements InterfaceCrossover, java.io.Serializable
|
||||
}
|
||||
indy1.setDoubleDataLength(n);
|
||||
indy1.setDoubleRange(range);
|
||||
// init values
|
||||
// initialize values
|
||||
indy2 = (ESIndividualDoubleData) indy1.clone();
|
||||
indy3 = (ESIndividualDoubleData) indy1.clone();
|
||||
indy4 = (ESIndividualDoubleData) indy1.clone();
|
||||
if (false) {
|
||||
// random init
|
||||
// random initialize
|
||||
indy1.defaultInit(prob);
|
||||
indy2.defaultInit(prob);
|
||||
indy3.defaultInit(prob);
|
||||
indy4.defaultInit(prob);
|
||||
} else {
|
||||
// value init
|
||||
// value initialize
|
||||
tmpD[0] = 0;
|
||||
tmpD[1] = 1;
|
||||
indy1.initByValue(tmpD, prob);
|
||||
|
@ -132,7 +132,7 @@ public class CrossoverESSBX implements InterfaceCrossover, java.io.Serializable
|
||||
ESIndividualDoubleData indy1, indy2, indy3;
|
||||
F1Problem prob = new F1Problem();
|
||||
|
||||
// init individual
|
||||
// initialize individual
|
||||
indy1 = new ESIndividualDoubleData();
|
||||
double[][] range = new double[2][2];
|
||||
range[0][0] = -2.0;
|
||||
@ -141,16 +141,16 @@ public class CrossoverESSBX implements InterfaceCrossover, java.io.Serializable
|
||||
range[1][1] = 2.0;
|
||||
indy1.setDoubleDataLength(2);
|
||||
indy1.setDoubleRange(range);
|
||||
// init values
|
||||
// initialize values
|
||||
indy2 = (ESIndividualDoubleData) indy1.clone();
|
||||
indy3 = (ESIndividualDoubleData) indy1.clone();
|
||||
if (false) {
|
||||
// random init
|
||||
// random initialize
|
||||
indy1.defaultInit(prob);
|
||||
indy2.defaultInit(prob);
|
||||
indy3.defaultInit(prob);
|
||||
} else {
|
||||
// value init
|
||||
// value initialize
|
||||
tmpD[0] = 0.5;
|
||||
tmpD[1] = -0.5;
|
||||
indy1.initByValue(tmpD, prob);
|
||||
|
@ -144,7 +144,7 @@ public class CrossoverESSPX implements InterfaceCrossover, java.io.Serializable
|
||||
int n = 2;
|
||||
|
||||
RNG.setRandomSeed(1);
|
||||
// init individual
|
||||
// initialize individual
|
||||
indy1 = new ESIndividualDoubleData();
|
||||
double[][] range = new double[n][2];
|
||||
for (int i = 0; i < range.length; i++) {
|
||||
@ -153,18 +153,18 @@ public class CrossoverESSPX implements InterfaceCrossover, java.io.Serializable
|
||||
}
|
||||
indy1.setDoubleDataLength(n);
|
||||
indy1.setDoubleRange(range);
|
||||
// init values
|
||||
// initialize values
|
||||
indy2 = (ESIndividualDoubleData) indy1.clone();
|
||||
indy3 = (ESIndividualDoubleData) indy1.clone();
|
||||
indy4 = (ESIndividualDoubleData) indy1.clone();
|
||||
if (false) {
|
||||
// random init
|
||||
// random initialize
|
||||
indy1.defaultInit(prob);
|
||||
indy2.defaultInit(prob);
|
||||
indy3.defaultInit(prob);
|
||||
indy4.defaultInit(prob);
|
||||
} else {
|
||||
// value init
|
||||
// value initialize
|
||||
tmpD[0] = -1;
|
||||
tmpD[1] = -0.5;
|
||||
indy1.initByValue(tmpD, prob);
|
||||
|
@ -232,7 +232,7 @@ public class CrossoverESUNDX implements InterfaceCrossover, java.io.Serializable
|
||||
int n = 2;
|
||||
|
||||
RNG.setRandomSeed(1);
|
||||
// init individual
|
||||
// initialize individual
|
||||
indy1 = new ESIndividualDoubleData();
|
||||
double[][] range = new double[n][2];
|
||||
for (int i = 0; i < range.length; i++) {
|
||||
@ -241,18 +241,18 @@ public class CrossoverESUNDX implements InterfaceCrossover, java.io.Serializable
|
||||
}
|
||||
indy1.setDoubleDataLength(n);
|
||||
indy1.setDoubleRange(range);
|
||||
// init values
|
||||
// initialize values
|
||||
indy2 = (ESIndividualDoubleData) indy1.clone();
|
||||
indy3 = (ESIndividualDoubleData) indy1.clone();
|
||||
indy4 = (ESIndividualDoubleData) indy1.clone();
|
||||
if (false) {
|
||||
// random init
|
||||
// random initialize
|
||||
indy1.defaultInit(prob);
|
||||
indy2.defaultInit(prob);
|
||||
indy3.defaultInit(prob);
|
||||
indy4.defaultInit(prob);
|
||||
} else {
|
||||
// value init
|
||||
// value initialize
|
||||
tmpD[0] = -1.9;
|
||||
tmpD[1] = -1.8;
|
||||
indy1.initByValue(tmpD, prob);
|
||||
|
@ -103,7 +103,7 @@ public class CrossoverOBGAPMX implements InterfaceCrossover, java.io.Serializabl
|
||||
|
||||
@Override
|
||||
public void init(AbstractEAIndividual individual, InterfaceOptimizationProblem opt) {
|
||||
// nothing to init!
|
||||
// nothing to initialize!
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -100,7 +100,7 @@ public class CrossoverOBGAPMXUniform implements InterfaceCrossover, java.io.Seri
|
||||
|
||||
@Override
|
||||
public void init(AbstractEAIndividual individual, InterfaceOptimizationProblem opt) {
|
||||
// nothing to init!
|
||||
// nothing to initialize!
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -56,7 +56,7 @@ public class PropertyCrossoverMixerEditor extends JPanel implements PropertyEdit
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the CustomEditor Panel
|
||||
* This method will initialize the CustomEditor Panel
|
||||
*/
|
||||
private void initCustomEditor() {
|
||||
self = this;
|
||||
@ -64,7 +64,7 @@ public class PropertyCrossoverMixerEditor extends JPanel implements PropertyEdit
|
||||
this.editor.setPreferredSize(new Dimension(450, 200));
|
||||
this.editor.setMinimumSize(new Dimension(450, 200));
|
||||
|
||||
// init the editors
|
||||
// initialize the editors
|
||||
InterfaceCrossover[] list = this.crossoverMixer.getSelectedCrossers();
|
||||
this.editors = new GeneralOptimizationEditorProperty[list.length];
|
||||
for (int i = 0; i < list.length; i++) {
|
||||
|
@ -44,7 +44,7 @@ public class TestESCrossover implements java.io.Serializable {
|
||||
|
||||
|
||||
private void initFrame() {
|
||||
// init the main frame
|
||||
// initialize the main frame
|
||||
this.frame = new JFrame();
|
||||
this.frame.setTitle("ES Crossover Tester");
|
||||
this.frame.setSize(300, 400);
|
||||
|
@ -4,7 +4,7 @@ import eva2.optimization.individuals.AbstractEAIndividual;
|
||||
import eva2.problems.InterfaceOptimizationProblem;
|
||||
|
||||
/**
|
||||
* A dummy initialization method which only calls the default init method of the individual.
|
||||
* A dummy initialization method which only calls the default initialize method of the individual.
|
||||
*
|
||||
* @author mkron
|
||||
*/
|
||||
|
@ -95,10 +95,10 @@ public class GAGIInitializeSegmentwise implements InterfaceInitialization, java.
|
||||
}
|
||||
//
|
||||
// public static void main(String[] args) {
|
||||
// GAGIInitializeSegmentwise init = new GAGIInitializeSegmentwise(5, new int[]{5,0}, 0.5);
|
||||
// GAGIInitializeSegmentwise initialize = new GAGIInitializeSegmentwise(5, new int[]{5,0}, 0.5);
|
||||
// GIIndividualIntegerData indy = new GIIndividualIntegerData();
|
||||
// indy.setInitOperator(init);
|
||||
// indy.init(null);
|
||||
// indy.setInitOperator(initialize);
|
||||
// indy.initialize(null);
|
||||
// System.out.println(indy.getStringRepresentation());
|
||||
// }
|
||||
|
||||
@ -289,7 +289,7 @@ public class GAGIInitializeSegmentwise implements InterfaceInitialization, java.
|
||||
|
||||
////////
|
||||
public String getName() {
|
||||
return "GA-GI segment-wise init";
|
||||
return "GA-GI segment-wise initialize";
|
||||
}
|
||||
|
||||
public static String globalInfo() {
|
||||
|
@ -269,7 +269,7 @@ public class MOClusteringSeparation implements InterfaceMigration, java.io.Seria
|
||||
// for (int i = 0; i < islands.length; i++) {
|
||||
// islands[i] = new MultiObjectiveEA();
|
||||
// islands[i].SetProblem(problem);
|
||||
// islands[i].init();
|
||||
// islands[i].initialize();
|
||||
// }
|
||||
//
|
||||
// cluster.kMeans.setUseSearchSpace(true);
|
||||
|
@ -643,7 +643,7 @@ public class MOConeSeparation implements InterfaceMigration, java.io.Serializabl
|
||||
// for (int i = 0; i < islands.length; i++) {
|
||||
// islands[i] = new MultiObjectiveEA();
|
||||
// islands[i].SetProblem(problem);
|
||||
// islands[i].init();
|
||||
// islands[i].initialize();
|
||||
// }
|
||||
//
|
||||
// for (int i = 0; i < 20; i++) {
|
||||
|
@ -273,7 +273,7 @@ public class MOXMeansSeparation implements InterfaceMigration, java.io.Serializa
|
||||
// for (int i = 0; i < islands.length; i++) {
|
||||
// islands[i] = new MultiObjectiveEA();
|
||||
// islands[i].SetProblem(problem);
|
||||
// islands[i].init();
|
||||
// islands[i].initialize();
|
||||
// }
|
||||
//
|
||||
// cluster.xMeans.setUseSearchSpace(true);
|
||||
|
@ -111,13 +111,13 @@ class CMAParamSet implements InterfacePopulationChangedEventListener, Serializab
|
||||
* @return
|
||||
*/
|
||||
public static CMAParamSet initCMAParams(CMAParamSet params, int mu, int lambda, double[] center, double[][] range, double initialSigma) {
|
||||
// those are from init:
|
||||
// those are from initialize:
|
||||
params.firstAdaptionDone = false;
|
||||
params.range = range;
|
||||
|
||||
int dim = params.range.length;
|
||||
// if (TRACE_1) System.out.println("WCMA init " + dim);
|
||||
// if (TRACE_1) System.out.println("WCMA static init " + dim);
|
||||
// if (TRACE_1) System.out.println("WCMA initialize " + dim);
|
||||
// if (TRACE_1) System.out.println("WCMA static initialize " + dim);
|
||||
params.eigenvalues = new double[dim];
|
||||
Arrays.fill(params.eigenvalues, 1.);
|
||||
params.meanX = new double[dim];
|
||||
|
@ -18,7 +18,7 @@ public interface InterfaceMutation {
|
||||
public Object clone();
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -37,7 +37,7 @@ public class MutateDefault implements InterfaceMutation, java.io.Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -100,7 +100,7 @@ public class MutateEAMixer implements InterfaceMutation, java.io.Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -93,7 +93,7 @@ public class MutateESCorrVector implements InterfaceMutation, java.io.Serializab
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -106,7 +106,7 @@ public class MutateESCorrolated implements InterfaceMutation, java.io.Serializab
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
@ -116,14 +116,14 @@ public class MutateESCorrolated implements InterfaceMutation, java.io.Serializab
|
||||
if (individual instanceof InterfaceESIndividual) {
|
||||
double[] x = ((InterfaceESIndividual) individual).getDGenotype();
|
||||
if (this.sigmas == null) {
|
||||
// init the Sigmas
|
||||
// initialize the Sigmas
|
||||
this.sigmas = new double[x.length];
|
||||
for (int i = 0; i < this.sigmas.length; i++) {
|
||||
this.sigmas[i] = this.mutationStepSize;
|
||||
}
|
||||
}
|
||||
if (this.alphas == null) {
|
||||
// init the Alphas
|
||||
// initialize the Alphas
|
||||
this.alphas = new double[(x.length * (x.length - 1)) / 2];
|
||||
for (int i = 0; i < this.alphas.length; i++) {
|
||||
this.alphas[i] = 0.0;
|
||||
|
@ -138,7 +138,7 @@ public class MutateESCovarianceMatrixAdaption implements InterfaceMutation, java
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -42,7 +42,7 @@ public class MutateESCovarianceMatrixAdaptionPlus extends
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -57,7 +57,7 @@ public class MutateESFixedStepSize implements InterfaceMutation, java.io.Seriali
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -86,7 +86,7 @@ public class MutateESGlobal implements InterfaceMutation, java.io.Serializable,
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -96,7 +96,7 @@ public class MutateESLocal implements InterfaceMutation, InterfaceAdditionalPopu
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
@ -104,7 +104,7 @@ public class MutateESLocal implements InterfaceMutation, InterfaceAdditionalPopu
|
||||
@Override
|
||||
public void init(AbstractEAIndividual individual, InterfaceOptimizationProblem opt) {
|
||||
if (individual instanceof InterfaceESIndividual) {
|
||||
// init the Sigmas
|
||||
// initialize the Sigmas
|
||||
this.sigmas = new double[((InterfaceESIndividual) individual).getDGenotype().length];
|
||||
for (int i = 0; i < this.sigmas.length; i++) {
|
||||
this.sigmas[i] = this.mutationStepSize;
|
||||
|
@ -99,7 +99,7 @@ public class MutateESMainVectorAdaption implements InterfaceMutation, java.io.Se
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -80,7 +80,7 @@ public class MutateESMutativeStepSizeControl implements InterfaceMutation, java.
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -96,7 +96,7 @@ public class MutateESPathLengthAdaption implements InterfaceMutation, java.io.Se
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -53,7 +53,7 @@ public class MutateESPolynomial implements InterfaceMutation, java.io.Serializab
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -137,7 +137,7 @@ public class MutateESRankMuCMA implements InterfaceAdaptOperatorGenerational, In
|
||||
EVAERROR.errorMsgOnce("Warning: invalid mu/lambda ratio! Setting mu to lambda/2 = " + mu + ", lambda = " + lambda);
|
||||
}
|
||||
CMAParamSet params;
|
||||
if (oldGen.getGeneration() <= 1) { // init new param set. At gen < 1 we shouldnt be called, but better do it once too often
|
||||
if (oldGen.getGeneration() <= 1) { // initialize new param set. At gen < 1 we shouldnt be called, but better do it once too often
|
||||
if (oldGen.hasData(cmaParamsKey)) {
|
||||
params = CMAParamSet.initCMAParams((CMAParamSet) oldGen.getData(cmaParamsKey), mu, lambda, oldGen, getInitSigma(oldGen));
|
||||
} else {
|
||||
@ -259,7 +259,7 @@ public class MutateESRankMuCMA implements InterfaceAdaptOperatorGenerational, In
|
||||
/ params.d_sig);
|
||||
if (Double.isInfinite(sigFact)) {
|
||||
params.sigma *= 10.;
|
||||
} // in larger search spaces sigma tends to explode after init.
|
||||
} // in larger search spaces sigma tends to explode after initialize.
|
||||
else {
|
||||
params.sigma *= sigFact;
|
||||
}
|
||||
@ -574,12 +574,12 @@ public class MutateESRankMuCMA implements InterfaceAdaptOperatorGenerational, In
|
||||
// firstAdaptionDone = false;
|
||||
// range = ((InterfaceDataTypeDouble)individual).getDoubleRange();
|
||||
// dim = range.length;
|
||||
// if (TRACE_1) System.out.println("WCMA init " + dim);
|
||||
// if (TRACE_1) System.out.println("WCMA initialize " + dim);
|
||||
// c_c = (4./(dim+4));
|
||||
// c_sig = Double.NaN; // mark as not yet initialized
|
||||
//// c_u_sig = Double.NaN;
|
||||
// d_sig = Double.NaN; // init in first adaption step!
|
||||
// if (TRACE_1) System.out.println("WCMA static init " + dim);
|
||||
// d_sig = Double.NaN; // initialize in first adaption step!
|
||||
// if (TRACE_1) System.out.println("WCMA static initialize " + dim);
|
||||
// eigenvalues = new double[dim];
|
||||
// Arrays.fill(eigenvalues, 1.);
|
||||
//
|
||||
|
@ -44,11 +44,11 @@ package eva2.optimization.operator.mutation;
|
||||
// } else return false;
|
||||
// }
|
||||
//
|
||||
// /** This method allows you to init the mutation operator
|
||||
// /** This method allows you to initialize the mutation operator
|
||||
// * @param individual The individual that will be mutated.
|
||||
// * @param opt The optimization problem.
|
||||
// */
|
||||
// public void init(AbstractEAIndividual individual, InterfaceOptimizationProblem opt) {
|
||||
// public void initialize(AbstractEAIndividual individual, InterfaceOptimizationProblem opt) {
|
||||
//
|
||||
// }
|
||||
//
|
||||
|
@ -65,7 +65,7 @@ public class MutateGAAdaptive implements InterfaceMutation, java.io.Serializable
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -74,7 +74,7 @@ public class MutateGAGISwapBits implements InterfaceMutation, java.io.Serializab
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -57,7 +57,7 @@ public class MutateGAInvertBits implements InterfaceMutation, java.io.Serializab
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -52,7 +52,7 @@ public class MutateGANBit implements InterfaceMutation, java.io.Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -62,7 +62,7 @@ public class MutateGAShiftSubstring implements InterfaceMutation, java.io.Serial
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -96,7 +96,7 @@ public class MutateGASwapBitsSegmentwise implements InterfaceMutation, java.io.S
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -55,7 +55,7 @@ public class MutateGIInsertDelete implements InterfaceMutation, java.io.Serializ
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -55,7 +55,7 @@ public class MutateGIInvert implements InterfaceMutation, java.io.Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -55,7 +55,7 @@ public class MutateGINominal implements InterfaceMutation, java.io.Serializable
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -60,7 +60,7 @@ public class MutateGIOrdinal implements InterfaceMutation, java.io.Serializable
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -67,7 +67,7 @@ public class MutateGITranslocate implements InterfaceMutation, java.io.Serializa
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -71,7 +71,7 @@ public class MutateGPAdaptive implements InterfaceMutation, java.io.Serializable
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -46,7 +46,7 @@ public class MutateGPSingleNode implements InterfaceMutation, java.io.Serializab
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -52,7 +52,7 @@ public class MutateOBGAFlip implements InterfaceMutation, java.io.Serializable {
|
||||
|
||||
@Override
|
||||
public void init(AbstractEAIndividual individual, InterfaceOptimizationProblem opt) {
|
||||
//nothing to init
|
||||
//nothing to initialize
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -52,7 +52,7 @@ public class MutateOBGAInversion implements java.io.Serializable, InterfaceMutat
|
||||
|
||||
@Override
|
||||
public void init(AbstractEAIndividual individual, InterfaceOptimizationProblem opt) {
|
||||
//nothing to init
|
||||
//nothing to initialize
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -40,7 +40,7 @@ public class NoMutation implements InterfaceMutation, java.io.Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows you to init the mutation operator
|
||||
* This method allows you to initialize the mutation operator
|
||||
*
|
||||
* @param individual The individual that will be mutated.
|
||||
* @param opt The optimization problem.
|
||||
|
@ -58,7 +58,7 @@ public class PropertyMutationMixerEditor extends JPanel implements PropertyEdito
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will init the CustomEditor Panel
|
||||
* This method will initialize the CustomEditor Panel
|
||||
*/
|
||||
private void initCustomEditor() {
|
||||
self = this;
|
||||
@ -66,7 +66,7 @@ public class PropertyMutationMixerEditor extends JPanel implements PropertyEdito
|
||||
this.editorComponent.setPreferredSize(new Dimension(450, 200));
|
||||
this.editorComponent.setMinimumSize(new Dimension(450, 200));
|
||||
|
||||
// init the editors
|
||||
// initialize the editors
|
||||
InterfaceMutation[] list = this.mutatorsWithWeights.getSelectedMutators();
|
||||
this.editors = new GeneralOptimizationEditorProperty[list.length];
|
||||
for (int i = 0; i < list.length; i++) {
|
||||
|
@ -16,7 +16,7 @@ public class StandardAbsorptionStrategy implements InterfaceAbsorptionStrategy,
|
||||
|
||||
/**
|
||||
* *******************************************************************************************************************
|
||||
* ctors, init, clone
|
||||
* ctors, initialize, clone
|
||||
*/
|
||||
@Override
|
||||
public Object clone() {
|
||||
|
@ -4,7 +4,7 @@ import eva2.gui.BeanInspector;
|
||||
import eva2.optimization.population.Population;
|
||||
|
||||
/**
|
||||
* Convenience class. Besides the init() method, two more remain to be implemented:
|
||||
* Convenience class. Besides the initialize() method, two more remain to be implemented:
|
||||
* the first one to retrieve an array of strings with the canonical names of the controlled parameters,
|
||||
* and the second one to produce an object array of the same length with the values to be assigned
|
||||
* at the iteration. If there is no iteration known, iteration counts will be set to -1.
|
||||
|
@ -144,7 +144,7 @@ public class CbpsoFitnessThresholdBasedAdaption implements ParamAdaption, Generi
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see eva2.optimization.operators.paramcontrol.ParamAdaption#init(java.lang.Object, eva2.optimization.populations.Population, java.lang.Object[])
|
||||
* @see eva2.optimization.operators.paramcontrol.ParamAdaption#initialize(java.lang.Object, eva2.optimization.populations.Population, java.lang.Object[])
|
||||
*/
|
||||
@Override
|
||||
public void init(Object obj, Population pop, Object[] initialValues) {
|
||||
|
@ -71,7 +71,7 @@ public class ParameterControlManager implements InterfaceParameterControl, Seria
|
||||
for (ParamAdaption prm : singleAdapters) {
|
||||
prm.init(obj, initialPop, initialValues);
|
||||
// check if the prm itself has a ParameterControlManager:
|
||||
tryRecursive(prm, "init", new Object[]{initialPop});
|
||||
tryRecursive(prm, "initialize", new Object[]{initialPop});
|
||||
}
|
||||
}
|
||||
|
||||
@ -80,7 +80,7 @@ public class ParameterControlManager implements InterfaceParameterControl, Seria
|
||||
if ((subManager = BeanInspector.callIfAvailable(prm, "getParamControl", null)) != null) {
|
||||
if (subManager instanceof ParameterControlManager) {
|
||||
BeanInspector.callIfAvailable(subManager, method, args);
|
||||
// ((ParameterControlManager)subManager).init(prm, initialPop);
|
||||
// ((ParameterControlManager)subManager).initialize(prm, initialPop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user