Fix: raise ValueError when run_simplex exceeds max iterations #17750
Annotations
4 errors
|
ruff
Process completed with exit code 1.
|
|
ruff (EM102):
linear_programming/simplex.py#L122
linear_programming/simplex.py:122:13: EM102 Exception must not use an f-string literal, assign to variable first
help: Assign to variable; remove f-string literal
|
|
ruff (B007):
linear_programming/simplex.py#L109
linear_programming/simplex.py:109:13: B007 Loop control variable `iteration` not used within loop body
help: Rename unused `iteration` to `_iteration`
|
|
ruff (I001):
linear_programming/simplex.py#L1
linear_programming/simplex.py:1:1: I001 Import block is un-sorted or un-formatted
help: Organize imports
|