Hi Renan,
Your initial guess needs to be an individual, or at least have fitness
member,
since the eaSimple algorithms presumes that every element in the
population
list has a fitness member.
I guess "paramsinitial_normalized" is a list, to make it an
individual,
just use the creator class for Individual that you have initialized :
guess_ind = creator.Individual(paramsinitial_normalized)
Then you can insert it back in your population :
if use_initialguess:
# Drop the first element,
# which will be replace by our initial guess.
population.pop()
population.insert(0, guess_ind)
If it doesn't solve your problem, could you post your code
on something like github gist :
https://gist.github.com/
it will be easier to help you if we get a look at the whole program.
If you have any other questions, don't hesitate.
Félix-Antoine
On Oct 25, 12:32 pm, Renan Birck Pinheiro <
renan.ee.u...@gmail.com>
wrote: