miguelgfierro / pybase

Codebase for Python
https://miguelgfierro.com
Other
26 stars 12 forks source link

BUG simplex #77

Closed miguelgfierro closed 11 months ago

miguelgfierro commented 1 year ago
=================================== FAILURES ===================================
_______ [doctest] pybase.optimization.downhill_simplex.optimize_function _______
017     
018     Returns:
019         np.array: Result of the optimization.
020         float: Value of function at minimum.
021     
022     Examples:
023         >>> from .functions import rosenbrock
024         >>> x0 = np.array([0, 0, 0, 0, 0])
025         >>> xopt, fopt = optimize_function(rosenbrock, x0)
026         >>> xopt # Real solution [1,1,1,1,1]
Expected:
    array([0.9999974 , 0.99999158, 0.99998042, 0.999[96](https://github.com/miguelgfierro/pybase/actions/runs/6559839765/job/17816243441?pr=73#step:7:97)58 , 0.99993196])
Got:
    array([1.00002005, 1.00004272, 1.00005929, 1.0000[98](https://github.com/miguelgfierro/pybase/actions/runs/6559839765/job/17816243441?pr=73#step:7:99)4 , 1.00020735])
miguelgfierro commented 11 months ago

https://github.com/miguelgfierro/pybase/pull/78