From cda06d98b8bef99ed48a75d18ada57458df6b41f Mon Sep 17 00:00:00 2001 From: nabenabe0928 Date: Tue, 21 Jan 2025 11:22:40 +0100 Subject: [PATCH] Fix a bug in ZDT --- package/benchmarks/zdt/_zdt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/benchmarks/zdt/_zdt.py b/package/benchmarks/zdt/_zdt.py index 47d5b16..a589d7a 100644 --- a/package/benchmarks/zdt/_zdt.py +++ b/package/benchmarks/zdt/_zdt.py @@ -32,7 +32,7 @@ def __init__(self, function_id: int, **kwargs: Any) -> None: f"x{i}": optuna.distributions.FloatDistribution( self._problem.min_bounds[i], self._problem.max_bounds[i] ) - for i in range(self.problem.num_variables) + for i in range(self._problem.num_variables) } else: self._search_space = {}