From a8f5bc89be6949516c35dc80cc56be4425426212 Mon Sep 17 00:00:00 2001 From: dpo Date: Mon, 15 Sep 2025 20:15:08 +0000 Subject: [PATCH] :robot: Format .jl files --- src/AL_alg.jl | 12 ++++++++++-- test/runtests.jl | 9 ++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/AL_alg.jl b/src/AL_alg.jl index b802f5ba..ef652c26 100644 --- a/src/AL_alg.jl +++ b/src/AL_alg.jl @@ -156,12 +156,20 @@ function ALSolver(reg_nlp::AbstractRegularizedNLPModel{T, V}; kwargs...) where { y = V(undef, ncon) has_bnds = has_bounds(nlp) sub_model = AugLagModel(nlp, V(undef, ncon), T(0), x, T(0), V(undef, ncon)) - sub_problem = RegularizedNLPModel(sub_model, reg_nlp.h,reg_nlp.selected) + sub_problem = RegularizedNLPModel(sub_model, reg_nlp.h, reg_nlp.selected) sub_solver = R2Solver(reg_nlp; kwargs...) sub_stats = RegularizedExecutionStats(sub_problem) M = typeof(nlp) ST = typeof(sub_solver) - return ALSolver{T, V, M, typeof(sub_problem), ST}(x, cx, y, has_bnds, sub_problem, sub_solver, sub_stats) + return ALSolver{T, V, M, typeof(sub_problem), ST}( + x, + cx, + y, + has_bnds, + sub_problem, + sub_solver, + sub_stats, + ) end @doc (@doc ALSolver) function AL(::Val{:equ}, reg_nlp::AbstractRegularizedNLPModel; kwargs...) diff --git a/test/runtests.jl b/test/runtests.jl index fb32ce5e..fe18947f 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,7 +1,14 @@ using LinearAlgebra: length using LinearAlgebra, Random, Test using ProximalOperators -using ADNLPModels, OptimizationProblems, OptimizationProblems.ADNLPProblems, NLPModels, NLPModelsModifiers, RegularizedProblems, RegularizedOptimization, SolverCore +using ADNLPModels, + OptimizationProblems, + OptimizationProblems.ADNLPProblems, + NLPModels, + NLPModelsModifiers, + RegularizedProblems, + RegularizedOptimization, + SolverCore const global compound = 1 const global nz = 10 * compound