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

Fix CLP termcode to LP_TIME_LIMIT only in the case a limit has been set #209

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

febattista
Copy link
Contributor

CLP declares "maximum iteration limit reached" also when the time limit is reached. Moreover, when the iteration limit is set to, e.g., ITER_LIMIT and si->isIterationLimitReached() == True, it may happen that si->getIterationCount() < ITER_LIMIT.

While this issue seems related more to CLP than SYMPHONY, it has been addressed in PR #199 by declaring term = LP_TIME_LIMIT when this inconsistency happens.

Here is proposed a more "robust" solution, by checking that at least a time limit has been previously set to CLP.

This PR fixes issue #206.

@tkralphs tkralphs merged commit 1d0a6e0 into coin-or:master Nov 25, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants