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

_best_parameter("print") fails / crashes for the biobjective suite if the problem is observerd #2224

Open
olafmersmann opened this issue Oct 25, 2023 · 0 comments

Comments

@olafmersmann
Copy link
Contributor

Minimal example

import numpy as np
import cocoex as ex

suite = ex.Suite("bbob-biobj", "", "dimensions: 5,40 function_indices: 9-20")

observer = ex.Observer("bbob-biobj-old", "number_target_triggers: 5")

problem = suite[0]
problem.observe_with(observer)

problem._best_parameter("print")
x_opt = np.loadtxt("._bbob_problem_best_parameter.txt")
olafmersmann added a commit that referenced this issue Oct 25, 2023
Previously bbob_biobj_problem_best_parameter_print assumed that the
problem was not logged and could misinterpret the ->data member
otherwise which lead to bad data or crashes.

Partially fixes #2224.
olafmersmann added a commit that referenced this issue Oct 26, 2023
Previously bbob_biobj_problem_best_parameter_print assumed that the
problem was not logged and could misinterpret the ->data member
otherwise which lead to bad data or crashes.

Partially fixes #2224.
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