Skip to content

linprog: remove_sparse_redundancy redundancy slow #11215

@hakeemo

Description

@hakeemo

In _remove_redundancy_sparse, spsolve is repeatedly called within a loop.
pi = scipy.sparse.linalg.spsolve(B.transpose(), e).reshape(-1, 1)
Since B does not change, it would be a lot faster to have an LU factorization outside of the loop

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions