-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Closed
Labels
defectA clear bug or issue that prevents SciPy from being installed or used as expectedA clear bug or issue that prevents SciPy from being installed or used as expectedscipy.optimize
Description
This one I observe locally:
__________________________________________ TestLinprogIPSparsePresolve.test_bug_10466 __________________________________________
../scipy/optimize/tests/test_linprog.py:1595: in test_bug_10466
assert_allclose(res.fun, -8589934560)
E AssertionError:
E Not equal to tolerance rtol=1e-07, atol=0
E
E x and y nan location mismatch:
E x: array(nan)
E y: array(-8589934560)
A_eq = [[1.0, 1.0, 0.0, 0.0, 0.0, 0.0, ...], [0.0, 0.0, 1.0, 1.0, 0.0, 0.0, ...], [0.0, 0.0, 0.0, 0.0, 1.0, 1.0, ...], [1.0, 0.0, 1.0, 0.0, 1.0, 0.0, ...], [1.0, 0.0, 1.0, 0.0, 1.0, 0.0, ...], [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...], ...]
b_eq = [314572800.0, 419430400.0, 524288000.0, 1006632960.0, 1073741820.0, 1073741820.0, ...]
c = [-8.0, -0.0, -8.0, -0.0, -8.0, -0.0, ...]
o = {'_sparse_presolve': True, 'autoscale': True, 'sparse': True}
res = con: array([nan, nan, nan, nan, nan, nan, nan, nan, nan, nan])
fun: nan
message: 'The solution does not sat...float64)
status: 4
success: False
x: array([nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan])
self = <scipy.optimize.tests.test_linprog.TestLinprogIPSparsePresolve object at 0x140ae7130>
sup = <numpy.testing._private.utils.suppress_warnings object at 0x140ae7b20>
And this one I see on the scipy-wheels
repo (macOS and Linux on Azure):
______________ TestBoundedNelderMead.test_outside_bounds_warning _______________
[gw2] darwin -- Python 3.8.8 /Users/runner/hostedtoolcache/Python/3.8.8/x64/bin/python
../../../../hostedtoolcache/Python/3.8.8/x64/lib/python3.8/site-packages/scipy/optimize/tests/test_minimize_constrained.py:738: in test_outside_bounds_warning
minimize(prob.fun, [-10, 8],
E Failed: DID NOT RAISE <class 'UserWarning'>
bounds = Bounds(array([-inf, 1.]), array([4., 5.]))
prob = <scipy.optimize.tests.test_minimize_constrained.Rosenbrock object at 0x123f55670>
self = <scipy.optimize.tests.test_minimize_constrained.TestBoundedNelderMead object at 0x123f559d0>
The local one just came in with gh-13515 (Cc @AtsushiSakai). The scipy-wheels probably too, but not sure - CI runs have been infrequent.
Metadata
Metadata
Assignees
Labels
defectA clear bug or issue that prevents SciPy from being installed or used as expectedA clear bug or issue that prevents SciPy from being installed or used as expectedscipy.optimize