From 95fd1f0e2d01f6adabce96880dac2ba278c3acb4 Mon Sep 17 00:00:00 2001 From: MaxenceGollier Date: Wed, 1 Oct 2025 19:03:48 +0000 Subject: [PATCH] :robot: Format .jl files --- docs/make.jl | 15 ++++++--------- src/utils.jl | 20 +++++++++++++++++--- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/docs/make.jl b/docs/make.jl index 58bed37c..473cd598 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -1,4 +1,4 @@ -using Documenter, DocumenterCitations +using Documenter, DocumenterCitations using RegularizedOptimization @@ -15,16 +15,13 @@ makedocs( ), sitename = "RegularizedOptimization.jl", pages = [ - "Home" => "index.md", + "Home" => "index.md", "Algorithms" => "algorithms.md", - "Examples" => [ - joinpath("examples", "basic.md"), - joinpath("examples", "ls.md"), - ], + "Examples" => [joinpath("examples", "basic.md"), joinpath("examples", "ls.md")], "Reference" => "reference.md", - "Bibliography" => "bibliography.md" - ], - plugins = [bib], + "Bibliography" => "bibliography.md", + ], + plugins = [bib], ) deploydocs( diff --git a/src/utils.jl b/src/utils.jl index b0586372..ee257198 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -156,12 +156,26 @@ function get_status( end end -function update_bounds!(l_bound_m_x::V, u_bound_m_x::V, l_bound::V, u_bound::V, xk::V,) where {V <: AbstractVector} +function update_bounds!( + l_bound_m_x::V, + u_bound_m_x::V, + l_bound::V, + u_bound::V, + xk::V, +) where {V <: AbstractVector} @. l_bound_m_x = l_bound - xk @. u_bound_m_x = u_bound - xk end -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}} +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}} if is_subsolver @. l_bound_m_x = max(xk - Δ, l_bound) @. u_bound_m_x = min(xk + Δ, u_bound) @@ -169,4 +183,4 @@ function update_bounds!(l_bound_m_x::V, u_bound_m_x::V, is_subsolver::Bool, l_bo @. l_bound_m_x = max(-Δ, l_bound - xk) @. u_bound_m_x = min(Δ, u_bound - xk) end -end \ No newline at end of file +end