From 2a41914ff1161a487e8fb294891ffe2004f014c6 Mon Sep 17 00:00:00 2001 From: porink0424 Date: Fri, 10 May 2024 14:41:47 +0900 Subject: [PATCH] Apply formatter to python file --- tslib/storage/test/generate_assets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tslib/storage/test/generate_assets.py b/tslib/storage/test/generate_assets.py index 8db07537..2e79e141 100644 --- a/tslib/storage/test/generate_assets.py +++ b/tslib/storage/test/generate_assets.py @@ -100,13 +100,13 @@ def create_optuna_storage(storage: BaseStorage) -> None: def objective_constraints(trial: optuna.Trial) -> tuple[float, float]: x = trial.suggest_float("x", -15, 30) y = trial.suggest_float("y", -15, 30) - c0 = (x - 5) ** 2 + y ** 2 - 25 + c0 = (x - 5) ** 2 + y**2 - 25 c1 = -((x - 8) ** 2) - (y + 3) ** 2 + 7.7 trial.set_user_attr("constraint", (c0, c1)) - v0 = 4 * x ** 2 + 4 * y ** 2 + v0 = 4 * x**2 + 4 * y**2 v1 = (x - 5) ** 2 + (y - 5) ** 2 return v0, v1 - + def constraints(trial: optuna.Trial): return trial.user_attrs["constraint"]