Skip to content

Commit 84f3d1e

Browse files
MaxenceGollierdpo
authored andcommitted
🤖 Format .jl files
1 parent ae86bac commit 84f3d1e

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

docs/make.jl

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Documenter, DocumenterCitations
1+
using Documenter, DocumenterCitations
22

33
using RegularizedOptimization
44

@@ -15,16 +15,13 @@ makedocs(
1515
),
1616
sitename = "RegularizedOptimization.jl",
1717
pages = [
18-
"Home" => "index.md",
18+
"Home" => "index.md",
1919
"Algorithms" => "algorithms.md",
20-
"Examples" => [
21-
joinpath("examples", "basic.md"),
22-
joinpath("examples", "ls.md"),
23-
],
20+
"Examples" => [joinpath("examples", "basic.md"), joinpath("examples", "ls.md")],
2421
"Reference" => "reference.md",
25-
"Bibliography" => "bibliography.md"
26-
],
27-
plugins = [bib],
22+
"Bibliography" => "bibliography.md",
23+
],
24+
plugins = [bib],
2825
)
2926

3027
deploydocs(

src/utils.jl

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,31 @@ function get_status(
156156
end
157157
end
158158

159-
function update_bounds!(l_bound_m_x::V, u_bound_m_x::V, l_bound::V, u_bound::V, xk::V,) where {V <: AbstractVector}
159+
function update_bounds!(
160+
l_bound_m_x::V,
161+
u_bound_m_x::V,
162+
l_bound::V,
163+
u_bound::V,
164+
xk::V,
165+
) where {V <: AbstractVector}
160166
@. l_bound_m_x = l_bound - xk
161167
@. u_bound_m_x = u_bound - xk
162168
end
163169

164-
function update_bounds!(l_bound_m_x::V, u_bound_m_x::V, is_subsolver::Bool, l_bound::V, u_bound::V, xk::V, Δ::T) where {T <: Real, V <: AbstractVector{T}}
170+
function update_bounds!(
171+
l_bound_m_x::V,
172+
u_bound_m_x::V,
173+
is_subsolver::Bool,
174+
l_bound::V,
175+
u_bound::V,
176+
xk::V,
177+
Δ::T,
178+
) where {T <: Real, V <: AbstractVector{T}}
165179
if is_subsolver
166180
@. l_bound_m_x = max(xk - Δ, l_bound)
167181
@. u_bound_m_x = min(xk + Δ, u_bound)
168182
else
169183
@. l_bound_m_x = max(-Δ, l_bound - xk)
170184
@. u_bound_m_x = min(Δ, u_bound - xk)
171185
end
172-
end
186+
end

0 commit comments

Comments
 (0)