Skip to content

Commit db9392f

Browse files
committed
Minor changes from auto-review
1 parent bf9abd9 commit db9392f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/optimagic/optimizers/scipy_optimizers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ def _solve_internal_problem(
799799
)
800800
raw_res = scipy.optimize.brute(
801801
func=problem.fun,
802-
ranges=tuple(zip(problem.bounds.lower, problem.bounds.upper, strict=False)),
802+
ranges=tuple(zip(problem.bounds.lower, problem.bounds.upper, strict=True)),
803803
Ns=self.n_grid_points,
804804
full_output=True,
805805
finish=self.polishing_function,

tests/optimagic/optimization/test_with_constraints.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def test_three_independent_constraints():
244244
)
245245
expected = np.array([0] * 4 + [4, 5] + [0] + [7.5] * 2 + [0])
246246

247-
# TODO: Increase precision back to decimal=4. The current precision is due to the
247+
# TODO: Increase precision back to decimal=4. The reduced precision is due to the
248248
# re-written scipy_lbfgsb algorithm in SciPy 1.15.
249249
aaae(res.params, expected, decimal=3)
250250

0 commit comments

Comments
 (0)