Skip to content

Commit 905173f

Browse files
committed
🤖 Format .jl files
1 parent 6d8df12 commit 905173f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/partitioned_data/partitionedNLPModels/PartiallySeparableNLPModel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ function show(io::IO, psnlp::PartiallySeparableNLPModel)
9999
show(io, psnlp.nlp)
100100
show(io, psnlp.part_data)
101101
return nothing
102-
end
102+
end

src/partitioned_data/partitioned_data_pqn.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -290,15 +290,15 @@ end
290290

291291
show(psnlp::PartitionedDataTRPQN) = show(stdout, psnlp)
292292

293-
function show(io::IO, part_data::PartitionedDataTRPQN)
293+
function show(io::IO, part_data::PartitionedDataTRPQN)
294294
println(io, "\nPartitioned structure summary:")
295-
n = get_n(part_data)
295+
n = get_n(part_data)
296296
N = get_N(part_data)
297297
M = get_M(part_data)
298298
S = [" element functions", " distinct element functions"]
299299
V = [N, M]
300300
print(io, join(NLPModels.lines_of_hist(S, V), "\n"))
301-
301+
302302
@printf(io, "\n %20s:\n", "Element statistics")
303303
element_functions = part_data.vec_elt_fun
304304

@@ -311,17 +311,17 @@ function show(io::IO, part_data::PartitionedDataTRPQN)
311311
S1 = ["linear", "quadratic", "cubic", "general"]
312312
V1 = [linear, quadratic, cubic, general]
313313
LH1 = NLPModels.lines_of_hist(S1, V1)
314-
314+
315315
element_function_convexity_status = (elt_fun -> elt_fun.convexity_status).(element_functions)
316316
convex = count(is_convex, element_function_convexity_status)
317317
concave = count(is_concave, element_function_convexity_status)
318318
general = count(is_unknown, element_function_convexity_status)
319-
319+
320320
S2 = ["convex", "concave", "general"]
321321
V2 = [convex, concave, general]
322322
LH2 = NLPModels.lines_of_hist(S2, V2)
323323

324-
LH = map((i) -> LH1[i]*LH2[i], 1:3)
324+
LH = map((i) -> LH1[i] * LH2[i], 1:3)
325325
push!(LH, LH1[4])
326326
print(io, join(LH, "\n"))
327327

@@ -345,8 +345,8 @@ function show(io::IO, part_data::PartitionedDataTRPQN)
345345
V2 = [min_length_variable, mean_length_variable, max_length_variable]
346346
LH2 = NLPModels.lines_of_hist(S2, V2)
347347

348-
LH = map((i,j) -> i*j, LH1, LH2)
349-
print(io, join(LH, "\n"))
348+
LH = map((i, j) -> i * j, LH1, LH2)
349+
print(io, join(LH, "\n"))
350350

351351
return nothing
352352
end

0 commit comments

Comments
 (0)