Removed unneccessary calls of the population changed listener.
This commit is contained in:
parent
27200f7364
commit
1224e71e13
@ -212,8 +212,6 @@ public class OptimizerFactory {
|
||||
de.addPopulationChangedEventListener(listener);
|
||||
de.init();
|
||||
|
||||
listener.registerPopulationStateChanged(de.getPopulation(), "");
|
||||
|
||||
return de;
|
||||
}
|
||||
|
||||
@ -256,8 +254,6 @@ public class OptimizerFactory {
|
||||
es.SetProblem(problem);
|
||||
es.init();
|
||||
|
||||
listener.registerPopulationStateChanged(es.getPopulation(), "");
|
||||
|
||||
return es;
|
||||
}
|
||||
|
||||
@ -296,8 +292,6 @@ public class OptimizerFactory {
|
||||
ga.addPopulationChangedEventListener(listener);
|
||||
ga.init();
|
||||
|
||||
listener.registerPopulationStateChanged(ga.getPopulation(), "");
|
||||
|
||||
return ga;
|
||||
}
|
||||
|
||||
@ -355,8 +349,6 @@ public class OptimizerFactory {
|
||||
hc.SetProblem(problem);
|
||||
hc.init();
|
||||
|
||||
listener.registerPopulationStateChanged(hc.getPopulation(), "");
|
||||
|
||||
return hc;
|
||||
}
|
||||
|
||||
@ -384,8 +376,6 @@ public class OptimizerFactory {
|
||||
mc.SetProblem(problem);
|
||||
mc.init();
|
||||
|
||||
listener.registerPopulationStateChanged(mc.getPopulation(), "");
|
||||
|
||||
return mc;
|
||||
}
|
||||
|
||||
@ -426,8 +416,6 @@ public class OptimizerFactory {
|
||||
pso.addPopulationChangedEventListener(listener);
|
||||
pso.init();
|
||||
|
||||
listener.registerPopulationStateChanged(pso.getPopulation(), "");
|
||||
|
||||
return pso;
|
||||
}
|
||||
|
||||
@ -467,8 +455,6 @@ public class OptimizerFactory {
|
||||
sa.addPopulationChangedEventListener(listener);
|
||||
sa.init();
|
||||
|
||||
listener.registerPopulationStateChanged(sa.getPopulation(), "");
|
||||
|
||||
return sa;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user