-
Notifications
You must be signed in to change notification settings - Fork 59
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
Cannot get tutorial example to work #65
Comments
By default,
So, you need to specify appropriate genetic operators for the individuals, in your case some binary ops. See docs for more info: https://wildart.github.io/Evolutionary.jl/stable/ julia> res = Evolutionary.optimize(x -> -sum(x),
BitVector(zeros(3)),
GA(mutation=flip, crossover=singlepoint, selection=sus),
Evolutionary.Options(iterations=5, show_trace=true))
Iter Function value
0 0
* time: 5.0067901611328125e-5
1 -2
* time: 0.00019598007202148438
2 -3
* time: 0.00030493736267089844
3 -3
* time: 0.0003979206085205078
4 -3
* time: 0.0004858970642089844
5 -3
* time: 0.0005910396575927734
* Status: failure (reached maximum number of iterations)
* Candidate solution
Minimizer: [true, true, true]
Minimum: -3
Iterations: 5
* Found with
Algorithm: GA[P=50,x=0.8,μ=0.1,ɛ=0] |
Thank you for taking the time to explain the problem. Before closing this issue, I want to ask whether there might be a default configuration that might work OK in most situations? This might prevent some confusion in the future. If that is not advisable, I wonder whether it would be helpful to include the configuration above in the documentation example? |
Hello-
Thank you for putting this package together. Unfortunately, I am having trouble getting the tutorial example to work. The algorithm seems to be stuck at the initial values.
Here are the results:
If I understand correctly, the minimizer should be [true,true,true] with a minimum of -3. I tried changing parameters of GA and in Options, but to no avail. Am I doing something incorrectly?
The text was updated successfully, but these errors were encountered: