Skip to content

Commit 6e4f6be

Browse files
🤖 Format .jl files (#156)
Co-authored-by: tmigot <tmigot@users.noreply.github.com>
1 parent 701af97 commit 6e4f6be

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/tronls.jl

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ function SolverCore.solve!(
279279
continue
280280
end
281281
tr.ratio = ared / pred
282-
verbose > 0 && mod(stats.iter, verbose) == 0 && @info log_row([stats.iter, fx, πx, Δ, tr.ratio, cginfo])
282+
verbose > 0 &&
283+
mod(stats.iter, verbose) == 0 &&
284+
@info log_row([stats.iter, fx, πx, Δ, tr.ratio, cginfo])
283285

284286
s_norm = nrm2(n, s)
285287
if num_success_iters == 0
@@ -333,12 +335,12 @@ function SolverCore.solve!(
333335
callback(nlp, solver, stats)
334336

335337
done =
336-
(stats.status == :first_order) ||
337-
(stats.status == :max_eval) ||
338-
(stats.status == :max_time) ||
339-
(stats.status == :user) ||
340-
(stats.status == :small_step) ||
341-
(stats.status == :neg_pred)
338+
(stats.status == :first_order) ||
339+
(stats.status == :max_eval) ||
340+
(stats.status == :max_time) ||
341+
(stats.status == :user) ||
342+
(stats.status == :small_step) ||
343+
(stats.status == :neg_pred)
342344
end
343345
verbose > 0 && @info log_row(Any[stats.iter, fx, πx, tr.radius])
344346

src/trunkls.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ function SolverCore.solve!(
384384
set_dual_residual!(stats, ∇fNorm2)
385385

386386
optimal = ∇fNorm2 ϵ
387-
387+
388388
set_status!(
389389
stats,
390390
get_status(

0 commit comments

Comments
 (0)