Skip to content

Commit

Permalink
Merge pull request #217 from nzw0301/unify-comment
Browse files Browse the repository at this point in the history
Revise the comment to describe the problem
  • Loading branch information
HideakiImamura authored Oct 23, 2023
2 parents 1486d10 + bcad6a2 commit f4fa78e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ The examples below provide codeblocks similar to the example above for various d
### Simple Black-box Optimization

* [Quadratic function](./quadratic_simple.py)
- [Quadratic multi-objective function](./multi_objective/quadratic_simple.py)
- [Quadratic function with constraints](./quadratic_simple_constraint.py)
* [Quadratic multi-objective function](./multi_objective/quadratic_simple.py)
* [Quadratic function with constraints](./quadratic_simple_constraint.py)

### Examples with ML Libraries

Expand Down
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 constraints 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 f4fa78e

Please sign in to comment.