We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af982ea commit 094ca44Copy full SHA for 094ca44
src/sage/numerical/optimize.py
@@ -519,9 +519,9 @@ def minimize_constrained(func, cons, x0, gradient=None, algorithm='default', **a
519
sage: x, y = var('x y')
520
sage: f(x,y) = (100 - x) + (1000 - y)
521
sage: c(x,y) = x + y - 479 # > 0
522
- sage: minimize_constrained(f, [c], [100, 300])
+ sage: minimize_constrained(f, [c], [100, 300]) # random
523
(805.985..., 1005.985...)
524
- sage: minimize_constrained(f, c, [100, 300])
+ sage: minimize_constrained(f, c, [100, 300]) # random
525
526
527
If ``func`` is symbolic, its minimizer should be in the same order
@@ -532,7 +532,7 @@ def minimize_constrained(func, cons, x0, gradient=None, algorithm='default', **a
532
sage: f(y,x) = x - y
533
sage: c1(y,x) = x
534
sage: c2(y,x) = 1-y
535
- sage: minimize_constrained(f, [c1, c2], (0,0))
+ sage: minimize_constrained(f, [c1, c2], (0,0)) # abs tol 1e-04
536
(1.0, 0.0)
537
"""
538
from sage.structure.element import Expression
0 commit comments