-
Notifications
You must be signed in to change notification settings - Fork 63
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
violation: right hand side is violated by 1049.999 #48
Comments
If it's a numerical issue, then it sometimes helps to set parameter |
I observed more or less the same issue when solving big multi-commodity flow like (enriched) models using or-tools with scip. It may sound harsh, as i never analyzed / debugged it nor did i create upstream issues, but i would warn a bit about this combination (for now). (The only worklog of mine i can find is my git-msg: Now the issue here is: where does this come from and "who is to blame" (excuse the wording). It's not easy to track all relevant actors here. Just a remark from what i understood:
There are other factors, probably irrelevant, like your binaries missing symmetry-reduction although always active in bazel-based builds (and maybe in cmake-based builds). Seeing the amount of violation compared to the "smallness" of your problem, it really looks like something rather buggy than a num-tolerance thing (imho). In my case, instances were much much bigger. I think, i would start with turning off presolve completely and retrying. If still broken, i would claim Maybe you are more helpful than i were and can offer a reproducable test-case for people wanting to analyze it :-). There are probably many paths to achieve that (python code with data; but also protobuf-based serialization which might be accessible through python-wrappers too) howewer. |
that claim would very much be an over-generalization ;)
Overall, the best thing to do is a simple model in MPS / LP format, no need to reinvent the wheel, these are good standards in the MIP community. |
@quant2008 one thing that can lead to such issues is ill-conditioned problems, typically having very large or very small coefficients. If you can, check if some constraints have these bad numerics. Do you know if the final obtained solution is indeed valid for your problem or not, checking it with an external program? Or at least checking the optimal value? |
|
The messages
refer to solutions given to SCIP by the caller. They just say that 2 of these solutions are not feasible. |
Hello, I use or-tools with scip to solve my case. In one case, I get the message "violation: right hand side is violated by 1049.999",
it seems this is a numerical problem. I wonder how to resolve this problem.
The text was updated successfully, but these errors were encountered: