From: Andrich v. W. <avw...@gm...> - 2009-09-07 11:43:16
|
Hi In the next branch there is a bug in the PartialReinitialisationResponseStrategy class, line 80: current.getPosition().randomize(null); this causes a NullPointer exception when the randomization is finally delegated to the runtime Type class. As shown by this stack trace: Exception in thread "Thread-16" java.lang.NullPointerException at net.sourceforge.cilib.type.types.Real.randomize(Real.java:225) at net.sourceforge.cilib.type.types.container.Vector.randomize(Vector.java:464) at net.sourceforge.cilib.pso.dynamic.responsestrategies.PartialReinitialisationResponseStrategy.respond(PartialReinitialisationResponseStrategy.java:80) at net.sourceforge.cilib.pso.dynamic.DynamicIterationStrategy.performIteration(DynamicIterationStrategy.java:107) at net.sourceforge.cilib.pso.dynamic.DynamicIterationStrategy.performIteration(DynamicIterationStrategy.java:48) at net.sourceforge.cilib.pso.PSO.algorithmIteration(PSO.java:121) at net.sourceforge.cilib.algorithm.AbstractAlgorithm.performIteration(AbstractAlgorithm.java:129) at net.sourceforge.cilib.algorithm.AbstractAlgorithm.run(AbstractAlgorithm.java:171) at net.sourceforge.cilib.simulator.Simulation.run(Simulation.java:81) Regards -- Andrich van Wyk |