From b51bfeec74851957b76a1fefd5208860656a255c Mon Sep 17 00:00:00 2001 From: dpo Date: Tue, 26 Mar 2024 22:42:54 +0000 Subject: [PATCH] :robot: Format .jl files --- examples/demo-bpdn-constr.jl | 8 +------- examples/demo-nnmf-constr.jl | 9 +-------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/examples/demo-bpdn-constr.jl b/examples/demo-bpdn-constr.jl index 7cda948d..85c3aa20 100644 --- a/examples/demo-bpdn-constr.jl +++ b/examples/demo-bpdn-constr.jl @@ -9,13 +9,7 @@ include("plot-utils-bpdn.jl") Random.seed!(12) function demo_solver(f, nls, sol, h, χ, suffix = "l0-linf") - options = ROSolverOptions( - ν = 1.0, - β = 1e16, - ϵa = 1e-6, - ϵr = 1e-6, - verbose = 10, - ) + options = ROSolverOptions(ν = 1.0, β = 1e16, ϵa = 1e-6, ϵr = 1e-6, verbose = 10) @info " using TR to solve with" h χ TR_out = TR(LSR1Model(f), h, χ, options, x0 = f.meta.x0) diff --git a/examples/demo-nnmf-constr.jl b/examples/demo-nnmf-constr.jl index d51327da..a8932939 100644 --- a/examples/demo-nnmf-constr.jl +++ b/examples/demo-nnmf-constr.jl @@ -9,14 +9,7 @@ include("plot-utils-nnmf.jl") Random.seed!(1234) function demo_solver(f, h, χ, selected, Avec, m, n, k, suffix = "l0-linf") - options = ROSolverOptions( - ν = 1.0e-3, - β = 1e16, - ϵa = 1e-6, - ϵr = 1e-6, - verbose = 10, - maxIter = 500, - ) + options = ROSolverOptions(ν = 1.0e-3, β = 1e16, ϵa = 1e-6, ϵr = 1e-6, verbose = 10, maxIter = 500) @info " using TR to solve with" h χ TR_out = TR(LSR1Model(f), h, χ, options, selected = selected) plot_nnmf(TR_out, Avec, m, n, k, "tr-r2-$suffix")