Skip to content

cvxpy/unchecked-solver-status

Pack Severity Fix Versions
CVXPY warning none, edit by hand All versions

A standalone problem.solve() can leave solution values unavailable. Read problem.status before consuming the problem's value or the value of a variable it owns. Decide which statuses satisfy the application's tolerances.

The rule follows straight-line code in the same block and stops at a status read, a rebind or a control-flow join.

Check the CVXPY problem status before using values from this solve.

See all rules in the CVXPY pack.