Skip to content

Commit 98b43be

Browse files
committed
Move all tests to the allocating case default.
1 parent a064672 commit 98b43be

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/OptimizationManopt/test/runtests.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ R2 = Euclidean(2)
128128
prob = OptimizationProblem(optprob, x0, p; manifold = R2)
129129

130130
sol = Optimization.solve(
131-
prob, opt, sub_problem = Manopt.convex_bundle_method_subsolver!)
131+
prob, opt, sub_problem = Manopt.convex_bundle_method_subsolver)
132132
@test sol.minimum < 0.1
133133
end
134134

@@ -197,6 +197,7 @@ R2 = Euclidean(2)
197197

198198
optprob_cons = OptimizationFunction(rosenbrock; grad = rosenbrock_grad!, cons = cons)
199199
prob_cons = OptimizationProblem(optprob_cons, x0, p)
200+
#TODO: What is this?
200201
@test_throws SciMLBase.IncompatibleOptimizerError Optimization.solve(prob_cons, opt)
201202
end
202203

@@ -217,7 +218,8 @@ R2 = Euclidean(2)
217218

218219
@test sol.uq rtol=1e-2
219220

220-
function closed_form_solution!(M::SymmetricPositiveDefinite, q, L, U, p, X)
221+
function closed_form_solution(M::SymmetricPositiveDefinite, L, U, p, X)
222+
q = copy(M, p)
221223
# extract p^1/2 and p^{-1/2}
222224
(p_sqrt_inv, p_sqrt) = Manifolds.spd_sqrt_and_sqrt_inv(p)
223225
# Compute D & Q

0 commit comments

Comments
 (0)