-
Notifications
You must be signed in to change notification settings - Fork 10
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
problem with Metaheuristics #157
Comments
Can you show the output of |
Note that I ran into the same issue in jmejia8/Metaheuristics.jl#31 (comment) and the following documentation page explains the fix we should have here. Basically I need to change the default mutation for real vs binary encodings. https://jmejia8.github.io/Metaheuristics.jl/stable/algorithms/#Metaheuristics.GA |
You can get it to work by passing the correct mutation as an option. |
here is the required output
I do not think the problem is the same: in my case the code does not work already when I try to lead the package: the very first lines
already cause the following problem
so, I do not even arrive at the stage of setting the options |
Your list of packages indicates you have Metaheuristics 3.1.1. Seems that GA was added starting Metaheuristics 3.2.6. The latest version is 3.2.11 which is the one I have. I can fix this by adding a lower bound to force Metaheuristics >= 3.2.6 to install. I suspect another package in your environment is holding Metaheuristics back. Try ]add Metaheuristics@3.2.11 This will attempt to force install 3.2.11 and it will give you a conflict error if another package is in conflict. |
Alternatively, start Julia in a new environment to have no interaction from other packages in your environment. |
It works now :-) Thanks! |
I also fixed the mutation issue in the main branch of NonconvexMetaheuristics. So you should get it in NonconvexMetaheuristics 0.1.1 in 20 min or so when JuliaRegistries/General#70688 is merged. Doing |
I am trying to use some Differential Evolution algorithm but I am finding a problem. As explained in the quick start section I am running the following two lines
but I am getting the following errors
any suggestions?
The text was updated successfully, but these errors were encountered: