Skip to content

Commit e706d97

Browse files
🤖 Format .jl files (#382)
Co-authored-by: tmigot <[email protected]>
1 parent f286ff0 commit e706d97

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/ADNLPProblems/genbroydenb.jl

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ function genbroydenb(; use_nls::Bool = false, kwargs...)
55
return genbroydenb(Val(model); kwargs...)
66
end
77

8-
function genbroydenb(::Val{:nlp}; n::Int = default_nvar, type::Type{T} = Float64, kwargs...) where {T}
8+
function genbroydenb(
9+
::Val{:nlp};
10+
n::Int = default_nvar,
11+
type::Type{T} = Float64,
12+
kwargs...,
13+
) where {T}
914
p = 7 // 3
1015
function f(x; n = length(x))
1116
s = zero(T)
@@ -25,7 +30,12 @@ function genbroydenb(::Val{:nlp}; n::Int = default_nvar, type::Type{T} = Float64
2530
return ADNLPModels.ADNLPModel(f, x0, name = "genbroydenb", minimize = true; kwargs...)
2631
end
2732

28-
function genbroydenb(::Val{:nls}; n::Int = default_nvar, type::Type{T} = Float64, kwargs...) where {T}
33+
function genbroydenb(
34+
::Val{:nls};
35+
n::Int = default_nvar,
36+
type::Type{T} = Float64,
37+
kwargs...,
38+
) where {T}
2939
p = 7 // 6
3040
function F!(r, x)
3141
m = length(x)
@@ -42,6 +52,6 @@ function genbroydenb(::Val{:nls}; n::Int = default_nvar, type::Type{T} = Float64
4252
end
4353
return r
4454
end
45-
x0 = fill(-one(T), n)
55+
x0 = fill(-one(T), n)
4656
return ADNLPModels.ADNLSModel!(F!, x0, n, name = "genbroydenb-nls"; kwargs...)
4757
end

0 commit comments

Comments
 (0)