Skip to content

Commit

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

0 comments on commit 356e2ef

Please sign in to comment.