Skip to content

Commit a9a0415

Browse files
authored
Apply suggestions from code review
1 parent 827ebd4 commit a9a0415

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main.jl

+3-4
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ function SolverCore.solve!(
148148
[Int64, T, T, T, String, T, T, T],
149149
)
150150
verbose > 0 && @info log_row(Any[iter, ft, norm_∇f, 0.0, "First iteration", α])
151-
# Pass the nlp_at_x so that we have access to xᵢₜₑᵣ
152-
callback(nlp_at_x, solver, stats)
151+
callback(nlp, solver, stats)
153152

154153
while !OK && (stats.status != :user)
155154
preprocess!(nlp_stop, PData, workspace, ∇f, norm_∇f, α)
@@ -210,7 +209,7 @@ function SolverCore.solve!(
210209
verbose > 0 &&
211210
mod(iter, verbose) == 0 &&
212211
@info log_row(Any[iter, ft, norm_∇f, λ, "V", α, norm(d), Δq])
213-
verysucc += 1 # TODO: check if this makes sense
212+
verysucc += 1
214213
else # sucessful
215214
if r < reduce_threshold
216215
α = decrease(PData, α, TR)
@@ -239,7 +238,7 @@ function SolverCore.solve!(
239238
# don't just cycle if we have to many unsucessful iterations
240239
stats.status = :user
241240
end
242-
callback(nlp_at_x, solver, stats)
241+
callback(nlp, solver, stats)
243242
end # while !OK
244243

245244
stats

0 commit comments

Comments
 (0)