-
Notifications
You must be signed in to change notification settings - Fork 17
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
reset Clp termination code to "time limit reached" when seeing "iteration limit reached" in dual simplex resolve #199
Conversation
@yuxies I don't think we can just always |
The change here is inside the function |
If I understand correctly, this is not true. We are indeed expecting |
Ok, maybe we can add another condition before this line "checking whether we have set an iteration limit". Then the change will look like:
|
Hmm, this is probably reasonable. The only edge case would b if an iteration limit is set, but the time limit is nevertheless being reached. Can we check the actual number of iterations or the actual time to see which is being triggered? |
Just change the condition to check the actual iteration number. |
Yes! But could you open this against |
Rebased the changes onto the master branch. Note: there is a similar case switch in this function |
Yes, I guess we need to make the same change in |
OK, looks good! |
…turns "iteration limit reached" in dual simplex resolve (#199) (cherry picked from commit 3bd74ee) Signed-off-by: Ted Ralphs <[email protected]>
Change the return code in
dual_simplex
fromLP_D_ITLIM
toLP_TIME_LIMIT
if use Clp.ClpModel::hitMaximumIterations()
).