Skip to content

Commit 16bc7e8

Browse files
committed
Fix bounds on minimize_scalary to match tutorial
1 parent 8a5e59c commit 16bc7e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-scipy-cluster-optimize/minimize_scalar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ def objective_function(x):
1616
res = minimize_scalar(objective_function, method="brent")
1717
print(res)
1818

19-
res = minimize_scalar(objective_function, method="bounded", bounds=[-2, -1])
19+
res = minimize_scalar(objective_function, method="bounded", bounds=[-1, 0])
2020
print(res)

0 commit comments

Comments
 (0)