Skip to content

Commit b77a5a3

Browse files
fix bug in TRDH
1 parent 5b2cc0a commit b77a5a3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/TRDH_alg.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,12 @@ function SolverCore.solve!(
308308
improper == true && return stats
309309

310310
is_subsolver = h isa ShiftedProximableFunction # case TRDH is used as a subsolver
311+
312+
if is_subsolver
313+
l_bound .= ψ.l
314+
u_bound .= ψ.u
315+
end
316+
311317
if verbose > 0
312318
@info log_header(
313319
[:iter, :fx, :hx, :xi, , , :normx, :norms, :normD, :arrow],

src/TR_alg.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,6 @@ function SolverCore.solve!(
454454
if quasiNewtTest
455455
@. ∇fk⁻ = ∇fk - ∇fk⁻
456456
push!(nlp, s, ∇fk⁻) # update QN operator
457-
#println(ψ)
458-
#stats.iter == 1 && error("done")
459457
end
460458

461459
solver.subpb.model.B = hess_op(nlp, xk)

0 commit comments

Comments
 (0)