Skip to content

Commit 54c393a

Browse files
🤖 Format .jl files (#508)
Co-authored-by: tmigot <[email protected]>
1 parent 80bf4aa commit 54c393a

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/nls/api.jl

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -460,13 +460,19 @@ In-place evaluation of constraints and objective for AbstractNLSModel.
460460
If `recompute` is `true`, then `Fx` is updated with the residual at `x`.
461461
"""
462462
function objcons!(nls::AbstractNLSModel{T, S}, x::AbstractVector, c::AbstractVector) where {T, S}
463-
@lencheck nls.meta.nvar x
464-
@lencheck nls.meta.ncon c
465-
Fx = S(undef, nls.nls_meta.nequ)
466-
return objcons!(nls, x, c, Fx)
463+
@lencheck nls.meta.nvar x
464+
@lencheck nls.meta.ncon c
465+
Fx = S(undef, nls.nls_meta.nequ)
466+
return objcons!(nls, x, c, Fx)
467467
end
468468

469-
function objcons!(nls::AbstractNLSModel, x::AbstractVector, c::AbstractVector, Fx::AbstractVector; recompute::Bool=true)
469+
function objcons!(
470+
nls::AbstractNLSModel,
471+
x::AbstractVector,
472+
c::AbstractVector,
473+
Fx::AbstractVector;
474+
recompute::Bool = true,
475+
)
470476
cons_nln!(nls, x, c)
471477
return obj(nls, x, Fx; recompute = recompute), c
472478
end

0 commit comments

Comments
 (0)