Skip to content

Commit 490ce31

Browse files
committed
Run formatter
1 parent 89d8e38 commit 490ce31

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/MOI_wrapper/MOI_nonlinear.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,13 @@ function _process_nonlinear(
202202
elseif typeof(s) == Float64
203203
_add_expression_tree_constant(opcode, data, parent, s, parent_index)
204204
elseif typeof(s) == Int64
205-
_add_expression_tree_constant(opcode, data, parent, convert(Float64, s), parent_index)
205+
_add_expression_tree_constant(
206+
opcode,
207+
data,
208+
parent,
209+
convert(Float64, s),
210+
parent_index,
211+
)
206212
else
207213
throw(MOI.UnsupportedAttribute(s))
208214
end

test/MOI/MOI_wrapper.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,6 @@ function test_nonlinear_constraint_vector_delete()
12121212
end
12131213

12141214
function test_nonlinear_pow2()
1215-
12161215
if !Gurobi._supports_nonlinear()
12171216
return
12181217
end
@@ -1237,11 +1236,9 @@ function test_nonlinear_pow2()
12371236
c = MOI.add_constraint(model, g, MOI.LessThan(1.0))
12381237
MOI.optimize!(model)
12391238
@test (MOI.get(model, MOI.ObjectiveValue()), 2 / sqrt(2); atol = 1e-3)
1240-
12411239
end
12421240

12431241
function test_nonlinear_scalarquadraticfunction()
1244-
12451242
if !Gurobi._supports_nonlinear()
12461243
return
12471244
end
@@ -1266,7 +1263,6 @@ function test_nonlinear_scalarquadraticfunction()
12661263
c = MOI.add_constraint(model, g, MOI.LessThan(1.0))
12671264
MOI.optimize!(model)
12681265
@test (MOI.get(model, MOI.ObjectiveValue()), 2 / sqrt(2); atol = 1e-3)
1269-
12701266
end
12711267

12721268
function test_ModelName_too_long()

0 commit comments

Comments
 (0)