-
Notifications
You must be signed in to change notification settings - Fork 227
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
[Python 3.9] Reimplement Clar Optimization with Scipy MILP #2694
base: feat/py39
Are you sure you want to change the base?
Conversation
1. Replace lpsolve APIs with the scipy milp APIs. The new implementation potentially have a slightly better performance (due to vectorization, less data transfer, comparable solver performance, etc.) and improved readability. 2. Decouple the MILP solving step (as _solve_clar_milp ) from the MILP formulation step. The motivation is to avoid unnecessary computation. The original approach includes molecule analysis (specifically `get_aromatic_rings`) into the recursive calls. However, this is not necessary, as molecules are just copied and not modified at all. Therefore analyzing once is enough.
Co-authored-by: Hao-Wei Pang <45482070+hwpang@users.noreply.github.com>
we are not compatible with the latest version, will be resolved in this PR: #2639
@xiaoruiDong Mark this PR. |
…ic_scipy [Python 3.9] Improve isodesmic and add element balance constraints
@xiaoruiDong here are the remaining test failures which we should address in this PR.
There are a couple test failures which look like actual failures to run ( |
Hi @xiaoruiDong will you be able to work on this PR, or should we re-assign? |
I will work on this but don't have time in a week or two... If this is something urgent, I am ok with re-assignment and can talk to the people who will work on this. |
It's not especially urgent - I am going to try and fix some of the failures, but we can continue to chat about it once you have the time! |
These are the commits that are specific to the CLAR re-implementation in this PR: https://github.com/ReactionMechanismGenerator/RMG-Py/pull/2694/files/756439fd5096859f3e67002571c0a9e1c19258ff |
This PR replaces #2623 as discussed in this comment: #2687 (comment)