@@ -148,8 +148,7 @@ function SolverCore.solve!(
148
148
[Int64, T, T, T, String, T, T, T],
149
149
)
150
150
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)
153
152
154
153
while ! OK && (stats. status != :user )
155
154
preprocess! (nlp_stop, PData, workspace, ∇f, norm_∇f, α)
@@ -210,7 +209,7 @@ function SolverCore.solve!(
210
209
verbose > 0 &&
211
210
mod (iter, verbose) == 0 &&
212
211
@info log_row (Any[iter, ft, norm_∇f, λ, " V" , α, norm (d), Δq])
213
- verysucc += 1 # TODO : check if this makes sense
212
+ verysucc += 1
214
213
else # sucessful
215
214
if r < reduce_threshold
216
215
α = decrease (PData, α, TR)
@@ -239,7 +238,7 @@ function SolverCore.solve!(
239
238
# don't just cycle if we have to many unsucessful iterations
240
239
stats. status = :user
241
240
end
242
- callback (nlp_at_x , solver, stats)
241
+ callback (nlp , solver, stats)
243
242
end # while !OK
244
243
245
244
stats
0 commit comments