From 08439f1846d214201d2e280070c485ca5956a6e5 Mon Sep 17 00:00:00 2001 From: Geoffroy Leconte Date: Thu, 1 Jun 2023 12:21:43 -0400 Subject: [PATCH] fix errors demos --- examples/demo-fh.jl | 1 + examples/demo-nnmf-constr.jl | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/demo-fh.jl b/examples/demo-fh.jl index ffef31f7..702846a6 100644 --- a/examples/demo-fh.jl +++ b/examples/demo-fh.jl @@ -1,3 +1,4 @@ +using LinearAlgebra using DifferentialEquations, ProximalOperators using ADNLPModels, NLPModels, NLPModelsModifiers, RegularizedOptimization, RegularizedProblems diff --git a/examples/demo-nnmf-constr.jl b/examples/demo-nnmf-constr.jl index 1300608a..e6fc8f64 100644 --- a/examples/demo-nnmf-constr.jl +++ b/examples/demo-nnmf-constr.jl @@ -28,11 +28,6 @@ function demo_solver(f, h, χ, selected, Avec, m, n, k, suffix = "l0-linf") R2_out = R2(f, h, options, selected = selected) plot_nnmf(R2_out, Avec, m, n, k, "r2-$suffix") - @info " using TR with R2 as subproblem to solve with" h χ - reset!(f) - TR_out = TR(f, h, χ, options, selected = selected) - plot_nnmf(TR_out, Avec, m, n, k, "tr-r2-$suffix") - subsolver_options = ROSolverOptions(spectral = false, psb = true, ϵa = options.ϵa) @info " using TR with TRDH as subproblem to solve with" h χ reset!(f)