Skip to content

Commit

Permalink
🤖 Format .jl files
Browse files Browse the repository at this point in the history
  • Loading branch information
dpo committed Mar 26, 2024
1 parent b8831fb commit b51bfee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
8 changes: 1 addition & 7 deletions examples/demo-bpdn-constr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 1 addition & 8 deletions examples/demo-nnmf-constr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b51bfee

Please sign in to comment.