Skip to content

Different ways to call the evolve method #534

Answered by darioizzo
sowuy asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the question, it is always a bit confusing indeed, let me try to answer as clearly as I can:

All UDAs shipped with pagmo are guaranteed to make:

for i in range(10):
    pop = algorithm(uda(gen=1)).evolve(pop)

equivalent to

pop = algorithm(uda(gen=10)).evolve(pop)

The exception are those algorithms with a memory argument, for example CMAES. When that argument is not set to true, the above equivalence is broken as the algorithm resets its internal state at each call to the method evolve and the following call will have no memory of the previous. In those cases setting memory to true recovers the above equivalence.

Now, with this in mind lets go to your case where you have an arch…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@sowuy
Comment options

@darioizzo
Comment options

Answer selected by sowuy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants