Skip to content

Commit 81514da

Browse files
authored
Enable maxiter in bo utils minimize (#476)
* Update CHANGELOG * Pass maxiter to scipy.optimize.minimize
1 parent d3aa4ca commit 81514da

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.rst

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Changelog
22
=========
33

4+
- Enable using `maxiter` in `bo.utils.minimize`
45
- Fix surrogate model copy operation
56
- Fix typo in requirements.txt
67

elfi/methods/bo/utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def minimize(fun,
9797
for i in range(n_start_points):
9898
result = scipy.optimize.minimize(fun, start_points[i, :],
9999
method=method, jac=grad,
100-
bounds=bounds, constraints=constraints)
100+
bounds=bounds, constraints=constraints,
101+
options={'maxiter': maxiter})
101102
locs.append(result['x'])
102103
vals[i] = result['fun']
103104

0 commit comments

Comments
 (0)