Skip to content

Commit af982ea

Browse files
committed
Drop depecated iprint argument from optimize.fmin_l_bfgs_b
1 parent 11baeed commit af982ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/numerical/optimize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,12 +567,12 @@ def minimize_constrained(func, cons, x0, gradient=None, algorithm='default', **a
567567
if isinstance(cons[0], (tuple, list)) or cons[0] is None:
568568
if gradient is not None:
569569
if algorithm == 'l-bfgs-b':
570-
min = optimize.fmin_l_bfgs_b(f, x0, gradient, bounds=cons, iprint=-1, **args)[0]
570+
min = optimize.fmin_l_bfgs_b(f, x0, gradient, bounds=cons, **args)[0]
571571
else:
572572
min = optimize.fmin_tnc(f, x0, gradient, bounds=cons, messages=0, **args)[0]
573573
else:
574574
if algorithm == 'l-bfgs-b':
575-
min = optimize.fmin_l_bfgs_b(f, x0, approx_grad=True, bounds=cons, iprint=-1, **args)[0]
575+
min = optimize.fmin_l_bfgs_b(f, x0, approx_grad=True, bounds=cons, **args)[0]
576576
else:
577577
min = optimize.fmin_tnc(f, x0, approx_grad=True, bounds=cons, messages=0, **args)[0]
578578
elif isinstance(cons[0], (function_type, Expression)):

0 commit comments

Comments
 (0)