Skip to content

The createOsqpSparseMatrix does not correctly handle empty sparse matrix. #142

@Levi-Armstrong

Description

@Levi-Armstrong

When setting the hessian which has zero nonZero entries it creates an osqp hessian with one value initialized to garbage.

Current:

OSQP Hessian:
     nzmax:1
         m:19
         n:19
         p:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
         i:93825007825568
         x:4.64e-310

Expected:

OSQP Hessian:
     nzmax:0
         m:19
         n:19
         p:0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
         i:
         x:

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