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

Want to set up starting point #54

Closed
rayjan0114 opened this issue May 18, 2020 · 1 comment
Closed

Want to set up starting point #54

rayjan0114 opened this issue May 18, 2020 · 1 comment

Comments

@rayjan0114
Copy link

rayjan0114 commented May 18, 2020

Thanks for the great work of this repo!

Wish to have enhancement for letting us set up a starting point of the parameters that we want to optimize

@guofei9987
Copy link
Owner

Maybe already have!
For GA, after ga=GA(**params), use codes like ga.Chrom = np.random.randint(0,2,size=(80,20)) to manually set the initial population.

For DE, set de.X to your initial X.

For PSO, set pso.X to your initial X, and run pso.cal_y(). I realize just now that it is not good enough. May be pso.cal_y() can be omitted in the future version.

For SA, there is a parameter x0, which is the init point.

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