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

timeLimit Parameter Ignored in pulp.FSCIP_CMD Solver #707

Open
4 of 14 tasks
kami9811 opened this issue Dec 6, 2023 · 2 comments
Open
4 of 14 tasks

timeLimit Parameter Ignored in pulp.FSCIP_CMD Solver #707

kami9811 opened this issue Dec 6, 2023 · 2 comments

Comments

@kami9811
Copy link

kami9811 commented Dec 6, 2023

Details for the issue

What did you do?

I attempted to use the timeLimit parameter with the pulp.FSCIP_CMD solver to restrict the optimization time for solving a linear programming problem. The parameter was set as an argument while initializing the FSCIP_CMD solver instance.

What did you expect to see?

I expected the solver to halt the optimization process when the specified time limit was reached, thereby respecting the time constraint set by timeLimit.

What did you see instead?

Despite specifying the timeLimit parameter, the solver seems to ignore this constraint and continues the optimization process beyond the set time limit. The optimization completes, but it does so in a time frame that exceeds the specified limit, indicating that the timeLimit parameter is not being effectively enforced or recognized by the solver.

Useful extra information

In pulp.SCIP_CMD, the parameter is fine as expected.

What operating system are you using?

  • Windows: ( version: ___ )
  • Linux: ( distro: ___ )
  • Mac OS: ( version: ___ )
  • Other: ___

I'm using python version:

  • 2.7
  • 3.4
  • 3.5
  • 3.6
  • Other: 3.10

I installed PuLP via:

Did you also

@pchtsp
Copy link
Collaborator

pchtsp commented Jan 16, 2024

Hello! thanks for the report. can you provide the logs of the solver? or a reproducible example?

@berkomeratay
Copy link

berkomeratay commented Dec 31, 2024

I also have this this issue with FSCIP_CMD api, only difference with the issue holder @kami9811 is that I have installed PuLP via pip. I guess this is a common bug for both versions.

I just went around the problem by giving options = ["TimeLimit = 60"] for a minute long limit.

But there might be something troubling here since:

As far as I understand from scip_api.py this api tries to give fscip limits/time parameter which is a scip parameter.

Since FSCIP uses UG I looked at their documentation as well and UG uses TimeLimit, I guess that's why it worked. I am not an expert on this, I might have been using the terms wrong but if you need a practical solution you can use the options for time limit.

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

No branches or pull requests

3 participants