Skip to content

Commit

Permalink
set number of iterations for the surrogate test to 450, since this fa…
Browse files Browse the repository at this point in the history
…ils for blocking sends
  • Loading branch information
oskar-taubert committed Sep 13, 2024
1 parent 01126c5 commit 0103fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_surrogate.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def ind_loss(params: Dict[str, Union[int, float, str]]) -> Generator[float, None
Yields the current loss.
"""
rng = np.random.default_rng(seed=MPI.COMM_WORLD.rank)
num_iterations = 300
num_iterations = 450
for i in range(num_iterations):
yield (10 * params["start"] * np.exp(-i / 10) + rng.standard_normal() / 100 + params["limit"] + 1 / 10000 * i**2)

Expand Down

0 comments on commit 0103fa9

Please sign in to comment.