-
Notifications
You must be signed in to change notification settings - Fork 80
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
Logging not working if optimization type set to maximization #367
Comments
@zStupan, please check it out. |
@rhododendrom It works for me on python3.10 and a fresh install of the latest niapy release, which version of python are you using? Could you also please share the implementation of from niapy.task import Task, OptimizationType
from niapy.problems import Sphere
from niapy.algorithms.basic import DifferentialEvolution
algorithm = DifferentialEvolution(differential_weight=0.8, crossover_probability=0.9, seed=12345)
problem = Sphere(10, 0, 1)
task = Task(problem, max_evals=100, optimization_type=OptimizationType.MAXIMIZATION, enable_logging=True)
algorithm.run(task) Should produce the output:
|
Got it. I've had some installation troubles lately with the latest release and I was using the 2.0.0rc17 version. Thanks and sorry about that |
No logging is provided in case of following:
task = Task(problem=ff_value(dimension=10, lower=0, upper=1),
max_evals=100, enable_logging=True, optimization_type=OptimizationType.MAXIMIZATION)
The text was updated successfully, but these errors were encountered: