I need to produce an initial population. I have taken a look at earlier posts
on generating initial population and the example in the manual. I've tried
using the Coder like in one of the posts. I have added the genome count
and have gotten it to run. However, I got an error as such.
On reading subpopulation from text stream, some of the preexisting
subpopulation's slots were null.
Had to use newIndividual() instead of readIndividual(). If you're starting
an evolutionary run by reading an
existing population from a file, this is expected -- ignore this message.
On reading subpopulation from text stream, some individual indexes in the
subpopulation did not match.
The first was individual 1, which is listed in the file as 2
Exception in thread "Thread-8" java.lang.NullPointerException
at java.lang.Thread.run(Unknown Source)
My pop.in file looks like this.
Number of Individuals: i2|
Individual Number: i0|
Individual Number: i1|
Individual Number: i2|
Individual Number: i3|
Oddly, when I don't add the third individual I will get a preamble error
where Indiviudal Number: is expected.
There was a comment about using printIndividual(..). How can I use this
method? The method requires EvolutionState, ParameterDatabase etc. I
have a set of individuals that I want to format external from the ECJ
framework itself. Is there a way that I can use printIndividual(..) without
having to construct the whole framework?