Skip to content

Commit 4ea6adf

Browse files
committed
In NLopt, don't test objective when MaxIters is reached
1 parent 9b81844 commit 4ea6adf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/OptimizationNLopt/test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,6 @@ using Test, Random
145145
ucons = [0.0, 0.0], lb = [-1.0, -1.0], ub = [1.0, 1.0])
146146
sol = solve(prob, NLopt.GN_ISRES(), maxiters = 1000)
147147
@test sol.retcode == ReturnCode.MaxIters
148-
@test 10 * sol.objective < l1
148+
@test sol.objective < l1
149149
end
150150
end

0 commit comments

Comments
 (0)