JuliaSmoothOptimizers / JuliaSmoothOptimizers/LinearOperators.jl

LSR1Operator(1) fails the secant equation

Open
#225 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
209
Forks
46
Avg merge
6h 50m
Merged PRs (30d)
1

Description

Hello all,

I did test the LSR1 operators for myself, and it seems that there is a problem with the LSR1Operator of dimension 1.
In my work, I generate automatically several LSR1Operators, and some of them are of dimension 1.

Here is an example to replicate the issue:
```julia
n = 1
B = LSR1Operator(n)
r = 0.0
for i = 1:100
global r
s = rand(n)
y = rand(n)
push!(B, s, y)
r += norm(B * s - y) #secant equation
end
r #166.39...
```

If you replace `n=1` by `n=2` then `r = 1e-14`.

The problem does not occur with the LBFGSOperators.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.