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

Allow seeding one or more possible solutions to the GA #265

Closed
Gabriel-p opened this issue Apr 24, 2016 · 2 comments
Closed

Allow seeding one or more possible solutions to the GA #265

Gabriel-p opened this issue Apr 24, 2016 · 2 comments

Comments

@Gabriel-p
Copy link
Contributor

Gabriel-p commented Apr 24, 2016

The user can seed possible solutions by adding them to the initial random population generated by the GA. One or more possible solutions can be added in the random_population function of the GA:

p_lst_r = random_population(param_values, n_pop)

To input these solutions, these lines can be added to the params_input.dat file:

# Seed solutions
# z
SZ   [0.001, 0.025]
# log(age)
SA    [7.5, 9.8]
# E(B-V)
SE   [0.02, 0.15]
# dm
SD    [10.1, 13.]
# Mass
SM    [5000., 10000.]
# bf
SB    [0.1, 0.8]

The results should be stored the same way the top tiers solutions are stored. This is, plot the 10 first (if more than 10 solutions passed) solutions with the smaller likelihoods, and store the resulting parameter values and likelihoods for all solutions passed in a .dat file.

This method is mentioned in Genetic Algorithms for the Travelling Salesman Problem, Sect 5 (Zotero).

@Gabriel-p Gabriel-p self-assigned this Apr 24, 2016
@Gabriel-p Gabriel-p added this to the v0.3.0 milestone Apr 24, 2016
@Gabriel-p Gabriel-p changed the title Allow passing one or more possible solutions to the GA Allow seeding one or more possible solutions to the GA Sep 5, 2016
@Gabriel-p Gabriel-p modified the milestones: v0.3.0, v0.4.0 Mar 4, 2018
@Gabriel-p Gabriel-p removed the Backlog label May 6, 2018
@Gabriel-p Gabriel-p pinned this issue Sep 16, 2019
@Gabriel-p Gabriel-p modified the milestones: v0.4.0, v0.2.6, v0.2.7 Sep 16, 2019
@Gabriel-p Gabriel-p modified the milestones: v0.2.7, v0.3.0 Oct 1, 2019
@Gabriel-p Gabriel-p unpinned this issue Oct 1, 2019
@Gabriel-p Gabriel-p modified the milestones: v0.3.2, v0.3.1 Jan 23, 2020
@Gabriel-p
Copy link
Contributor Author

The GA is being superseded by the Bayesian method, so this is no longer a priority.

@Gabriel-p
Copy link
Contributor Author

Closed by #472

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

1 participant