Skip to content

Commit

Permalink
Minor changes from auto-review
Browse files Browse the repository at this point in the history
  • Loading branch information
timmens committed Jan 21, 2025
1 parent bf9abd9 commit db9392f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/optimagic/optimizers/scipy_optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def _solve_internal_problem(
)
raw_res = scipy.optimize.brute(
func=problem.fun,
ranges=tuple(zip(problem.bounds.lower, problem.bounds.upper, strict=False)),
ranges=tuple(zip(problem.bounds.lower, problem.bounds.upper, strict=True)),
Ns=self.n_grid_points,
full_output=True,
finish=self.polishing_function,
Expand Down
2 changes: 1 addition & 1 deletion tests/optimagic/optimization/test_with_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def test_three_independent_constraints():
)
expected = np.array([0] * 4 + [4, 5] + [0] + [7.5] * 2 + [0])

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

Expand Down

0 comments on commit db9392f

Please sign in to comment.