[EvA] Help with Matlab Interaction

Fabrizio Sciarra fabrizio.sciarra at b-k.it
Wed Dec 3 18:35:14 CET 2008


Hi all...
Sorry if this has been already answered somewhere... I can't find it...
looks like the pipermail site is down...
I'm currently trying to use EvA2 to optimize a Matlab function.
I'd like to do it with Octave, also...
Up to now I'm faulty in both directions... good eh? :-)
I'm putting the java calls octave wants in the various .m files (apart
that I've been forced to untar JEInterface in my current directory,
while this works with Matlab).
Now both Matlab and Octave complains, when I try to run the
optimization, with the same error. (the dump is at the end of the mail)...
I know I'm doing something wrong but don't know where to look to find
what...
Can anyone help me?
Does anyone have a complete working example? Has anyone already used Octave?
If nobody has done it, yet, I'll post the code for Octave as a
contribution when it's working, if it gets accepted...
Take in advance
  Fabrizio
----------------------------------------
My Operations:
javaaddpath "/projects/osn/optimization/EvA2/EvA2Base.jar"
R=[[120];[130]]
jvi=JEInterface('JI', at MYFUNC,R)
op=optimize(jvi,1)
----------------------------------------
The error after optimize:
Error in evaluate!
 Caught exception in Processor: null
java.lang.NullPointerException
    at
eva2.server.go.individuals.AbstractEAIndividual.isDominatingFitness(AbstractEAIndividual.java:552)
    at eva2.server.go.populations.Population.compareFit(Population.java:319)
    at
eva2.server.go.populations.Population.getIndexOfBestOrWorstIndividual(Population.java:364)
    at
eva2.server.go.populations.Population.getIndexOfBestIndividual(Population.java:331)
    at
eva2.server.go.populations.Population.getBestEAIndividual(Population.java:401)
    at
eva2.server.go.populations.Population.getBestIndividual(Population.java:789)
    at
eva2.server.stat.AbstractStatistics.createNextGenerationPerformed(AbstractStatistics.java:318)
    at
eva2.server.modules.Processor.registerPopulationStateChanged(Processor.java:254)
    at
eva2.server.go.strategies.EvolutionStrategies.firePropertyChangedEvent(EvolutionStrategies.java:280)
    at
eva2.server.go.strategies.EvolutionStrategies.init(EvolutionStrategies.java:89)
    at eva2.server.modules.Processor.optimize(Processor.java:196)
    at eva2.server.modules.Processor.runOptOnce(Processor.java:149)
    at eva2.OptimizerRunnable.run(OptimizerRunnable.java:99)
    at java.lang.Thread.run(Thread.java:619)
----------------------------------------

-- 
_______________________________
Fabrizio Sciarra
BK s.r.l.  Brain and Knowledge
viale Italia,162 19125 La Spezia

  tel: +39 0187 1874211 fax: +39 0187 1874210
 cell: +39 348 0731355
e-mail: fabrizio.sciarra at b-k.it
-------------------------------
Mitchell's Law of Committees:
 Any simple problem can be made insoluble
 if enough meetings are held to discuss it.
_______________________________






More information about the EvA mailing list