Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: optimize: tweaked linprog status 4 error message #10025

Merged
merged 1 commit into from Apr 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 9 additions & 4 deletions scipy/optimize/_linprog_util.py
Expand Up @@ -1278,13 +1278,18 @@ def _check_result(x, fun, status, slack, con, lb, ub, tol, message):

if status == 0 and not is_feasible:
status = 4
message = ("The solution does not satisfy the constraints, yet "
message = ("The solution does not satisfy the constraints within the "
"required tolerance of " + "{:.2E}".format(tol) + ", yet "
"no errors were raised and there is no certificate of "
"infeasibility or unboundedness. This is known to occur "
"if the `presolve` option is False and the problem is "
"infeasible. If you encounter this under different "
"circumstances, please submit a bug report. Otherwise, "
"please enable presolve.")
"infeasible. This can also occur due to the limited "
"accuracy of the `interior-point` method. Check whether "
"the slack and constraint residuals are acceptable; "
"if not, consider enabling presolve, reducing option "
"`tol`, and/or using method `revised simplex`. "
"If you encounter this message under different "
"circumstances, please submit a bug report.")
elif status == 0 and contains_nans:
status = 4
message = ("Numerical difficulties were encountered but no errors "
Expand Down