File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change
1
+ # Configuration file for JuliaFormatter.jl
2
+ # For more information, see: https://domluna.github.io/JuliaFormatter.jl/stable/config/
3
+
4
+ always_for_in = true
5
+ always_use_return = true
6
+ margin = 80
7
+ remove_extra_newlines = true
8
+ short_to_long_function_def = true
Original file line number Diff line number Diff line change @@ -23,10 +23,12 @@ function MOI.Nonlinear.Evaluator(
23
23
:: Mode ,
24
24
ordered_variables:: Vector{MOI.VariableIndex} ,
25
25
)
26
- return MOI. Nonlinear. Evaluator (model, NLPEvaluator (model, ordered_variables))
26
+ return MOI. Nonlinear. Evaluator (
27
+ model,
28
+ NLPEvaluator (model, ordered_variables),
29
+ )
27
30
end
28
31
29
-
30
32
# Override basic math functions to return NaN instead of throwing errors.
31
33
# This is what NLP solvers expect, and sometimes the results aren't needed
32
34
# anyway, because the code may compute derivatives wrt constants.
Original file line number Diff line number Diff line change @@ -648,8 +648,7 @@ function test_linearity_no_hess()
648
648
MOI. initialize (evaluator, [:Grad , :Jac ])
649
649
# We initialized without the need for the hessian so
650
650
# the linearity shouldn't be computed.
651
- @test only (evaluator. backend. subexpressions). linearity ==
652
- ArrayAD. NONLINEAR
651
+ @test only (evaluator. backend. subexpressions). linearity == ArrayAD. NONLINEAR
653
652
return
654
653
end
655
654
You can’t perform that action at this time.
0 commit comments