Skip to content

linprog returns an incorrect message #12485

@rafaelrojasmiliani

Description

@rafaelrojasmiliani

On scipy/scipy/optimize/_linprog_util.py, line 512, the method _presolve generates the incorrect message
message = ("The problem is (trivially) infeasible due to a row "
"of zeros in the equality constraint matrix with a "
"nonzero corresponding constraint value."
after testing zero_row = np.array(np.sum(A_ub != 0, axis=1) == 0).flatten().
The message should be
message = ("The problem is (trivially) infeasible due to a row "
"of zeros in the INEQUALITY constraint matrix with a "
"nonzero corresponding constraint value."

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions