Skip to content

Commit 9e6cf8e

Browse files
committed
Cover last line
1 parent e4b303f commit 9e6cf8e

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

test/solvers/test_proximal_gradient_method.jl

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ using Manopt, Manifolds, Test, ManifoldDiff, ManoptTestSuite
9090
dw1 = DebugWarnIfStepsizeCollapsed(:Once)
9191
@test repr(dw1) == "DebugWarnIfStepsizeCollapsed()"
9292
pgms_warn = ProximalGradientMethodState(
93-
Sphere(2);
94-
p = rand(Sphere(2)),
95-
inverse_retraction_method = ProjectionInverseRetraction(),
93+
M;
94+
p = p0,
9695
stepsize = Manopt.ProximalGradientMethodBacktrackingStepsize(
9796
M; initial_stepsize = 1.0, strategy = :convex, stop_when_stepsize_less = 10.0
9897
),
@@ -224,7 +223,14 @@ using Manopt, Manifolds, Test, ManifoldDiff, ManoptTestSuite
224223
prox_h(M, λ, p) = p
225224
p0 = p1
226225
pbm_s = proximal_gradient_method(
227-
M, f, g, grad_g; prox_nonsmooth = prox_h, return_state = true
226+
M, f, g, grad_g;
227+
prox_nonsmooth = prox_h,
228+
inverse_retraction_method = ProjectionInverseRetraction(),
229+
stepsize = ProximalGradientMethodBacktracking(;
230+
initial_stepsize = 1.0,
231+
strategy = :convex
232+
),
233+
return_state = true
228234
)
229235
@test startswith(
230236
repr(pbm_s), "# Solver state for `Manopt.jl`s Proximal Gradient Method\n"

0 commit comments

Comments
 (0)