Skip to content

Commit

Permalink
Update recipes/007_benchmarks_advanced.py
Browse files Browse the repository at this point in the history
Co-authored-by: Shuhei Watanabe <[email protected]>
  • Loading branch information
y0z and nabenabe0928 authored Dec 17, 2024
1 parent 458d990 commit 1331046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/007_benchmarks_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def evaluate_constraints(self, params: dict[str, float]) -> tuple[float]:

###################################################################################################
# Then, you can optimize the problem with Optuna as usual.
# Don't forget to set the `constraints_func` argument of the sampler to the `constraints_func` of the problem.
# Don't forget to set the `constraints_func` argument to the sampler to use.
problem = ConstrainedProblem()
sampler = optuna.samplers.TPESampler(
constraints_func=problem.constraints_func
Expand Down

0 comments on commit 1331046

Please sign in to comment.