Skip to content

Commit 108af65

Browse files
authored
Merge pull request #60 from fabinsch/topic/objVal
Fix calculation of objection function value
2 parents 3ff2d25 + dea23f3 commit 108af65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/proxsuite/proxqp/dense/solver.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,7 @@ qp_solve( //
12321232

12331233
{
12341234
// EigenAllowAlloc _{};
1235+
qpresults.info.objValue = 0;
12351236
for (Eigen::Index j = 0; j < qpmodel.dim; ++j) {
12361237
qpresults.info.objValue +=
12371238
0.5 * (qpresults.x(j) * qpresults.x(j)) * qpmodel.H(j, j);

0 commit comments

Comments
 (0)