Skip to content

impl WithTimeLimit for LpSolveProblem, CPLEXProblem, and lp-solvers Model<T>#116

Merged
lovasoa merged 2 commits intorust-or:mainfrom
jk2997:pr2
Nov 12, 2025
Merged

impl WithTimeLimit for LpSolveProblem, CPLEXProblem, and lp-solvers Model<T>#116
lovasoa merged 2 commits intorust-or:mainfrom
jk2997:pr2

Conversation

@jk2997
Copy link
Contributor

@jk2997 jk2997 commented Nov 12, 2025

Hello,

These are possible implementations of the trait WithTimeLimit for structs LpSolveProblem, CPLEXProblem, and lp-solvers Model. The crate cplex-rs was updated to 0.1.9, since the new version contains the method env_mut() in impl Problem, which allows the WithTimeLimit implementation for CPLEXProblem to change the TimeLimit parameter of the Environment of the Problem. It would be greatly appreciated if you reviewed my code!

@jk2997
Copy link
Contributor Author

jk2997 commented Nov 12, 2025

If this PR is admissible, could you also update the the good_lp crate version? I am part of a research group who is working on a FPGA technology mapping tool called EqMap, and we are working on integrating the good_lp crate into our project (https://github.com/cornell-zhang/eqmap/tree/good_lp).

Copy link
Collaborator

@lovasoa lovasoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the ci does not pass. Once you fix it, ok for me to merge.

@lovasoa lovasoa merged commit f493531 into rust-or:main Nov 12, 2025
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