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.addPopulationChangedEventListener(listener);
|
||||||
de.init();
|
de.init();
|
||||||
|
|
||||||
listener.registerPopulationStateChanged(de.getPopulation(), "");
|
|
||||||
|
|
||||||
return de;
|
return de;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -256,8 +254,6 @@ public class OptimizerFactory {
|
|||||||
es.SetProblem(problem);
|
es.SetProblem(problem);
|
||||||
es.init();
|
es.init();
|
||||||
|
|
||||||
listener.registerPopulationStateChanged(es.getPopulation(), "");
|
|
||||||
|
|
||||||
return es;
|
return es;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -296,8 +292,6 @@ public class OptimizerFactory {
|
|||||||
ga.addPopulationChangedEventListener(listener);
|
ga.addPopulationChangedEventListener(listener);
|
||||||
ga.init();
|
ga.init();
|
||||||
|
|
||||||
listener.registerPopulationStateChanged(ga.getPopulation(), "");
|
|
||||||
|
|
||||||
return ga;
|
return ga;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -355,8 +349,6 @@ public class OptimizerFactory {
|
|||||||
hc.SetProblem(problem);
|
hc.SetProblem(problem);
|
||||||
hc.init();
|
hc.init();
|
||||||
|
|
||||||
listener.registerPopulationStateChanged(hc.getPopulation(), "");
|
|
||||||
|
|
||||||
return hc;
|
return hc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -384,8 +376,6 @@ public class OptimizerFactory {
|
|||||||
mc.SetProblem(problem);
|
mc.SetProblem(problem);
|
||||||
mc.init();
|
mc.init();
|
||||||
|
|
||||||
listener.registerPopulationStateChanged(mc.getPopulation(), "");
|
|
||||||
|
|
||||||
return mc;
|
return mc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -426,8 +416,6 @@ public class OptimizerFactory {
|
|||||||
pso.addPopulationChangedEventListener(listener);
|
pso.addPopulationChangedEventListener(listener);
|
||||||
pso.init();
|
pso.init();
|
||||||
|
|
||||||
listener.registerPopulationStateChanged(pso.getPopulation(), "");
|
|
||||||
|
|
||||||
return pso;
|
return pso;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -467,8 +455,6 @@ public class OptimizerFactory {
|
|||||||
sa.addPopulationChangedEventListener(listener);
|
sa.addPopulationChangedEventListener(listener);
|
||||||
sa.init();
|
sa.init();
|
||||||
|
|
||||||
listener.registerPopulationStateChanged(sa.getPopulation(), "");
|
|
||||||
|
|
||||||
return sa;
|
return sa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user