Skip to content

Commit 800a509

Browse files
test: mark appropriate optimization tests as broken
1 parent 1550787 commit 800a509

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/optimizationsystem.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ end
9898

9999
prob = OptimizationProblem(sys, [x => 0.0, y => 0.0, z => 0.0, a => 1.0, b => 1.0],
100100
grad = false, hess = false, cons_j = false, cons_h = false)
101-
sol = solve(prob, AmplNLWriter.Optimizer(Ipopt_jll.amplexe))
101+
@test_broken sol = solve(prob, AmplNLWriter.Optimizer(Ipopt_jll.amplexe))
102102
@test_skip sol.objective < 1.0
103103
@test_skip sol.u[0.808, -0.064] atol=1e-3
104104
@test_skip sol[x]^2 + sol[y]^2 1.0
@@ -109,9 +109,11 @@ end
109109
x0 = zeros(2)
110110
p = [1.0, 100.0]
111111
f = OptimizationFunction(rosenbrock, Optimization.AutoSymbolics())
112-
prob = OptimizationProblem(f, x0, p)
113-
sol = solve(prob, Newton())
114-
@test sol.u [1.0, 1.0]
112+
@test_broken begin
113+
prob = OptimizationProblem(f, x0, p)
114+
sol = solve(prob, Newton())
115+
@test sol.u [1.0, 1.0]
116+
end
115117
end
116118

117119
# issue #819

0 commit comments

Comments
 (0)