Skip to content

Commit f4825d5

Browse files
🤖 Format .jl files (#140)
Co-authored-by: tmigot <[email protected]>
1 parent 326d809 commit f4825d5

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

src/NLPModelsIpopt.jl

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,36 @@ function SolverCore.solve!(
291291

292292
# Callback
293293
function solver_callback(
294-
alg_mod, iter_count, obj_value, inf_pr, inf_du, mu, d_norm, regularization_size, alpha_du, alpha_pr, ls_trials, args...; stats = stats
294+
alg_mod,
295+
iter_count,
296+
obj_value,
297+
inf_pr,
298+
inf_du,
299+
mu,
300+
d_norm,
301+
regularization_size,
302+
alpha_du,
303+
alpha_pr,
304+
ls_trials,
305+
args...;
306+
stats = stats,
295307
)
296308
set_residuals!(stats, inf_pr, inf_du)
297309
set_iter!(stats, Int(iter_count))
298-
return callback(alg_mod, iter_count, obj_value, inf_pr, inf_du, mu, d_norm, regularization_size, alpha_du, alpha_pr, ls_trials, args...)
310+
return callback(
311+
alg_mod,
312+
iter_count,
313+
obj_value,
314+
inf_pr,
315+
inf_du,
316+
mu,
317+
d_norm,
318+
regularization_size,
319+
alpha_du,
320+
alpha_pr,
321+
ls_trials,
322+
args...,
323+
)
299324
end
300325
SetIntermediateCallback(problem, solver_callback)
301326

0 commit comments

Comments
 (0)