We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb3d4ec commit 073f507Copy full SHA for 073f507
lib/OptimizationOptimJL/test/runtests.jl
@@ -37,6 +37,15 @@ using Test
37
sol = solve(prob, Optim.KrylovTrustRegion())
38
@test 10 * sol.objective < l1
39
40
+ sol = solve(prob, Optim.BFGS(), maxiters = 1)
41
+ @test sol.original.iterations == 1
42
+
43
+ sol = solve(prob, Optim.BFGS(), maxiters = 1, local_maxiters = 2)
44
45
46
+ sol = solve(prob, Optim.BFGS(), local_maxiters = 2)
47
+ @test sol.original.iterations > 2
48
49
cons = (res, x, p) -> res .= [x[1]^2 + x[2]^2]
50
optprob = OptimizationFunction(rosenbrock, Optimization.AutoModelingToolkit();
51
cons = cons)
0 commit comments