Skip to content

Commit d9c5836

Browse files
authored
Fix aredpred! when using objgrad! (#313)
1 parent c2f3f35 commit d9c5836

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ NLPModels = "0.21"
2121
NLPModelsModifiers = "0.7"
2222
SolverCore = "0.3"
2323
SolverParameters = "0.1"
24-
SolverTools = "0.9"
24+
SolverTools = "0.10"
2525
julia = "1.10"
2626

2727
[extras]

src/tron.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function SolverCore.solve!(
371371
obj(nlp, x)
372372
end
373373

374-
ared, pred = aredpred!(tr, nlp, fc, fx, qs, x, s, slope)
374+
ared, pred = aredpred!(tr, nlp, fc, fx, qs, x, s, slope; use_only_objgrad = use_only_objgrad)
375375
if pred 0
376376
stats.status = :neg_pred
377377
done = true

0 commit comments

Comments
 (0)