Skip to content

Commit 8580c50

Browse files
Format .jl files (#71)
Co-authored-by: sshin23 <[email protected]>
1 parent f0cf038 commit 8580c50

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/nlp.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,7 @@ function variable(
340340

341341
end
342342

343-
function variable(
344-
c::C;
345-
kwargs...
346-
) where {T,C<:ExaCore{T}}
343+
function variable(c::C; kwargs...) where {T,C<:ExaCore{T}}
347344

348345
return variable(c, 1; kwargs...)[1]
349346
end
@@ -381,7 +378,7 @@ end
381378
382379
Adds objective terms specified by a `expr` and `pars` to `core`, and returns an `Objective` object.
383380
"""
384-
function objective(c::C, expr::N, pars = 1:1) where {C<: ExaCore, N<:AbstractNode}
381+
function objective(c::C, expr::N, pars = 1:1) where {C<:ExaCore,N<:AbstractNode}
385382
f = _simdfunction(expr, c.nobj, c.nnzg, c.nnzh)
386383

387384
_objective(c, f, pars)
@@ -721,7 +718,8 @@ for (thing, val) in [(:solution, 1), (:multipliers_L, 0), (:multipliers_U, 2)]
721718
end
722719
end
723720

724-
solution(result::SolverCore.AbstractExecutionStats, x::Var{I}) where I = return result.solution[x.i]
721+
solution(result::SolverCore.AbstractExecutionStats, x::Var{I}) where {I} =
722+
return result.solution[x.i]
725723

726724

727725
"""

0 commit comments

Comments
 (0)