()
| 743 | |
| 744 | @testing.suppress_nevergrad_warnings() |
| 745 | def test_parallel_es() -> None: |
| 746 | opt = optlib.EvolutionStrategy(popsize=3, offsprings=None)(4, budget=20, num_workers=5) |
| 747 | for k in range(35): |
| 748 | cand = opt.ask() # asking should adapt to the parallelization |
| 749 | if not k: |
| 750 | opt.tell(cand, 1) |
| 751 | |
| 752 | |
| 753 | class QuadFunction: |