Skip to content

Commit 0e74bb6

Browse files
Balandatfacebook-github-bot
authored andcommitted
Add docstring to Powell (#2217)
Summary: This was missing. Pull Request resolved: #2217 Reviewed By: SebastianAment Differential Revision: D54176182 Pulled By: Balandat fbshipit-source-id: 5b2c59e960de90aaaaca61928a0f2474958e5f3e
1 parent 00ff79c commit 0e74bb6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

botorch/test_functions/synthetic.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,19 @@ def evaluate_true(self, X: Tensor) -> Tensor:
586586

587587

588588
class Powell(SyntheticTestFunction):
589+
r"""Powell synthetic test function.
590+
591+
`d`-dim function (usually evaluated on hypercube `[-4, 5]^d`):
592+
593+
P(x) = sum_{i=1}^d/4 (
594+
(x_{4i-3} + 10 x_{4i-2})**2
595+
+ 5 (x_{4i-1} - x_{4i})**2
596+
+ (x_{4i-2} - 2 x_{4i-1})**4
597+
+ 10 (x_{4i-3} - x_{4i})**4
598+
)
599+
600+
P has a global minimizer at `z = (0, ..., 0)` with `P(z) = 0`.
601+
"""
589602

590603
_optimal_value = 0.0
591604

0 commit comments

Comments
 (0)