Skip to content

Commit bd1816f

Browse files
apply suggestions in R2N & R2DH
1 parent cb8fe69 commit bd1816f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/R2DH.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Notably, you can access, and modify, the following:
150150
- `stats.status`: current status of the algorithm. Should be `:unknown` unless the algorithm has attained a stopping criterion. Changing this to anything will stop the algorithm, but you should use `:user` to properly indicate the intention.
151151
- `stats.elapsed_time`: elapsed time in seconds.
152152
"""
153-
function R2DH(nlp::AbstractNLPModel{T, V}, h, options::ROSolverOptions{T}; kwargs...) where {T, V}
153+
function R2DH(nlp::AbstractDiagonalQNModel{T, V}, h, options::ROSolverOptions{T}; kwargs...) where {T, V}
154154
kwargs_dict = Dict(kwargs...)
155155
selected = pop!(kwargs_dict, :selected, 1:(nlp.meta.nvar))
156156
x0 = pop!(kwargs_dict, :x0, nlp.meta.x0)

src/R2N.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ function R2NSolver(
4444
xkn = similar(x0)
4545
s = similar(x0)
4646
s1 = similar(x0)
47-
v = similar(x0)
4847
has_bnds = any(l_bound .!= T(-Inf)) || any(u_bound .!= T(Inf))
4948
if has_bnds
5049
l_bound_m_x = similar(xk)

0 commit comments

Comments
 (0)