Skip to content

Conversation

@jk2997
Copy link

@jk2997 jk2997 commented Nov 12, 2025

Hello,

good_lp has a WithTimeLimit trait implemented for structs CoinCbcProblem and HighsProblem that allows the user to set a time limit for CBC and HiGHS (https://docs.rs/good_lp/latest/good_lp/solvers/trait.WithTimeLimit.html). Could there be alternate versions of solve_with() and solve_multiple_with() methods in impl LpExtractor that allow the egg library user to set timeouts if they are using LP extraction? If you could review my code, it would be greatly appreciated.

@jk2997
Copy link
Author

jk2997 commented Nov 12, 2025

The rust toolchain version was changed to 1.82 because indexmap 2.12.0 requires rustc 1.82.

@jk2997
Copy link
Author

jk2997 commented Nov 15, 2025

@mwillsey Forgot to do cargo fmt.

@mwillsey
Copy link
Member

Hi @jk2997, this looks great. Is there a way to share code between the _with_timelimit functions and the ones without? The code looks almost identical.

@jk2997
Copy link
Author

jk2997 commented Nov 27, 2025

@mwillsey I tried to refactor the code while retaining the two options of solving with a timeout and without a timeout.

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