Skip to content

Commit 030c8cb

Browse files
compute Bk with hess_op instead of hess_op! in TR constructor
1 parent fb4af80 commit 030c8cb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/TR_alg.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ function TRSolver(
6767
shifted(reg_nlp.h, xk, l_bound_m_x, u_bound_m_x, reg_nlp.selected) :
6868
shifted(reg_nlp.h, xk, T(1), χ)
6969

70-
Bk =
71-
isa(reg_nlp.model, QuasiNewtonModel) ? hess_op(reg_nlp.model, xk) :
72-
hess_op!(reg_nlp.model, xk, similar(xk))
70+
Bk = hess_op(reg_nlp.model, xk)
7371
sub_nlp = R2NModel(Bk, ∇fk, zero(T), x0) #FIXME
7472
subpb = RegularizedNLPModel(sub_nlp, ψ)
7573
substats = RegularizedExecutionStats(subpb)

0 commit comments

Comments
 (0)