Skip to content

Commit ac4e258

Browse files
committed
🤖 Format .jl files
1 parent d6f054c commit ac4e258

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

src/AL_alg.jl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,20 @@ function ALSolver(reg_nlp::AbstractRegularizedNLPModel{T, V}; kwargs...) where {
156156
y = V(undef, ncon)
157157
has_bnds = has_bounds(nlp)
158158
sub_model = AugLagModel(nlp, V(undef, ncon), T(0), x, T(0), V(undef, ncon))
159-
sub_problem = RegularizedNLPModel(sub_model, reg_nlp.h,reg_nlp.selected)
159+
sub_problem = RegularizedNLPModel(sub_model, reg_nlp.h, reg_nlp.selected)
160160
sub_solver = R2Solver(reg_nlp; kwargs...)
161161
sub_stats = RegularizedExecutionStats(sub_problem)
162162
M = typeof(nlp)
163163
ST = typeof(sub_solver)
164-
return ALSolver{T, V, M, typeof(sub_problem), ST}(x, cx, y, has_bnds, sub_problem, sub_solver, sub_stats)
164+
return ALSolver{T, V, M, typeof(sub_problem), ST}(
165+
x,
166+
cx,
167+
y,
168+
has_bnds,
169+
sub_problem,
170+
sub_solver,
171+
sub_stats,
172+
)
165173
end
166174

167175
@doc (@doc ALSolver) function AL(::Val{:equ}, reg_nlp::AbstractRegularizedNLPModel; kwargs...)

test/runtests.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
using LinearAlgebra: length
22
using LinearAlgebra, Random, Test
33
using ProximalOperators
4-
using ADNLPModels, OptimizationProblems, OptimizationProblems.ADNLPProblems, NLPModels, NLPModelsModifiers, RegularizedProblems, RegularizedOptimization, SolverCore
4+
using ADNLPModels,
5+
OptimizationProblems,
6+
OptimizationProblems.ADNLPProblems,
7+
NLPModels,
8+
NLPModelsModifiers,
9+
RegularizedProblems,
10+
RegularizedOptimization,
11+
SolverCore
512

613
const global compound = 1
714
const global nz = 10 * compound

0 commit comments

Comments
 (0)