From efcbe14751705922dca1a14e5b712259a28c6a68 Mon Sep 17 00:00:00 2001 From: Charlie Vanaret Date: Thu, 5 Dec 2024 14:20:43 +0100 Subject: [PATCH] Fixed bug in proximal contribution in l1RelaxedProblem::compute_hessian_vector_product() --- uno/reformulation/l1RelaxedProblem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uno/reformulation/l1RelaxedProblem.cpp b/uno/reformulation/l1RelaxedProblem.cpp index da9ae3cc..99262816 100644 --- a/uno/reformulation/l1RelaxedProblem.cpp +++ b/uno/reformulation/l1RelaxedProblem.cpp @@ -121,7 +121,7 @@ namespace uno { for (size_t variable_index: Range(this->model.number_variables)) { const double scaling = std::min(1., 1./std::abs(this->proximal_center[variable_index])); const double proximal_term = this->proximal_coefficient * scaling * scaling; - result[variable_index] += proximal_term * x[variable_index] * x[variable_index]; + result[variable_index] += proximal_term * x[variable_index]; } } }