Skip to content

I'm using osqp-eigen v0.7.0, wondering if Hessian Matrix is supporting only symmetric matrix, rather than upper triangular matrix. #152

@ZhiDaoYongYuan

Description

@ZhiDaoYongYuan

My partial code as follows:

// symmetric matrix
for (int i = 0; i < n - 1; ++i)
{
    hessian.insert(i, i + 1) = 1.0;
    hessian.insert(i + 1, i) = 1.0;
}
// upper triangular matrix
for (int i = 0; i < n - 1; ++i)
{
    hessian.insert(i, i + 1) = 2.0;
}

When I used the symmetric matrix, I got the true solution(I guess). Instead, solver return
status: problem non convex
while using upper triangular matrix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions