-
Notifications
You must be signed in to change notification settings - Fork 0
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
Overflow error in Gomory Cutting Plane method #1
Comments
Fixed this method, at least I think so. |
After fixing other errors, this algorithm started causing overflow errors for integer values in rational numbers when trying to solve some problems, including this. The only fix I see is to use some library like GMP, but I'm not doing it because it will require me to rewrite everything. For now, the base cutting plane algorithm can't solve all problems (I think it will be correct to say it can solve some). |
And so... I decided to fix this issue by using BigInt class made by this kind man. It works for now, but I saw this issue and I think I'll also implement GMP variant later. |
How to reproduse
in application main.cpp
Example
problem
format for input file
Expected answer
Now
It can't solve this problem because of integer overflow
The text was updated successfully, but these errors were encountered: