From: <lab...@gm...> - 2008-12-22 22:42:36
|
registry.setDomainString("[R(-5.0, 5.0)^10]^10"); yeah, that does not work too well. I get the following error: Exception in thread "main" java.lang.UnsupportedOperationException: Attempted to perform a numeric operation on non-numeric type at net.sourceforge.cilib.type.types.container.Vector.getNumeric(Vector.java:414) at net.sourceforge.cilib.type.types.container.Vector.getReal(Vector.java:466) at net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate.updateVelocity(StandardVelocityUpdate.java:89) at net.sourceforge.cilib.pso.particle.StandardParticle.updateVelocity(StandardParticle.java:186) at net.sourceforge.cilib.pso.iterationstrategies.SynchronousIterationStrategy.performIteration(SynchronousIterationStrategy.java:69) at net.sourceforge.cilib.pso.iterationstrategies.SynchronousIterationStrategy.performIteration(SynchronousIterationStrategy.java:36) at net.sourceforge.cilib.pso.PSO.algorithmIteration(PSO.java:125) at net.sourceforge.cilib.algorithm.Algorithm.performIteration(Algorithm.java:140) at net.sourceforge.cilib.algorithm.Algorithm.run(Algorithm.java:182) |
From: Gary P. <gpa...@gm...> - 2008-12-23 10:34:34
|
Hi, I'll have a look at this. Regards, Gary lab...@gm... wrote: > registry.setDomainString("[R(-5.0, 5.0)^10]^10"); > yeah, that does not work too well. I get the following error: > > Exception in thread "main" java.lang.UnsupportedOperationException: > Attempted to perform a numeric operation on non-numeric type > at > net.sourceforge.cilib.type.types.container.Vector.getNumeric(Vector.java:414) > at > net.sourceforge.cilib.type.types.container.Vector.getReal(Vector.java:466) > at > net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate.updateVelocity(StandardVelocityUpdate.java:89) > at > net.sourceforge.cilib.pso.particle.StandardParticle.updateVelocity(StandardParticle.java:186) > at > net.sourceforge.cilib.pso.iterationstrategies.SynchronousIterationStrategy.performIteration(SynchronousIterationStrategy.java:69) > at > net.sourceforge.cilib.pso.iterationstrategies.SynchronousIterationStrategy.performIteration(SynchronousIterationStrategy.java:36) > at net.sourceforge.cilib.pso.PSO.algorithmIteration(PSO.java:125) > at > net.sourceforge.cilib.algorithm.Algorithm.performIteration(Algorithm.java:140) > at net.sourceforge.cilib.algorithm.Algorithm.run(Algorithm.java:182) > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Cilib-users mailing list > Cil...@li... > https://lists.sourceforge.net/lists/listinfo/cilib-users |
From: Gary P. <gpa...@gm...> - 2008-12-23 12:56:43
|
Continuing this discussion on the developer list. Gary Pampara wrote: > Hi, > > I'll have a look at this. > > Regards, > Gary > > lab...@gm... wrote: >> registry.setDomainString("[R(-5.0, 5.0)^10]^10"); >> yeah, that does not work too well. I get the following error: >> >> Exception in thread "main" java.lang.UnsupportedOperationException: >> Attempted to perform a numeric operation on non-numeric type >> at >> net.sourceforge.cilib.type.types.container.Vector.getNumeric(Vector.java:414) >> at >> net.sourceforge.cilib.type.types.container.Vector.getReal(Vector.java:466) >> at >> net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate.updateVelocity(StandardVelocityUpdate.java:89) >> at >> net.sourceforge.cilib.pso.particle.StandardParticle.updateVelocity(StandardParticle.java:186) >> at >> net.sourceforge.cilib.pso.iterationstrategies.SynchronousIterationStrategy.performIteration(SynchronousIterationStrategy.java:69) >> at >> net.sourceforge.cilib.pso.iterationstrategies.SynchronousIterationStrategy.performIteration(SynchronousIterationStrategy.java:36) >> at net.sourceforge.cilib.pso.PSO.algorithmIteration(PSO.java:125) >> at >> net.sourceforge.cilib.algorithm.Algorithm.performIteration(Algorithm.java:140) >> at net.sourceforge.cilib.algorithm.Algorithm.run(Algorithm.java:182) >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Cilib-users mailing list >> Cil...@li... >> https://lists.sourceforge.net/lists/listinfo/cilib-users > > ------------------------------------------------------------------------------ > _______________________________________________ > Cilib-users mailing list > Cil...@li... > https://lists.sourceforge.net/lists/listinfo/cilib-users |
From: David <dav...@nt...> - 2009-03-30 17:48:37
|
Hi, The CILib user guide (direct usage in code) seems to assume that the user will look to write results out to a file. Initially, I began looking into writing XML classes to do what I want to do. However, I would rather have results returned to the calling program. Can I ask, how should I be arranging my code to support that requirement? Regards, David |
From: Gary P. <gpa...@gm...> - 2009-03-30 18:54:14
|
Hi, Basically, we need another output defined. We are currently working on a generic solution whereby multiple output formats etc will be allowed, but until then, you could look at the MeausementSuite class. It uses a SynchronizedOutputBuffer to collect the data, you could create a new class that returns the data to stdout for example so that the calling application can capture it. Regards, Gary David wrote: > Hi, > The CILib user guide (direct usage in code) seems to assume that the user > will look to write results out to a file. Initially, I began looking into > writing XML classes to do what I want to do. However, I would rather have > results returned to the calling program. > > Can I ask, how should I be arranging my code to support that requirement? > > > Regards, > David > |