Skip to content

Commit

Permalink
IPM: fixed computation of quadratic term in evaluate_subproblem_objec…
Browse files Browse the repository at this point in the history
…tive()
  • Loading branch information
cvanaret committed Dec 12, 2024
1 parent d2ffd7c commit 035dd45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ namespace uno {

double PrimalDualInteriorPointMethod::evaluate_subproblem_objective(const Direction& direction) const {
const double linear_term = dot(direction.primals, this->objective_gradient);
const double quadratic_term = 0.; // TODO this->sol->hessian.quadratic_product(direction.primals, direction.primals) / 2.;
const double quadratic_term = this->hessian.quadratic_product(direction.primals, direction.primals) / 2.;
return linear_term + quadratic_term;
}

Expand Down

0 comments on commit 035dd45

Please sign in to comment.