Skip to content

Commit

Permalink
Update _py_algorithms.py
Browse files Browse the repository at this point in the history
First try.
  • Loading branch information
thisandthatuser authored Aug 29, 2024
1 parent 356e2ef commit 6ec3e9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pygmo/_py_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ class scipy_optimize:
>>> import pygmo as pg
>>> prob = pg.problem(pg.rosenbrock(10))
>>> pop = pg.population(prob=prob, size=1, seed=0)
>>> pop.champion_f[0]
np.float64(929975.7994682974)
>>> pop.champion_f[0] # doctest: +ELLIPSIS
...929975.7994682974...
>>> scp = pg.algorithm(pg.scipy_optimize(method="L-BFGS-B"))
>>> result = scp.evolve(pop).champion_f
>>> result[0] # doctest: +ELLIPSIS
np.float64(1.1377...
...1.1377...
>>> pop.problem.get_fevals()
55
>>> pop.problem.get_gevals()
Expand Down

0 comments on commit 6ec3e9b

Please sign in to comment.