-
Notifications
You must be signed in to change notification settings - Fork 182
time limit support for impl LpExtractor #363
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
Conversation
|
The rust toolchain version was changed to 1.82 because indexmap 2.12.0 requires rustc 1.82. |
|
@mwillsey Forgot to do cargo fmt. |
|
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. |
|
@mwillsey I tried to refactor the code while retaining the two options of solving with a timeout and without a timeout. |
|
Great, thanks for the contribution! |
|
@mwillsey Could you also update the crate version of egg? The research team that I am part of is working on integrating egg into an FPGA technology mapping tool called EqMap, and this time limit modification is useful to us (https://github.com/cornell-zhang/eqmap/tree/good_lp). |
|
Done!
…On Wed, Dec 3, 2025 at 3:59 PM jk2997 ***@***.***> wrote:
*jk2997* left a comment (egraphs-good/egg#363)
<#363 (comment)>
@mwillsey <https://github.com/mwillsey> Could you also update the crate
version of egg? The research team that I am part of is working on
integrating egg into an FPGA technology mapping tool called EqMap, and this
time limit modification is useful to us (
https://github.com/cornell-zhang/eqmap/tree/good_lp).
—
Reply to this email directly, view it on GitHub
<#363 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANTPTBLULUNQCRVWVU6VQL3752ODAVCNFSM6AAAAACL3LV622VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMMBZGMZDQNJVHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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.