Skip to content

Commit

Permalink
Fixed bug in proximal contribution in l1RelaxedProblem::compute_hessi…
Browse files Browse the repository at this point in the history
…an_vector_product()
  • Loading branch information
cvanaret committed Dec 5, 2024
1 parent 8a98563 commit efcbe14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uno/reformulation/l1RelaxedProblem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
}
Expand Down

0 comments on commit efcbe14

Please sign in to comment.