Skip to content

Commit 01a2007

Browse files
committed
Fix format
1 parent 3926dee commit 01a2007

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

src/JuMP/operators.jl

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -184,19 +184,11 @@ function evaluator(
184184
features::Vector{Symbol} = Symbol[:Grad, :Jac, :JacVec],
185185
)
186186
model = JuMP.Model()
187-
JuMP.@variable(
188-
model,
189-
x[1:input_dim],
190-
container = ArrayOfVariables,
191-
)
187+
JuMP.@variable(model, x[1:input_dim], container = ArrayOfVariables,)
192188
residual_expr = f(x)
193189
ad_model = Model()
194190
set_residual!(ad_model, JuMP.moi_function(residual_expr))
195-
eval = Evaluator(
196-
ad_model,
197-
mode,
198-
JuMP.index.(JuMP.all_variables(model)),
199-
)
191+
eval = Evaluator(ad_model, mode, JuMP.index.(JuMP.all_variables(model)))
200192
MOI.initialize(eval, features)
201193
return eval
202194
end

0 commit comments

Comments
 (0)