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

GA doesn't seem to be respecting search interval bounds #16

Open
lzfelix opened this issue Jun 26, 2021 · 0 comments
Open

GA doesn't seem to be respecting search interval bounds #16

lzfelix opened this issue Jun 26, 2021 · 0 comments

Comments

@lzfelix
Copy link

lzfelix commented Jun 26, 2021

Hello!
Running GA optimization wtih the following parameters:

- target_fn: sphere
- n_variables: 10
- n_agents: 20
- mutation_rate = 0.2
- search_interval: [10, 20] for all variables

yields f(x*) = 0 as optimal value, which is only possible at the space origin, outside the search space. In this case, the expected optimal value should be f(x*) = (10^2)*10 = 1000.

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

No branches or pull requests

1 participant