-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fixing some bugs and active development #28
base: main
Are you sure you want to change the base?
Conversation
vishnumahamkali
commented
Dec 19, 2023
- Bug causing problems with accessing equilibrator accessions
@timmccubbin, FYI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have left some comments, but in general it has solved some of the issues that I had when reloading a model with CPLEX (which I think was a cobrapy/optlang issue), so it looks good, thanks!
@@ -261,6 +262,60 @@ def calculate_transport_charge(self): | |||
{key: sum(val) for key, val in n_proton.items()}, | |||
) | |||
|
|||
def update_variable_bounds(self): | |||
"""Updating the method from cobra to update the flux bounds in cplex_interface. Currently not doing it for gurobi_interface as I don't have a licence to test this""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a Gurobi license, could give it a try and make a PR to this branch or in a follow-up after this is merged. Or would you rather stop support for gurobi? My use case for gurobi so far has been that the constraint relaxation is more flexible, but I have managed to get CPLEX to do what I want. Not sure if the "Debugging" part of the docs would still work, although I don't think that gurobi's computeIIS
function takes the quadratic constraint into account anyways.
|
||
logs_dir = cwd + os.sep + "logs" | ||
if not os.path.exists(logs_dir): | ||
os.makedirs(logs_dir) | ||
|
||
|
||
def variability(model_variability, variable_list=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have been using this branch with CPLEX for a couple of days, including the variability, and it's been working great so far.
@@ -31,7 +28,7 @@ | |||
R = 8.31e-3 # "kJ / mol / K" | |||
FARADAY = 96.485 # "kJ / mol" | |||
Vmax = 1000 | |||
K = 1e8 | |||
K = 1e6 | |||
default_T = 298.15 # , "K") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have opened an issue about this #29.
equilibrator-api==0.3.2b7 | ||
component-contribution==0.3.2b4 | ||
equilibrator-cache==0.3.2b2 | ||
equilibrator-api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to pin it, since the different equilibrator packages usually need to coordinated. This version set works for me with this branch:
equilibrator-api==0.6.0
equilibrator-cache==0.6.0
component-contribution==0.6.0
I think stating only equilibrator-api>=0.6.0
and letting pip
do the dependency resolution might also be fine.