Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] use previous computation #96

Open
arita37 opened this issue Sep 5, 2022 · 5 comments
Open

[FEATURE] use previous computation #96

arita37 opened this issue Sep 5, 2022 · 5 comments

Comments

@arita37
Copy link

arita37 commented Sep 5, 2022

Just wondering, if there is a way to use previous formulaes
as starting points for evolution ?

Mostly, load as initial population (vs starting from scratch every time...),
Thanks

@darioizzo
Copy link
Owner

You can feed them into the pagmo population as chromosomes?

@arita37
Copy link
Author

arita37 commented Oct 7, 2022 via email

@darioizzo
Copy link
Owner

Yes, understood. At the end of an evolution you can save the best chromosome (i.e. a formula) of the population.

Then you can create at any point an empty population and push-back that chromosome in togheter with any other random or evolved formula.

At that point you can continue evolving.

@arita37
Copy link
Author

arita37 commented Oct 7, 2022 via email

@darioizzo
Copy link
Owner

darioizzo commented Oct 13, 2022

Unfortunately not. Its going to be something like this ...

x = previosly computed seed
pop = pg.population(sr_prob,3) # creates a population with 3 random individuals
pop.push_back(x) # now the population has 4 individuals, one is the seed
pop = algo,evolve(pop)

but sr_prob must have the same dimensions and kernels as the one that created x.

As per your question on the possibility to use a human formula as seed ... there is no utility atm that creates a chromosome from a formula. This is not difficult per se, but there are infinite ways of doing so (i.e. infinite chromosomes that correspond to the same formula) so one would have to take some decisions there, which will also affect the evolution afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants