Skip to content

Commit 705ce1e

Browse files
committed
add status summary to QuasiNewtonLimitedMemoryBoxDirectionUpdate
1 parent 3a2c48b commit 705ce1e

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/plans/box_plan.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ mutable struct QuasiNewtonLimitedMemoryBoxDirectionUpdate{
5050
last_gcd_stepsize::F
5151
end
5252

53+
function status_summary(d::QuasiNewtonLimitedMemoryBoxDirectionUpdate)
54+
s = "limited memory direction update with support for box constraints; "
55+
s *= "internal direction update status: $(status_summary(d.qn_du))"
56+
return s
57+
end
58+
5359
function get_parameter(d::QuasiNewtonLimitedMemoryBoxDirectionUpdate, ::Val{:max_stepsize})
5460
if d.last_gcd_result === :found_limited
5561
return d.last_gcd_stepsize

test/solvers/test_quasi_Newton_box.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ using RecursiveArrayTools
9898
st = QuasiNewtonState(M)
9999

100100
@test startswith(repr(ha), "QuasiNewtonLimitedMemoryBoxDirectionUpdate with internal state:")
101+
@test startswith(Manopt.status_summary(ha), "limited memory direction update with support for box constraints; internal direction update status: ")
101102

102103
f(M, p) = sum(p .^ 2)
103104
grad_f(M, p) = 2 * p

0 commit comments

Comments
 (0)