Skip to content

Commit

Permalink
Revise the comment to describe study instance
Browse files Browse the repository at this point in the history
  • Loading branch information
nzw0301 committed Oct 19, 2023
1 parent 1486d10 commit 2089530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quadratic_simple_constraint.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def constraints(trial):


if __name__ == "__main__":
# We minimize obj1 and maximize obj2.
# Let us minimize the objective function with soft constraint above.
sampler = optuna.samplers.TPESampler(constraints_func=constraints)
study = optuna.create_study(sampler=sampler)
study.optimize(objective, n_trials=500, timeout=1)
Expand Down

0 comments on commit 2089530

Please sign in to comment.