Skip to content

Commit

Permalink
Simplify check_bounds as suggested in issue #24
Browse files Browse the repository at this point in the history
  • Loading branch information
emmt committed Feb 12, 2024
1 parent fd361c8 commit 2c756f3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,7 @@ end
xl = [-6.0, -6.0]
xu = [ 6.0, 6.0]

function check_bounds(xl, x, xu)
flag = true
for (lᵢ, xᵢ, uᵢ) in zip(xl, x, xu)
flag &= lᵢ xᵢ uᵢ
end
return flag
end
check_bounds(xl, x, xu) = all(xl .≤ x .≤ xu)

@testset "NEWUOA" begin
println("\nNEWUOA:")
Expand Down

0 comments on commit 2c756f3

Please sign in to comment.