Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bata committed Jul 25, 2024
1 parent a98c374 commit d931cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion studies.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def objective_constraints(trial: optuna.Trial) -> float:
y = trial.suggest_float("y", -15, 30)
v0 = 4 * x**2 + 4 * y**2

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))
return v0
Expand Down

0 comments on commit d931cff

Please sign in to comment.