From 399e2cbfac8ab3009f3573118279c53cb40d7c99 Mon Sep 17 00:00:00 2001 From: Geoffroy Leconte Date: Tue, 11 Apr 2023 00:49:49 -0400 Subject: [PATCH] contrained fh option --- benchmarks/tables/fh-table.jl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/benchmarks/tables/fh-table.jl b/benchmarks/tables/fh-table.jl index bef74068..6a705800 100644 --- a/benchmarks/tables/fh-table.jl +++ b/benchmarks/tables/fh-table.jl @@ -4,11 +4,16 @@ using ADNLPModels, DifferentialEquations display_sol = true Random.seed!(1234) + +cstr = false +ctr_val = cstr ? 0.5 : -Inf +lvar = [-Inf, ctr_val, -Inf, -Inf, -Inf] +uvar = fill(Inf, 5) data, simulate, resid, misfit, x0 = RegularizedProblems.FH_smooth_term() -model = ADNLPModel(misfit, ones(5)) +model = ADNLPModel(misfit, ones(5), lvar, uvar) f = LBFGSModel(model) +λ = cstr ? 2.0e1 : 1.0e1 -λ = 1.0e1 h = NormL1(λ) ν = 1.0e0 verbose = 0 #10